Re: Problem sending a DOS text file from Linux to Windows.

From: mouss (no email)
Date: Mon Feb 04 2008 - 09:26:44 EST

  • Next message: Victor Duchovni: "Re: 550-Mailbox unknown problem"

     wrote:
    > On Fri, Feb 01, 2008 at 05:30:04PM +0100, Richard Foley wrote:
    >> You're not listening to the answer:
    >>
    >> Wietse said:
    >>
    >>> To send DOS a textfile from a UNIX system use a DOS/UNIX conversion
    >>> tool or send the file as a base64 encoded attachment.
    >
    > Let me try to put it another way. How do I know when I need to convert
    > the file before I send it ? I don't intend to manually check every
    > single text file that I send to see if I should then manually convert
    > it first.
    >
    > Using the UNIX file utility with the "-i" option which lists the mime
    > type it gives:
    >
    > text/plain; charset=us-ascii
    >
    > If this is correct, then shouldn't the MTA handle this mime type
    > without screwing up the file ?
    >
    > Programmatically it is not difficult, so I assume that the negativity
    > that I am getting is because I am not getting something, so please
    > please explain why changing the code to cope with this would be a bad
    > idea.
    >
    > Scott.
    >
    > PS. Tried the same thing with exim and this works as it should, i.e.
    > doesn't introduce the extra CR in the attachment. I don't want to
    > switch MTAs as I believe Postfix is better in many ways, but I also
    > don't want to send out broken emails.

    it's up to you (to switch to exim or not), but in principle you can't do

    # sendmail ... < foo.mp4

    mail data must obey some constraints.

    with text files, you can still do
    # dos2unix foo.txt | sendmail ....

    the dos2unix command will convert the file to "unix format" if it was in
    dos format.


  • Next message: Victor Duchovni: "Re: 550-Mailbox unknown problem"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD