Michael --

...and then Michael Montagne said...
% 
% >On 17/01/02, from the brain of Nicolas Rachinsky tumbled:
% 
% > On Thu, Jan 17, 2002 at 01:29:31PM -0800, Michael Montagne <[EMAIL PROTECTED]> 
wrote:
% > > I need to modify an attachment (delete a hyphen) and then reattach it to
...
% > > them to the original recipient, without changing the To: or From:
% > > headers.
% > > Can it be done?
% > 
% > I would try "e", delete the hyphen, "b".
...
% 
% Very simple with manual intervention.  But how do I automate the
% process?  Can I use procmail to route to a script, then bounce to the
% original recipient?  If so, can someone help me with that?

I was going to recommend exactly that but was beaten to it.

I agree with the concerns of using munpack and mpack instead of just
using sed on the input file -- unless, perhaps, the hyphen you want to
remove is always in a given place like a "name=" header.

Anyway, here's a little perl hack I whipped up to send email to my
pager based on some conditions.  The top part declares how to send to
qmail (which you can twist around for sendmail or whatever you have)
and the bottom part does the reinjecting with an added anti-loop header
(to avoid sending bounces of bounces when the pager's server is down);
you can pretty much ignore everything in the middle.


% -- 
% Michael Montagne
% [EMAIL PROTECTED]
% http://www.boora.com


:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: mail-by-pager.pl
Description: Perl program

Attachment: msg23276/pgp00000.pgp
Description: PGP signature

Reply via email to