<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Helvetica, Arial, sans-serif">Hello everyone,</font></p>
<p><font face="Helvetica, Arial, sans-serif">I'm using getmail to
fetch some external mails from POP3 into a dovecot mailbox
(providing IMAP). Getmail seems to have some serious problems
keeping track of mails already fetched. I have every Mail
exactly twice in my Mailbox delivered by Dovecot. Of course they
are not in the original external POP3 Inbox.</font></p>
<p><font face="Helvetica, Arial, sans-serif">I hope I'm in right
place here. I think the problem is not dovecot related, but
getmail. As there is a huge number of user complains about
getmail (and obviously no alternative?!) I hope to find some
help here for a workaround.</font></p>
<p><font face="Helvetica, Arial, sans-serif">I noticed getmail can
be configured for some kind of filtering to sort out Mails for
local delivery to dovecot.<br>
<a class="moz-txt-link-freetext" href="http://pyropus.ca/software/getmail/configuration.html#filter-examples">http://pyropus.ca/software/getmail/configuration.html#filter-examples</a></font></p>
<p><font face="Helvetica, Arial, sans-serif">Does anyone know how to
query the message-id (given by mail-headers) with doveadm? <br>
</font></p>
<p><font face="Helvetica, Arial, sans-serif">My first test was this:</font></p>
<p>
<blockquote type="cite">doveadm fetch -u <a class="moz-txt-link-abbreviated" href="mailto:my-mailbox@domain.net">my-mailbox@domain.net</a>
"mailbox date.sent" message-id
"<a class="moz-txt-link-rfc2396E" href="mailto:369408722.286104911.1547114312259.Foo.root@someone.org"><369408722.286104911.1547114312259.Foo.root@someone.org></a>"</blockquote>
<br>
But then I noticed this is only ment to be used with dovecot
internal GUID - I think... Is it possible to query for the mail
message-id also? Is it posible to reconfigure indexing to include
this propery from the original message-file? I made a small
perl-script to extract it using Perl-Lib Email::Simple.<br>
</p>
<p>
<blockquote type="cite">To: <a class="moz-txt-link-abbreviated" href="mailto:my-mailbox@domain.net">my-mailbox@domain.net</a><br>
<b>Message-ID:
<a class="moz-txt-link-rfc2396E" href="mailto:369408722.286104911.1547114312259.Foo.root@someone.org"><369408722.286104911.1547114312259.Foo.root@someone.org></a></b><br>
Subject: Some test<br>
</blockquote>
<br>
I also already tried the doveadm deduplicate, but this also
doesn't work as it is also basing on the internal GUID of dovecot
and every duplicate-message seems to have a new, unique GUID.</p>
<p>
<blockquote type="cite">doveadm deduplicate -u
<a class="moz-txt-link-abbreviated" href="mailto:gabriel.kaufmann@gmx.net">gabriel.kaufmann@gmx.net</a> mailbox-guid</blockquote>
<br>
</p>
<p>May be anyone know a better solution.<br>
</p>
<pre class="moz-signature" cols="72">--
Best regards
Gabriel Kaufmann</pre>
</body>
</html>