|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: [Postfix-Users] Junk & Draft Directory
From: Num ber (number_85_
hotmail.com)
Date: Sun Mar 19 2006 - 05:07:41 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>These are created by your MUA (or call it "mail reader").
Thanks ;-)
>Draft should also be created by the MUA.
Ok, now i'm understand
>To create the Junk folder, choose among:
>- manually create it in your MUA.
>- add it when you create the account.
>- create it at delivery time if using an external MDA (maildrop, procmail).
>
>in the last 2 cases, you may want to auto-subscribe the folder. check
>your imap server docs for that. otherwise, subscribe using the MUA.
I don't want the user need to create them.
Thus i think i'm going to use MailDrop
>The "standard" way is to use maildrop or procmail.
Wich one is the more easy ?
>Before you ask, here is an example with maildrop.
>
>[maildroprc]
>...
>maildirmake=/path/to/maildirmake
>MAILDIR=$DEFAULT
>JUNK_FOLDER=.Junk
>
>_JUNK_DEST=$MAILDIR/$JUNK_FOLDER/
>
>#automatically create the Junk folder
>`test -d $_JUNK_DEST`
>if ($RETURNCODE != 0 )
>{
> `$maildirmake $_JUNK_DEST`
> # auto subscribe. the following works for courier-imap
> #`echo INBOX.Junk >> $MAILDIR/courierimapsubscribed`
>}
>...
>if (/^X-Spam-Flag:\s*YES/)
>{
> exception {
> to "$_JUNK_DEST";
> }
>}
Many thanks to you...
(In french :
Merci mouss, je cherchais justement ce code ...
Je savais que MaiLDrop servais a ca, mais j'hesitais a l'utiliser et
voullais savoir si Postfix n'avait pas, par hazard une fonction pour ca.. Ou
un script a utiliser
Je vais utiliser maildrop (j'penses qu'il sera plus facil a mêtre en place
que procmail )
_________________________________________________________________
Créez gratuitement votre espace perso en ligne avec MSN Spaces !
http://spaces.msn.com/?mkt=fr-be
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]