diff options
| author | Sam Varshavchik | 2013-08-25 20:54:43 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2013-08-28 21:07:40 -0400 |
| commit | 9bb1a8d85390653f702e8ad5556a2cd3793acbfe (patch) | |
| tree | 2aafb33608ec6c69182e00364d324f845a3e7325 /maildrop/messageinfo.h | |
| parent | 2ec3d0c52bff3e27242ae214571792c5f2d5299a (diff) | |
| download | courier-libs-9bb1a8d85390653f702e8ad5556a2cd3793acbfe.tar.bz2 | |
maildrop: rfc2045-parse message when reading it initially.
At startup MIME parse the message.
maildrop no longer ignores leading blank lines, and From_ line. Use
reformail -f0 to filter the message for maildrop, if that's the case.
Get rid of msgoffset (starting offset of the message). rfc2045-parse the
message as maildrop reads it.
Diffstat (limited to 'maildrop/messageinfo.h')
| -rw-r--r-- | maildrop/messageinfo.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/maildrop/messageinfo.h b/maildrop/messageinfo.h index e8417d3..450ca49 100644 --- a/maildrop/messageinfo.h +++ b/maildrop/messageinfo.h @@ -11,21 +11,18 @@ class Message; /////////////////////////////////////////////////////////////////////////// // // The MessageInfo class collects information about a message - namely -// it calculates where the message headers actually start in the Message -// class. We ignore blank lines and "From " lines at the beginning of -// the message +// it extract the email address from the Return-Path: header, if present. // /////////////////////////////////////////////////////////////////////////// class MessageInfo { public: - off_t msgoffset; // Skip leading blank lines and From header Buffer fromname; // Envelope sender - MessageInfo() : msgoffset(0) {} + MessageInfo() {} ~MessageInfo() {} void info(Message &); - void filtered() { msgoffset=0; } + void filtered() {} } ; #endif |
