Nilhcem/FakeSMTP

EML file format - first line

Opened this issue · 2 comments

Hello,

my EML files on disk look a bit strange, the first line is a timestamp with some spaces in front.

        Tue, 12 Feb 2019 11:12:02 +0100 (CET)
From: test@test.com
To: recipient@test.com
Subject: Test

X

My mail program (Evolution) has problems at opening such files. Whats the purpose of this first line and is this a bug?

Thank you,
Manuel

I'm not getting that first line. I don't think is a problem of FakeSMTP.

$ telnet localhost 2525
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 eris ESMTP SubEthaSMTP null
HELO test.com
250 eris
MAIL FROM:test@test.com
250 Ok
RCPT TO:bla@bla.com
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
From: test@test.com
To: bla@bla.com
Subject: Test

TEXT
.
250 Ok
QUIT
221 Bye
Connection closed by foreign host.

Then checking the eml file:

$ cat 230519015019807.eml 
        Thu, 23 May 2019 13:50:02 +0200 (CEST)
From: test@test.com
To: bla@bla.com
Subject: Test

TEXT

I'm using version 2.0.