You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "James C. McMaster (Jim)" <mc...@tatanka.stortek.com> on 2002/08/29 23:23:50 UTC

[users@httpd] Procmail recipe to un-mangle the Subject

If any of you have access to procmail and want to remove the 
"[UselessListIdentifier]" from mailing-lists, here is a procmail recipe you 
can include to accomplish that:

########################################################################
#Get rid of header munging
FRONT=

:0
* ^Subject:\/([^[])+
{ FRONT=$MATCH }

:0fhW
* ^Subject:.*(\[[^]]+\]+)\/.*
| formail -I"Subject:$FRONT$MATCH"

As written, it removes the first occurrence of "[anything]" from all Subject: 
headers.  You can place it anywhere before mailing-list mail gets delivered.
-- 
Jim McMaster
mailto:mcmasjc@tatanka.stortek.com



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Procmail recipe to un-mangle the Subject

Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
"James C. McMaster (Jim)" wrote:
> 
> If any of you have access to procmail and want to remove the
> "[UselessListIdentifier]" from mailing-lists, here is a procmail
> recipe you can include to accomplish that:

Cool!
-- 
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org