httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rian Hunter <r...@MIT.EDU>
Subject Header Handling in mod_smtpd
Date Tue, 17 Jan 2006 21:43:07 GMT
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 <rian@mit.edu>
To: Rian Hunter <rian@mit.edu>
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

Mime
View raw message