Sumbry][ wrote:
It might be better to lookup the user_idnr for DBMAIL_DELIVERY_USER
(which is currently defined in pipe.c, but could be moved to db.h for
instance). You cannot count on DBMAIL_DELIVERY_USER having user_idnr '1'
always.
That makes sense. However, I'm more of a dba than a programmer and since
I'm not that familiar with dbmail internals yet I'd be more comfortable if
one of ya'll patched the sources.
Changes made and committed to CVS.
db.c has an extra function which checks if a user_idnr which belongs to
the internal delivery user. If this is the case, curmail_size is not
updated. The new function uses a local static variable to avoid looking
up the user_idnr on every call.
Ilja