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/main.C | |
| 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/main.C')
| -rw-r--r-- | maildrop/main.C | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/maildrop/main.C b/maildrop/main.C index 9d281eb..d144263 100644 --- a/maildrop/main.C +++ b/maildrop/main.C @@ -41,6 +41,12 @@  extern "C" int gethostname(const char *, size_t);  #endif +void rfc2045_error(const char *p) +{ +	fprintf(stderr, "%s\n", p); +	fflush(stderr); +	exit(1); +}  extern void setprocgroup(); @@ -765,9 +771,7 @@ Buffer	msg;  	if (VerboseLevel() > 1)  	{  		msg.reset(); -		msg.append("Message start at "); -		msg.append((unsigned long)maildrop.msginfo.msgoffset); -		msg.append(" bytes, envelope sender="); +		msg.append("Message envelope sender=");  		if (maildrop.msginfo.fromname.Length() > 0)  			msg += maildrop.msginfo.fromname;  		msg.append("\n"); | 
