Re: [Exim] CLI messages w/colon interpreted as headers

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Nico Erfurth
Ημερομηνία:  
Προς: Ryan Nobrega
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] CLI messages w/colon interpreted as headers
Ryan Nobrega wrote:

> I'm using the exim CLI to send messages from a shell
> script. When the message contains a colon the content
> is interpreted as a header instead of body content.
>
> e.g.-
>
> echo "this is a message" | /path/exim myemail@mydomain
>
> works fine, but
>
> echo "this: is a message" | /path/exim
> myemail@mydomain
>
> sets a header "this:" with value "is a message"
>
> apologies if I'm missing something obvious (incorrect
> syntax, ... ?)... I've searched the exim docs,
> newsgroups, etc.


Exim is an MTA, not an MUA, what you see here is a sanity-check exim
adds to your input.

Exim expects that the input stats with headers. But, if no colon is in
such a line, it will use this as the start of the body.

Use an MUA to send mail, or send complete headers with an empty line
before the body to 'fix' your problem.

Nico