[Ilugc] [OT] procmail recipe for removing signatures.

  • From: akumar@xxxxxxxxxxxxx (Kumar Appaiah)
  • Date: Tue Jun 28 14:57:17 2005

I thought some people might be interested in this. I subscribe to a
few mailing lists, and as you all know, mailman and other list
managers generally add a customized closing remark with unsubscribe
info etc. at the end. For SF.net lists, an ad is also added.

I have, therefore, come up with the following procmail recipe. It has
helped reduce the size of the messaged stored and replies are made
easier, as there is less to delete. It also takes care not to delete
the senders signature.

# For ilugc
:0 f:
* ^TO_ilugc
| sed -n '/_______________________________________________/ { N; /^__*\nTo\ 
unsubscribe, email ilugc/q}; p'


A similar recipe to remove the ads and custom info on SF.net lists
like Linux-India-Help:

# For linux-india-help
:0 f:
* ^TO_linux-india-help
| sed -n '/^-------------------------------------------------------/ { N; 
/^--*\nSF.Net email is sponsored by:/q}; p'


You might want to add these to your procmailrc. However, do check that
they don't remove some necessary data! They work for me, but YMMV.

Hope this was useful.

Kumar

-- 
Kumar Appaiah
Registered Linux user #337473

Other related posts:

  • » [Ilugc] [OT] procmail recipe for removing signatures. - Kumar Appaiah