Organizing
LuKreme <[email protected]>
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
I’m thinking about taking a run at organizing, really organizing, all the procmail recipes for my several email accounts. I have, needless to say, code that is shared, duplicated, or nearly duplicated across my 4 primary accounts,a bout a half-dozen secondary accounts, and then a portion of that code is shared over to most of the user accounts on the system. Before I got started, I wanted some recommendations on how, exactly to go about this. I was considering something along these lines, with * items being things the are already done. * procmailrc file with basic variable extraction, mail backup * hand off processing to .procmailrc if user has one, otherwise process for spam In .procmailrc call external basicrc file for all users to process list messages, + addressing, and set default delivery locations (like .$ARG/ or .SPAM/) process local rc files (~/.procmail/.*rc) call a deliveryrc file that actually delivers the mail and logs to user’s log file (~/logs/pm.10-11-2011.log) I figure the deliveryrc and basicrc can be the same file for everyone if I do it right, though I am unsure how to load arbitrary files in the user’s ~/.procmail/ folder. Does all of this sound reasonable? Does anyone have any hints (or samples) on something like this? What I envision is something that is going to be necessarily a lot more complicated than what I am currently doing, but will end up being more flexible and easier to manage since most files will just be shared between all users. I may even look into doing something like creating a library of procmail includes that a user could just comment/uncomment to run if wanted #Check and tag message for spamishness #INCLUDERC=/path/to/spamcheck #Sort users in ~/.friends into .friends/ #calls /path/to/eliveryrc to deliver the message INLCUDERC=/path/to/friendsort #Put all extensions into .Plus.$ARG/ #calls /path/to/eliveryrc to deliver the message INCLUDERC=/path/to/plussort etc. Thoughts? -- Slab: Jus' say 'AarrghaarrghpleeassennononoUGH'. --Feet of Clay ____________________________________________________________ procmail mailing list Procmail homepage: http://www.procmail.org/ [email protected] http://mailman.rwth-aachen.de/mailman/listinfo/procmail
smime.p7s
(application/pkcs7-signature, 1.7 KB) - not displayed