On Saturday Mar 10 2018, Yuri D'Elia wrote:
> On Sat, Mar 10 2018, Dirk-Jan C. Binnema wrote:
>>> I'd like to post-process incoming messages after isync fetches them,
>>> however isync itself doesn't offer a convenient hook.
>
> Ok, but using procmail or something else needs to know which messages
> are still unprocessed. Ideally I wouldn't want to move messages and/or
> remove the new flag to handle this.
It's possible to use the file time for this; after an isync, if the
message is newer than the previous-isync etc.
>>>
https://wiki.dovecot.org/AttachmentIndicator
>>
>> Dovecot encodes these keywords in the local filenames?
>
> Not sure honestly, but it doesn't matter for several reasons.
>
> My main question was if you like the idea/approach to detect useless
> attachments. We would basically have to reimplement it anyway.
Ah, so you meant this dovecot-attachment business as just an example
where a pre-index hook would be usable?
Anyway, a way to filter out useless filler attachments etc. might be
useful, but not at the cost of a lot additional complexity. So, for now
at least I think it's better to use something external; we could perhaps
add some example to the manual.