req: information about sieve filter
by: Jelle de Jong <jelledejong.NOSP@MMER.powercraft.nl>, @ Mon, 04 Jun 2007 14:14:15 +0300

Hello,

I read your article on this website and would like to ask a question:
http://email.uoa.gr/projects/cyrus/autosievefolder/

My name is Jelle, I am trying to get an automated folder creation set-up
depending on the date and from address of the email sender.

I was trying to do this with the sieve plug-in in my dovecot LDA.
However, as a beginner in this. I got basic sieve filtering working
filtering working. But I need to have filter rules that automatic create
folders in the mailboxes.

I was hopping you could help me with an example on how to do this:

I don't have an imapd.conf for setting anysievefolder yes, is there a
way to do this in the sieve script.

I would like to have a filter that does the following:

if date is after 01/01/2007 then move mail to the the folder with the
name of the sender in the 2007 folder. (INBOX.2007.$sender)

if the folder 2007 does not exist create it.
if the folder $sender does not exist create it.
move the mail to the folder

So an example with this email. It will have the header:
>
date: 04/06/07
sender: Jelle de Jong
>
it will be saved in:
"/home/vhost/powercraft.nl/jelledejong/.INBOX.2007.Jelle de Jong"
or if possible take out the INBOX part and put it in its own folder:
"/home/vhost/powercraft.nl/jelledejong/.2007.Jelle de Jong"

It would be great if you can help to accomplish this behaviour.

Kind regards,

Jelle de Jong