procmail
[Top] [All Lists]

Re: Cleaning up the Subject: header (was Re: Reply to header)

2004-08-09 16:25:13
* Bob George <mailings02(_at_)ttlexceeded(_dot_)com> [08-09-04 18:00]:
Patrick Shanahan wrote:

[...]
# | ~/.procmail/cleansubj


It looks like cleansubj is where the action happens. Would you mind 
posting the contents of that file?

uuups, <grin>.




#!/bin/sed -f
#
# Tidy up Subject: lines.
# Strip multiple Re: stuff and [list] tags.
#       - Cameron Simpson <cs(_at_)zip(_dot_)com(_dot_)au> 14feb2002
#   mutt.users 09mar2003

:top
s/^[Ss][Uu][Bb][Jj][Ee][Cc][Tt]:[       ]*//
t subject
n
b top
:subject
s/^\[[^         ]*\][   ]*//
t subject
/^[Rr][Ee]:/!b nore
:re
s/^[Rr][Ee]:[   ]*//
t re
s/^\[[^         ]*\][   ]*//
t re
s/^/Re: /
:nore
s/^/Subject: /






-- 
Patrick Shanahan                        Registered Linux User #207535
http://wahoo.no-ip.org                        @ http://counter.li.org
HOG # US1244711           Photo Album:  http://wahoo.no-ip.org/photos

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>