[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [mpop-users] Suggestions about work of mpop with UIDLs files



Hi!

On Sun, 21 Sep 2014 18:51:24 +0700, PM wrote:
> 1. When parameters KEEP and ONLY_NEW both turned on and used filter
> rejects mail message, UIDLs file also must be updated. Otherwise
> already received and rejected mail headers will be obtained again and
> again and again, despite the option ONLY_NEW is enabled.

Yes that would be useful, but this is a bigger change: you would have
to track exactly which filter made which decision, because the user can
check the same mailbox with different filters, which would lead to
different reject/accept decisions.

> 2. UIDLs files must be updated immediately after every successfully
> processed message. Now, when i stop mpop by CTRL+Break / CTRL+C or
> kills it process, UIDLs file remains not updated and already
> successfully received email messages will be received again next time.

On SIGTERM, SIGHUP, or SIGINT (CTRL+C), mpop already updates the UIDLs
file. See mpop.c lines 1358ff. So that should definitely work, and it
does for me.

Are you maybe working on Windows? That system does not have signal
handling, and so this does not work.

Regards,
Martin