This is a discussion on [courier-users] filtering messages from lists within the Courier-Imap forums, part of the Mail Servers and Related category; At the moment I'm subscribed - like most people - to several mail lists. I use maildroprc to filter incoming messages ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
At the moment I'm subscribed - like most people - to several mail lists.
I use maildroprc to filter incoming messages into specific folders, so traffic from each list is automagically sorted away for the preverbial rainy day. The problem is that whenever I subscribe to a new list, I have to manually tweak maildroprc to cope with the new list's filtering. I'm using the following kinda thing to do the grunt work, and just copy/paste/modify for each new list. if (/^Mailing-List: contact wx-users/:h) { log 'LIST=wx-users' `test -d $DEFAULT/.WX-USERS` if ($RETURNCODE != 0) { log 'creating folder for WX-USERS' `cp -Rp /etc/courier/skel $DEFAULT/.WX-USERS` `echo INBOX.WX-USERS >> $MAILDIR/courierimapsubscribed ` } exception { to $DEFAULT/.WX-USERS/ } } Is there someway I can automate this process? I'm sure there is someway I can use wildcards to do the job, but when I tried, it failed. TIA, David ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |