postfix / expire/delete mails from queue

Florian Lohoff f at zz.de
Thu Mar 3 15:54:11 CET 2011


On Thu, Mar 03, 2011 at 03:46:51PM +0100, Jan-Benedict Glaw wrote:
> 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?

Cut'N'Waste aus dem postfix code ... Ist in der datei noch 4 Mal so geloest ;)

> > +
> > +        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.
> >       */

Flo
-- 
Florian Lohoff                                                 f at zz.de
                 Professionell gesehen bin ich zu haben ....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20110303/936a51c3/attachment.sig>


More information about the Linux mailing list