Quoting Guilhem Moulin (2019-11-16 17:50:14)
> On Sat, 16 Nov 2019 at 16:25:15 +0100, Jonas Smedegaard wrote:
> > jonas@auryn:~$ interimap --config debian --repair --debug INBOX.olpc 2>&1 | 
> > grep -Fw 97
> > […]
> > local(INBOX.olpc): WARNING: No match for modified remote UID 97. 
> > Downloading again.
> > remote(INBOX.olpc): C: 000004 UID FETCH 97 (MODSEQ FLAGS INTERNALDATE 
> > BODY.PEEK[] ENVELOPE)
> 
> I'm suprised grep didn't match the server response for that command.

Perhaps if you talking about matching the originally reported warning, 
then beware that the warning mesage initially reported happened only 
while initially syncronizing that mailbox from scratch.  I am unable to 
repeat that exact warning message - but instead the warning message 
above is now repeatable for me.


> Do you have anything at all between
> 
>     remote(INBOX.olpc): C: 000004 UID FETCH 97 (MODSEQ FLAGS INTERNALDATE 
> BODY.PEEK[] ENVELOPE)
> 
>  and
> 
>     remote(INBOX.olpc): S: 000004 OK Fetch completed

Nope:

jonas@auryn:~$ interimap --config debian --repair --debug INBOX.olpc 2>&1 | 
grep -Fw 97 -C1
local(INBOX.olpc): S: * 96 FETCH (UID 96 MODSEQ (2) FLAGS ())
local(INBOX.olpc): S: * 97 FETCH (UID 97 MODSEQ (2) FLAGS ())
local(INBOX.olpc): S: * 98 FETCH (UID 98 MODSEQ (2) FLAGS ())
--
remote(INBOX.olpc): S: * 96 FETCH (UID 3466 MODSEQ (2) FLAGS ())
remote(INBOX.olpc): S: * 97 FETCH (UID 3467 MODSEQ (2) FLAGS ())
remote(INBOX.olpc): S: * 98 FETCH (UID 3468 MODSEQ (2) FLAGS ())
--
remote(INBOX.olpc): S: * 3395 FETCH (UID 11660 MODSEQ (2) FLAGS ())
remote(INBOX.olpc): S: * 3396 FETCH (UID 97 MODSEQ (1) FLAGS ())
remote(INBOX.olpc): S: * 3397 FETCH (UID 11662 MODSEQ (2) FLAGS ())
--
remote(INBOX.olpc): Update last clean state for INBOX.olpc: (UIDNEXT 12584 
HIGHESTMODSEQ 17 UIDVALIDITY 1225292233)
local(INBOX.olpc): WARNING: No match for modified remote UID 97. Downloading 
again.
remote(INBOX.olpc): C: 000004 UID FETCH 97 (MODSEQ FLAGS INTERNALDATE 
BODY.PEEK[] ENVELOPE)
remote(INBOX.olpc): S: 000004 OK Fetch completed (0.001 + 0.000 secs).



> > UID FETCH 97 BODY.PEEK[]
> > * 97 FETCH (BODY[] {6520}
> > […])
> > UID OK Fetch completed (0.132 + 0.000 + 0.131 secs).
> 
> Oh my bad, seems I typoed the IMAP command I gave you; that message is 
> sequence number #97 not UID 97.  It's a ‘FETCH’ command with tag 
> ‘UID’, while I wanted to send an ‘UID FETCH’ command with tag $foo, 
> like what's being found in the debug output above.
> 
> Please try again prefixing the command with ‘b ’ (or any other tag):
> 
>     b UID FETCH 97 BODY.PEEK[]

I guess uou mean this:

jonas@auryn:~$ ssh jonas-deb...@xayide.jones.dk "doveadm exec imap"
doveadm(jonas-debian): Error: net_connect_unix() failed: Connection refused
imap(jonas-debian): Error: net_connect_unix() failed: Connection refused
* PREAUTH [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT 
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND 
URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED 
I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH 
LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE] Logged in as 
jonas-debian
a EXAMINE INBOX.olpc
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 4304 EXISTS
* 0 RECENT
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1225292233] UIDs valid
* OK [UIDNEXT 12584] Predicted next UID
* OK [HIGHESTMODSEQ 17] Highest
a OK [READ-ONLY] Examine completed (0.003 + 0.000 + 0.002 secs).
b UID FETCH 97 BODY.PEEK[]
b OK Fetch completed (0.001 + 0.000 secs).


> The server response should be
> 
>     * $SEQ FETCH (UID 97 BODY[] $BODY)
>     b OK Fetch completed
> 
> Where $SEQ is the sequence number (not necessarily 97) and $BODY is a 
> literal ‘{3}\r\nfoo’, quoted string ‘"bar"’, or NIL.  “UID 97” is 
> required to be present somewhere in the server response.

Seems I didn't get the expected response.  So does that indicate broken 
data at the server?


> I appreciate the assistance in debugging.  Thanks!

I am having fun :-)


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature

Reply via email to