9 Nov 2011 21:13
Organizing
LuKreme <kremels <at> kreme.com>
2011-11-09 20:13:39 GMT
2011-11-09 20:13:39 GMT
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(Continue reading)
RSS Feed