Differences between revisions 3 and 4
Revision 3 as of 2008-05-30 14:21:51
Size: 1426
Editor: terri
Comment: Migrated to Confluence 4.0
Revision 4 as of 2015-01-31 02:36:58
Size: 1358
Editor: msapiro
Comment: Removed FAQ Wizard last edited
Deletions are marked like this. Additions are marked like this.
Line 39: Line 39:
''Last changed on Tue Aug 13 05:04:56 2002 by'' Phil Stoneman<<BR>> Converted from the Mailman FAQ Wizard Converted from the Mailman FAQ Wizard

3.12. How can I remove duplicate Re: markers from the Subject: field of messages?

I've managed to do this with a simple sed script.

(1) Find a suitable place for your script, and then make a file like 'mylist.sed' containing:

    ----- start of mylist.sed -----
    s/^Subject:\(.*\)\[SUBJECT_PREFIX\] /Subject:\1/
    s/^Subject: *\(Re: \)\+/Subject: Re: /
    ------ end of mylist.sed ------

(Change the SUBJECT_PREFIX to the subject prefix for your list)

(2) Make a file like 'mylist.sh' containing:

    ----- start of mylist.sh -----
    cat | sed -f /PATH/TO/mylist.sed | /PATH/TO/mailman/mail/wrapper post listname
    ------ end of mylist.sh ------

(Again, change the /PATH/TO's to a suitable value for your system)
(Note that qmail users need to insert the 'preline' command between the pipe and the 'wrapper' command)

(3) Change the 'mylist.sh' script to mode 755 (executable)

(4) Change /etc/aliases or ~alias/.qmail-listname to be:

    | /PATH/TO/mylist.sh

(Change this as you require)

(5) Test by posting to the list with a subject line containing Re:'s and a [subject_prefixes] and more Re:'s

Converted from the Mailman FAQ Wizard

This is one of many Frequently Asked Questions.

MailmanWiki: DOC/How can I remove duplicate Re- markers from the Subject- field of messages? (last edited 2015-01-31 02:36:58 by msapiro)