Hello, when from my script I try to copy messages from one imap folder into another own (within the same imap mailbox). That works perfectly, but... If I copy the same message N times from one folder into another one, in the destination folder I see N copies of the same message, each with its own UID. I wonder if there any way to deduplicate folder content (so in the destination folder I'll get only one copy of each message)? I'd implement something like that myself in my script but I just don't know which part of the messages should I compare - probably md5 of headers? Thank you in advance! Yours, Alexander Chekalin
On 22.11.2011, at 11.10, Alexander Chekalin wrote:> when from my script I try to copy messages from one imap folder into another own (within the same imap mailbox). That works perfectly, but... If I copy the same message N times from one folder into another one, in the destination folder I see N copies of the same message, each with its own UID.Right.> I wonder if there any way to deduplicate folder content (so in the destination folder I'll get only one copy of each message)?Not any easy way currently.> I'd implement something like that myself in my script but I just don't know which part of the messages should I compare - probably md5 of headers?What Dovecot version and what mailbox format?
Reasonably Related Threads
- Separate access to different "folders" of the same mailbox?
- Proxy secured incoming POP3/IMAP4 to unsecure backend?
- Proxy secured incoming POP3/IMAP4 to unsecure backend?
- Strange behaviour when add new mailbox to IMAP (v 1.2.13)
- duplicates with multiple To/CC and sieve redirect copy