postfix / expire/delete mails from queue
Jan-Benedict Glaw
jbglaw at lug-owl.de
Thu Mar 3 15:46:51 CET 2011
On Wed, 2011-03-02 23:19:46 +0100, Florian Lohoff <f at zz.de> wrote:
> diff --git a/src/qmgr/qmgr_active.c b/src/qmgr/qmgr_active.c
> index eeec88d..ed7e623 100644
> --- a/src/qmgr/qmgr_active.c
> +++ b/src/qmgr/qmgr_active.c
> @@ -198,6 +198,19 @@ int qmgr_active_feed(QMGR_SCAN *scan_info, const char *queue_id)
> return (0);
> }
>
> + /* Delete old mails */
> + if ((scan_info->flags & QMGR_SCAN_ALL) == 0
> + && st.st_mtime + var_max_queue_time < time((time_t *) 0)) {
^^^^^^^^^^^^
NULL?
> +
> + mail_queue_remove(scan_info->queue, queue_id);
> +
> + msg_info("%s: status=fast-delete, age=%d",
> + queue_id, (long) (event_time() - st.st_mtime));
> +
> + return (0);
> + }
> +
> +
> /*
> * Move the message to the active queue. File access errors are fatal.
> */
MfG, JBG
--
Jan-Benedict Glaw jbglaw at lug-owl.de +49-172-7608481
Signature of: GDB has a 'break' feature; why doesn't it have 'fix' too?
the second :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20110303/ef4313c0/attachment.sig>
More information about the Linux
mailing list