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

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:

From: Rian Hunter <>
To: Rian Hunter <>
Subject: Testing.

Hi this is the body of the message.

mod_smtpd saves:

---begin body---

Hi this is the body of the message.

when normal mail clients usually show the body like this:

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

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

View raw message