2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Thoughts about preference...
FromSent OnAttachments
Rob HuttonAug 26, 2003 9:11 am 
Rob HuttonAug 26, 2003 12:48 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Thoughts about preferences and auto creating maildirsActions...
From:Rob Hutton (rob.@comcast.net)
Date:Aug 26, 2003 9:11:47 am
List:net.sourceforge.lists.courier-maildrop

After reading some of the comments about automaticly creating maildirs using mail filtering, it seems to me that this would be the best, most flexible way to go. In relation to this, I have some questions/comments:

1) Does the $HOME variable reflect the home retreived from the database, or is it stricktly the user this maildrop is excecuted as? Is the maildir path exposed as a variable like $MAILDIRPATH or something?

2) This would allow you to leverage the per user preferences in such a way as

if (/^X-Spam-Flag: YES/ && getpref("USESPAMFOLDER") == "YES") { `if [ ! -d "$" ]; then \ maildirmake "$HOME/$MAILDIRPATH/.spam"; \ fi`

to "$HOME/$MAILDIRPATH/.spam" }

Thoughts, comments, questions...

Thanks, Rob