Great Circle Associates Majordomo-Users
(March 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Trap CTRL-Z in message body
From: Mark Bradakis <mjb @ cs . utah . edu>
Date: Fri, 20 Mar 1998 11:19:45 -0700 (MST)
To: Jim_Reisert @ mint-tech . com
Cc: majordomo-users @ GreatCircle . COM
In-reply-to: <199803201641.LAA25872@krusty.mint-tech.com> (message from Jim Reisert on Fri, 20 Mar 1998 11:41:47 -0500)


Well, if you don't mind slapping some kloodges into resend and slowing down
the mail processing a bit, you can do something similar to what I did.  Around
line 343 in resend, ( 1.94.4) there's a loop to write out the body of the
message being processed, so the parent sendmail can exit.  It looks like

while (<STDIN>) {
   print IN $_;
}


My loop, however, looks like

while (<STDIN>) {
   next if /^______________________________/ ;
   next if /^You don't need to buy Internet access/ ;
   next if /^Get completely free e-mail/ ;
   next if /^Or call Juno at/ ;
   next if /^DO YOU YAHOO!?/ ;
   next if /^Get your free \@yahoo.com/ ;
   next if /^Get Your Private, Free Email at http:/ ;
   next if /^Free web-based email/ ;
   next if /^Get free e-mail/ ;
   next if /^http:\/\/www.mailexcite.com/ ;
   print IN $_;
}


Instead of just tossing that particular line, you could substitute the
offending character.

mjb.


References:
Indexed By Date Previous: When New Subscribers Get Old Email: FAQ?
From: "Lazlo Nibble" <lazlo@swcp.com>
Next: Re: Weird error messages??
From: Mats Dufberg <Mats.Dufberg@abc.se>
Indexed By Thread Previous: Re: Trap CTRL-Z in message body
From: Nick Perry <nick.perry@amulation.co.uk>
Next: taboo_body for individuals
From: "M. Hunter" <hunter@www.wildfire.org>

Google
 
Search Internet Search www.greatcircle.com