
Le Thu, 13 Feb 2003 20:49:31 -0800 Donald MacDougall <dmacdoug@usc.edu> a écrit:
It's documented somewhere but it isn't easy to find. What I do is this.
As far I know, the official method is done by activating the "$subject_flag" lines in your rc.ini and rc.custom files, and use the rc.local.s10 files to put your recipes about subject line updates. For information, I have rewritten this recipe, in order to correct some usual problems : "[listname] Re:" instead of "Re: [listname]", "[listname] Re: Re: ...", "[listname] Re: [listname] ", etc.. Some of these problems being due, for example, to more or less strict implantations of RFC 2047 (MIME header extensions) by several sending mail clients, causing the brackets surrounding "listname" to not be detected, because these characters are converted in their QP equivalent... This recipe works flawlessly on my lists since more than two years. ----- start of rc.local.s10 SUBJ=`formail -zx Subject: | sed "s/\[$subject_flag\]//g" | sed "s/\_=5B$subject_flag=5D//g"| sed "s/R[Ee]:[ ]*R[Ee]: */Re: /"` # extract the subject :0fw * ! ^Subject:.*\[$subject_flag\] | formail -I "Subject: [$subject_flag] $SUBJ" ------- end of rc.local.s10 (notes : - the two lines under the "SUBJ=" line must be joined with this one. - in the "s/R[Ee]:[ ]*R[Ee]:" expression, the "[ ]" part pust be typed as "[<space><tab>]") Jacques. -- The last man connected to the Net was browsing some old WebSites. "You have new mail" appeared on the screen... --------------------------- adapted from a short Fredric Brown's story