List Info

Thread: Re: Sieve scripts: current year and month




Re: Sieve scripts: current year and month
country flaguser name
Russian Federation
2007-03-29 04:55:04
Hello

> Or I'd guess just upload a new sieve script every month
/ year / <insert
> frequency here>, which of course could be a scripted
task.

I think, this is solution for now.
There may be script, which download sieve scripts, analyze
them, correct 
fields and upload back to server automatically.

>
> On Mon, 2007-03-26 at 19:41 +0200, Guido A.J. Stevens
wrote:
> > >> I want to put incoming messages into
folders, based on current year
> >
> > and month
> >
> > You can do that with a procmail delivery.
> >
> > :0 c
> >
> > * ^From:.*foobar.com
> > {
> >         YEARFOLDER="Archive/foo-bar-`date
+%Y`"
> >
> >         :0: archive
> >         :
> >         | /usr/sbin/dbmail-smtp -u yourusername -m
"$YEARFOLDER"
> >
> > }

I don't have procmail and think, this is not the best
solution.
If mail server have 1k users, there must be 1k such
procmail's configs. This 
is not good. Users don't have real accounts on system and
can't manipulate 
such configs manually.

Thanks for your attention.

-- 
Oleg Lapshin

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: Sieve scripts: current year and month
country flaguser name
Estonia
2007-03-29 05:17:12
Oleg Lapshin wrote:

> There may be script, which download sieve scripts,
analyze them, correct 
> fields and upload back to server automatically.

Why download them at all? Just regenerate them and
insert/update with 
sql or via dbmail-sievecmd.

> I don't have procmail and think, this is not the best
solution.
> If mail server have 1k users, there must be 1k such
procmail's configs.

There will have to be 1000 sieve scripts anyway,
additionally they will 
have to be updated each month/week.

Regards,
	Alex
_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: Sieve scripts: current year and month
country flaguser name
United States
2007-03-29 09:02:16
On Thu, 2007-03-29 at 13:55 +0400, Oleg Lapshin wrote:
> Hello
> 
> > Or I'd guess just upload a new sieve script every
month / year / <insert
> > frequency here>, which of course could be a
scripted task.
> 
> I think, this is solution for now.
> There may be script, which download sieve scripts,
analyze them, correct 
> fields and upload back to server automatically.
> 
> >
> > On Mon, 2007-03-26 at 19:41 +0200, Guido A.J.
Stevens wrote:
> > > >> I want to put incoming messages into
folders, based on current year
> > >
> > > and month
> > >
> > > You can do that with a procmail delivery.
> > >
> > > :0 c
> > >
> > > * ^From:.*foobar.com
> > > {
> > >        
YEARFOLDER="Archive/foo-bar-`date +%Y`"
> > >
> > >         :0: archive
> > >         :
> > >         | /usr/sbin/dbmail-smtp -u
yourusername -m "$YEARFOLDER"
> > >
> > > }
> 
> I don't have procmail and think, this is not the best
solution.
> If mail server have 1k users, there must be 1k such
procmail's configs. This 
> is not good. Users don't have real accounts on system
and can't manipulate 
> such configs manually.
> 
> Thanks for your attention.

Do you want to have a "system sieve script" that
runs for *every* user
when they receive mail? I've heard that some other products,
I think
Sun's Java Messaging in particular, have system scripts,
group scripts,
and then user scripts. DBMail has only user scripts right
now.

Aaron

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )