Felix Ingram via Postfix-users:
> Hello all,
>
> I've written a program to be the final destination for mail using
> pipe.8. I'm reading the message in from stdin, and it appears that
> lines end with \n rather than \r\n, which is then causing parsing
> issues in another part of my app.

'\n' is the UNIX line terminator.

> I'm using swaks to send test emails, and it looks like it sends
> CRLF as expected/required.

'\r\n' is the SMTP line terminator. That does not mean that Postfix
will write '\r\n' to UNIX files or pipes.

> I'm checking the other parts of the pipeline but I wanted to check
> whether postfix would be changing \r\n to \n (which I doubt), or
> whether there's a setting I could be using to normalise things and
> make sure all emails have correct line endings.

To specify line terminator for pipe(8) command ourput:

man 8 pipe
https://www.postfix.org/pipe.8.html

Look for "eol=string"

Sorry, no on-line video for doing this.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to