On Fri, 2006-04-07 at 23:03 -0400, Sam Varshavchik wrote:
Jim Rice writes:
On Fri, 2006-04-07 at 20:20 -0400, Sam Varshavchik wrote:
Jim Rice writes:
A user has dozens of email messages in their Maildir/new folder...
1144448468.M650845P24805V0000000000000803I0099C08C_0.production,S=3097
as an example.
Is there a handy script/command for parsing this message for the
From/Subject/... header info and resending it to another address,
while preserving their attachments, etc.?
for f in $MAILDIR/new/*
do
sendmail user@domain <$f
done
Yes, but that will not preserve the MIME encapsulation.
Yes, it will.
It will just send the base64 encoding as text.
No, it won't.
It will appear as gobbledy-goop to the user,
Only if the original message was gobbledy-goop.
I couldn't get Postfix's sendmail to do anything puke it back in
my face, but did MIME encapsulate it. BSD Mail actually actually
sent the mail, but did not encapsulate it.
Here's the sendmail message:
This is the Postfix program at host haggis.homelan.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<me@haggis>: mail forwarding loop for me@haggis
--298B92409B5.1144471938/haggis.homelan
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; haggis.homelan
X-Postfix-Queue-ID: 298B92409B5
X-Postfix-Sender: rfc822; ron....@cox.net
Arrival-Date: Fri, 7 Apr 2006 23:52:18 -0500 (CDT)
Final-Recipient: rfc822; me@haggis
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; mail forwarding loop for me@haggis
"If everybody in this town connected with politics had to leave
town because of chasing women and drinking, you would have no
government."
Senator Barry Goldwater (R-AZ)