I try to find out, why i get a strange answer of the imapserver from Mercury. A python script checks mails and searches for a part of the mail subject. Here the shortened imap session-log:
01: << NPNG1 OK LOGIN completed.<cr><lf>
02: >> NPNG2 SELECT 0<cr><lf>
03: << * 1 EXISTS<cr><lf>
04: << * 0 RECENT<cr><lf>
05: << * FLAGS (\Deleted \Draft \Seen \Answered)<cr><lf>
06: << * OK [UNSEEN 1] First unread message<cr><lf>
07: << * OK [UIDVALIDITY 1500594200] UID Validity<cr><lf>
08: << * OK [UIDNEXT 2] Predicted next UID<cr><lf>
09: << * OK [PERMANENTFLAGS (\Deleted \Draft \Seen \Answered)] Settable message flags<cr><lf>
10: << NPNG2 OK [READ-WRITE] SELECT completed.<cr><lf>
11: >> NPNG3 UID SEARCH (SENTSINCE 20-Jul-2017 SUBJECT "Mercury")<cr><lf>
12: << * SEARCH
13: << <cr><lf>
14: << NPNG3 OK SEARCH complete.<cr><lf>
Login and selecting the imap-folder "0" are okay until line 11. The problem seems to be either the search string in line 11 or the imapserver is waiting for something. Line 6 of the log lists an unseen message. The string "Mercury" is a part of the mail subject. Therefor line 12 should display an other answer.
<p>I try to find out, why i get a strange answer of the imapserver from Mercury. A python script checks mails and searches for a part of the mail subject. Here the shortened imap session-log:</p><p><span style="font-size: 10pt;">&nbsp;</span></p><p>01: &lt;&lt; NPNG1 OK LOGIN completed.&lt;cr&gt;&lt;lf&gt;</p><p>02: &gt;&gt; NPNG2 SELECT 0&lt;cr&gt;&lt;lf&gt;</p><p>03: &lt;&lt; * 1 EXISTS&lt;cr&gt;&lt;lf&gt;</p><p>04: &lt;&lt; * 0 RECENT&lt;cr&gt;&lt;lf&gt;</p><p>05: &lt;&lt; * FLAGS (\Deleted \Draft \Seen \Answered)&lt;cr&gt;&lt;lf&gt;</p><p>06: &lt;&lt; * OK [UNSEEN 1] First unread message&lt;cr&gt;&lt;lf&gt;</p><p>07: &lt;&lt; * OK [UIDVALIDITY 1500594200] UID Validity&lt;cr&gt;&lt;lf&gt;</p><p>08: &lt;&lt; * OK [UIDNEXT 2] Predicted next UID&lt;cr&gt;&lt;lf&gt;</p><p>09: &lt;&lt; * OK [PERMANENTFLAGS (\Deleted \Draft \Seen \Answered)] Settable message flags&lt;cr&gt;&lt;lf&gt;</p><p>10: &lt;&lt; NPNG2 OK [READ-WRITE] SELECT completed.&lt;cr&gt;&lt;lf&gt;</p><p>11: &gt;&gt; NPNG3 UID SEARCH (SENTSINCE 20-Jul-2017 SUBJECT "Mercury")&lt;cr&gt;&lt;lf&gt;</p><p>12: &lt;&lt; * SEARCH</p><p>13: &lt;&lt; &lt;cr&gt;&lt;lf&gt;</p><p>14: &lt;&lt; NPNG3 OK SEARCH complete.&lt;cr&gt;&lt;lf&gt;&nbsp;</p><p>&nbsp;</p><p><span style="font-size: 13.3333px;">Login and selecting the imap-folder "0" are okay until line 11. The problem seems to be either the search string in line 11 </span><span style="font-size: 13.3333px;">or the imapserver is waiting for something. Line 6 of the log lists an unseen message. The string "Mercury" is a part of the mail subject. Therefor line 12 should display an other answer.</span></p>