On Wed, Oct 08, 2014 at 09:13:29AM +0200, Gilles Chehade wrote:
> On Tue, Oct 07, 2014 at 07:09:26PM +0200, [email protected] wrote:
> > Hello!
> > 
> > (Please Cc me on replies. I just subscribed, don't know
> > if email flow is immediate.)
> > 
> > I have an old script that resends complete email files
> > to myself, via cat file | sendmail -i.
> > This works fine, I get the email with good formatting
> > and with only the body text of the original email in
> > the email body. No old email headers in the body.
> > 
> 
> You mean that with `sendmail -i` did extract the headers
> from the content instead of generating them itself ?

The original text file is a complete email that I received.
Sometimes I need to remail a complete email to another
email account of mine. This remail process needs to be
manually triggered, so I can't use for example procmail
to do the remail automatically when the emails come in.

cat file | sendmail -i worked fine for this.
That command automagically handled stripping old headers
and decoding the body of the email. I even got working
attachments in the remailed email.

> What MTA were you using ?
 
The real sendmail.
 
> > With opensmtpd however, this doesn't work. I get the
> > complete email file with its headers, and with no
> > MIME formatting done. Opensmtpd treats the original
> > email like a plain text file, not like an email object.
> > 
> 
> Yes
> 
> 
> > Is there some way of doing what I need with opensmtpd?
> >
> 
> Not without adding an option to our enqueuer and tell it to consider the
> input as a DATA part entirely. This is not hard to do however we need to
> make sure to pickup the right option.
> 
> -i is rather strange, on Postfix it means to not consider "." on single
> line as end of input. What MTA were you using ?
 
The real sendmail. But the -i option is probably not so important,
it has the same meaning in sendmail as in postfix.
 
> > Otherwise, is there some small utility that would do this?
> > I would like to avoid installing sendmail for these resends.
> > 
> 
> Well, meanwhile you can use pretty much any other MUA including the
> previous one in SMTP mode if it supports it.

I tried using mutt, but didn't get it to work as I want.
Neither with cat file | mutt or with mutt -a file.

There might be a way to do what I want with procmail,
but I'm no expert on procmail. I will probably install
sendmail again, it seems to be the easiest solution.
But I will keep using opensmtpd as my MTA, I like it.

Thanks!

Peter

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to