Lorens --

...and then Lorens Kockum said...
% 
% Hmmm.  So you send a mail to the pager company, and they strip
% out the headers of the mail.  Your problem is that the body of
% the mail you sent contains the headers of the original message
% sent to your account, right?

Yep.


% 
% So, your script should either parse out the headers and generate
% new ones (since you probably want to keep the From), which I
% agree isn't very smart, or... use the original mail's headers.
% Bounce... yes, like you do when you "bounce" using mutt.

I thought so :-)


% 
% All you have to do is inject your mail so that the headers in it
% are treated as headers and not as body.

That's the idea (he says, still not getting it).


% 
% You mentioned that you use qmail; simply use qmail-inject and

Oh.  Now that's interesting.  I guess I have to go and read up on this
qmail thing, since I tried qmail-inject and it happily sent of my
message exactly as desired :-)

Thanks!


% not sendmail.  Don't forget the -f flag so that eventual bounces
% ("error" bounces) go to you and not to the unsuspecting guy who
% sent you a mail.

Hmmm...  That makes sense, although now I want to trap the user
name...  Maybe I'll use formail to not only insert an X-No-Loop header
as planned but also grab the From field or something...  Or does From_
point back to where errors go and From: tell me the user name?  Or
should I just put in a Reply-To: or Errors-To: or some other header?
Hrmmm... mutter mutter

Oh, yeah -- I should probably wrap up this letter :-)


% 
% I think this should solve your problem, hope it does. HAND.

It solves that one and gives me a new one with which to play :-)  You,
too.


% 
% -- 
% #include <std_disclaim.h>                          Lorens Kockum


:-D
-- 
David Thorburn-Gundlach         * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]      * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]         Helping out at Pfizer
http://www.bigfoot.com/~davidtg/        Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
"Why2k?  Well, I didn't think at the time that I could charge any more!"
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*

PGP signature

Reply via email to