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@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@zz.de Professionell gesehen bin ich zu haben ....