Greg Earle writes:
grep elizabeth.r syslog | grep size= | grep earle | head -1Mar 4 16:42:51 XXXX courierlocal: [ID 702911 mail.info] id=000377CA.4B90538B.00001F84,from=<[email protected]>,addr=<[email protected]>,size=709,success: Message delivered.You can see the "size=709", matching the size of the file without the Return-Path and Delivered-To. Given that Courier hands off the message to my preline/procmail back-end for actual delivery, doesn't this imply that the message is, in fact, already empty when Courier is finished processing it, given the "size=709"?
Yes. In the log files, the message size is the size of the file in the internal mail queue that contains the message.
In other words, if the message was still "good" when Courier handed it off to the
back-end for delivery and something else mangled it afterwards, I would expect the
"size=NNNN" number in the syslog entry to be different/larger. Right?
Does Courier get back any return status from the back-end pipeline ("procmail" in my
case) saying "OK, I've delivered this message for you, and the size as-delivered was this
number"? (I suspect not.)
Correct. The local mail delivery agent returns only a success/fail status, via its exist code.
It looks to me like this "size=709" came from one of module.esmtp/esmtpclient.c: ctf->msgsize=stat_buf.st_size; module.local/deliver.c: createInfo.msgsize=stat_buf.st_size; module.local/localmail.c: ctf.msgsize=stat_buf.st_size; but I can't tell which one.
It's localmail.c. It puts the message size into a structure that's used in libs/comctlfile.c to format the log message.
pgpHvWuZtTqg4.pgp
Description: PGP signature
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
