[ you should try to avoid using tabs in mail/news ] Hi,
* Sweth Chandramouli [02-06-11 20:30:56 +0200] wrote: > My new project: trying to deal with my mailing lists > correctly. I have a bunch of lists, each with its own > folder under =lists, to which I'm subscribed. Here, too, nothing special. > In my ideal situation, when I send mail to any of those > lists, I want my From: header to be changed to reflect the > address with which I'm subscribed to that list; further, > if I'm in a list-specific folder and sending mail that > isn't to any other list, then I want the from address to > also use the address with which I'm subscribed to the list > to which the folder corresponds. No problem at all. I try to keep my solution simple and it doesn't do your job, but you can expand my version: I still use procmail and since I already have the list address in ~/.procmailrc I put a comment in, which I can grep with a shell script. You could do that, too, and put your From: address somewhere in there. My folders are named ``IN.local_part_of_the_list_adresses''. If you get my point, you know that you can use a shell script to write: a) send-hooks for all mailinglists setting your From: and b) use the same information to generate folder-hooks. Both from ~/.procmailrc only (I do it this way to not forget anything). One more line to produce default values is no problem. [ lots of ... ] > So, I'm totally confused now. What gives? Well, I only had a quick look at it. I ran into the same problem, how to maintain a large set of settings and hooks by hand -- gave up and happily run a shell script once a day to clean stuff up (some hooks are auto-generated and sourced, others are separated to be maintained by hand): ,- | pdmef@klaus:~$ egrep -v ^($|#) ~/.muttrc | wc -l | 30 `- ,- | pdmef@klaus:~$ egrep -v ^($|#|source) ~/.muttrc | wc -l | 0 `- Cheers, Rocco