Hi,

I just wanted to poll dev on how mod_smtpd should handle mail headers after receiving the data command.

Currently mod_smtpd parsers headers if there are any, then when that is done sends the body to the message buffering loop. A message usually looks like this:

---begin_rfc822_message---
From: Rian Hunter <[EMAIL PROTECTED]>
To: Rian Hunter <[EMAIL PROTECTED]>
Subject: Testing.

Hi this is the body of the message.
---end---

mod_smtpd saves:

---begin body---

Hi this is the body of the message.
---end---

when normal mail clients usually show the body like this:

---begin body---
Hi This is the body of the message.
---end---

Does it seem like a good idea to save the extra line-break as the beginning of the body or remove it before letting the plugins deal with the body. Keep in mind that the reason it is like this now is to keep the loop simple so it can also handle header-less messages (the parser eats the bad data). Thanks!

Rian Hunter

Reply via email to