Hi all, I'm trying to set up some mail filtering shamozzle that I can easily specify as the delivery instruction per user in my mysql table, such that I can filter and deliver email as appropriate based on particular users' prefs w/rt spam, etc.
I would like to invoke maildrop, and pass command-line arguments (for use as the $1, $2 etc variables). However, in order to do this, it appears necessary to either specify -d user, or specify a filter file prior to the arguments. Is there a way to avoid that? (I only need a couple of common filter files, as opposed to a plethora of per-user .mailfilters; in fact, I am putting all my filtering into /etc/ courier/maildroprc, and altering behaviour based on the cmd line args.) Also, "-d [EMAIL PROTECTED]", where [EMAIL PROTECTED] is the corresponding user in the mysql table, does not work (maildrop complains), despite the manpage. I am working around that instead by using the env var $USER or $RECIPIENT. For the curious, my plan is to use "|maildrop recipientlist mode" for the delivery instruction, where recipientlist is a whitespace-delimited string containing delivery instructions (maildir locations or other email addresses), and mode is a word such as 'tag', 'delete', etc. indicating how to handle spammy messages. This way, I will be able to easily control per-mailbox handling of filtering prefs via the mysql table, while also overcoming the previously-noted limitation where the mysql delivery instruction does not allow more than one target. -ben -- Ben Kennedy, chief magician zygoat creative technical services 613-228-3392 | 1-866-466-4628 http://www.zygoat.ca ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
