From: Matthias A. <mat...@gm...> - 2023-07-29 06:21:24
|
Am 29.07.23 um 00:31 schrieb sup...@gm...: > ATP dynamic delivery is a MS exchange concept whereby emails are delivered without attachments but preview links instead. > > The attachments are scanned off line and then the original email is sucked back and replaced by a new version of the email with the attachment - this can take quite a while. > > If fetchmail gets the email before this process occurs the suck back and replacement with the attachment never happens, the "preview" link goes dead and the attachment never arrives. > > It is definitely a server side issue but I can't change the server side behaviour (if you can change the server side settings then simple fix is to change the "dynamic" delivery policy with "replace" delivery policy which behaves like any normal system where the email is delivered after it is scanned). > > This is not the only problem with ATP but it seems to be the biggest source of loss of attachments. > > A possible tactic would be to exclude the fetching of emails containing these preview links and defer their download until the suck back and replacement process has happened. I have found very little documentation on this, only that people complain that they need to close and re-open their email client window, and that apparently the messages are being replaced. I have not seen any information how I could identify "attachments being scanned" and "full e-mail now available" through the IMAP or POP3 interface? The sound way to do that would be for the server to *DELETE* the preview message and *ADD* the full message at the end of the mailbox as though it were new. If instead they were changing an e-mail we have already downloaded, in place, without changing the message's UID, we will never know. So, first try you could do is running fetchmail with --keep (as in do not delete), unless you are already doing that, and see if you get such messages twice, once as preview, once as full message. If that works, fine, you know the workaround and we may be able to file down some rough edges and possibly add a generic-enough header matcher that skips a message when that header is present. Note this would be prone to abuse if they don't strip that header from incoming messages with all the attachments in place (after scan) because I could then just put that header and prevent your message download... If that does not help and they are replacing messages in place, I need to know the specification - would they put up a special header to mark that the message is only a preview that is reliable enough to "skip" a message? Is there reliable technical documentation? Note: I am not going to research this beyond my search engine probes this morning, someone will have to hand me the silver plate with all information. And after looking through a spec, I may conclude it's too unreliable to be worth investing more time. |