Menu

#64 IMAP command 'UID FET)' returned an error

1.4.0
invalid
nobody
None
unknown
5
2024-07-29
2022-06-12
No

Hi.
I'm using mbsync/isync under osx and linux without problems.
Before a couple of days i'm trying to work with bsd and running into an error when trying to fetch mails.

Here is my env

  • netbsd 9.2
  • raspberrypi (earmv7hf)
  • isync version 1.4.0

isync config

marko@netbsd ~> cat .config/isync/config 
SyncState * # Save the synchronization state files in the relevant directory
Create Slave

IMAPAccount mailbox
Host imap.mailbox.org
Port 993
User <my-email>@mailbox.org
PassCmd "pass Users/marko/Library/Keychains/marko.keychain/Apps/offlineimap"
SSLType IMAPS
CertificateFile /etc/openssl/certs/ca-certificates.crt
#PipelineDepth 50

IMAPStore mailbox-remote
Account mailbox

MaildirStore mailbox-local
Subfolders Verbatim
Path ~/.local/share/isync/mailbox.org/ # The trailing "/" is important
Inbox ~/.local/share/isync/mailbox.org/inbox

Channel mailbox-default
Master :mailbox-remote:
Slave :mailbox-local:
#Patterns !*

Channel mailbox-inbox
Master :mailbox-remote:"INBOX"
Slave :mailbox-local:inbox
Sync All
Expunge Both

Channel mailbox-drafts
Master :mailbox-remote:"Drafts"
Slave :mailbox-local:drafts
Sync All
Expunge Both

Channel mailbox-trash
Master :mailbox-remote:"Papierkorb"
Slave :mailbox-local:trash
Sync All
#Expunge Both

Channel mailbox-spam
Master :mailbox-remote:"Spam"
Slave :mailbox-local:spam
Sync All
Expunge Both

Channel mailbox-sent
Master :mailbox-remote:"Sent Messages"
Slave :mailbox-local:sent
Sync All
Expunge Both

group mailbox
Channel mailbox-default
Channel mailbox-inbox
Channel mailbox-drafts
Channel mailbox-trash
Channel mailbox-spam
Channel mailbox-sent

The output

marko@netbsd ~> mbsync -V -D  -c .config/isync/config mailbox-inbox
Reading configuration file .config/isync/config
Notice: Master/Slave are deprecated; use Far/Near instead.
Channel mailbox-inbox
Opening far side store mailbox-remote...
F: [ 1] Enter connect_store
Resolving imap.mailbox.org... ok
Connecting to imap.mailbox.org ([2001:67c:2050:106::143:199]:993)... 
Cannot connect to imap.mailbox.org ([2001:67c:2050:106::143:199]:993): No route to host
Connecting to imap.mailbox.org (80.241.60.199:993)... 
F: [ 1] Leave connect_store
Opening near side store mailbox-local...
N: [ 2] Enter connect_store
N: [ 2] Callback enter connect_store, sts=0
N: [ 2] Callback leave connect_store
N: [ 2] Leave connect_store
Connection is now encrypted
F: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE UIDPLUS LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
Logging in...
NOT using available SASL mechanism(s): EXTERNAL
F: >>> 1 LOGIN <user> <pass>
F: 1 OK [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 PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE SEARCH=X-MIMEPART XDOVECOT ACL UIDPLUS LITERAL+ NOTIFY SPECIAL-USE FILTER=SIEVE COMPRESS=DEFLATE XAPPLEPUSHSERVICE QUOTA ACL RIGHTS=texk] Logged in
F: >>> 2 COMPRESS DEFLATE
F: 2 OK Begin compression (0.001 + 0.000 secs).
F: >>> 3 NAMESPACE
F: * NAMESPACE (("" "/")) (("shared/" "/")) NIL
F: 3 OK Namespace completed (0.001 + 0.000 secs).
F: [ 1] Callback enter connect_store, sts=0
F: Enter select_box, name=INBOX
F: Leave select_box, ret=0
N: Enter select_box, name=inbox
N: Leave select_box, ret=0
N: Called get_box_path, ret=/home/marko/.local/share/isync/mailbox.org/inbox
Opening far side box INBOX...
F: [ 3] Enter open_box
F: >>> 4 SELECT "INBOX"
F: [ 3] Leave open_box
Opening near side box inbox...
N: [ 4] Enter open_box
N: [ 4] Callback enter open_box, sts=0, uidvalidity=1654805146
N: [ 4] Callback leave open_box
N: [ 4] Leave open_box
F: [ 1] Callback leave connect_store
F: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Junk $NotJunk JunkRecorded $Forwarded NotJunk $purchases $social Redirected)
F: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Junk $NotJunk JunkRecorded $Forwarded NotJunk $purchases $social Redirected \*)] Flags permitted.
F: * 195 EXISTS
F: * 0 RECENT
F: * OK [UNSEEN 105] First unseen.
F: * OK [UIDVALIDITY 1435779874] UIDs valid
F: * OK [UIDNEXT 9953] Predicted next UID
F: * OK [HIGHESTMODSEQ 21191] Highest
F: 4 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).
F: [ 3] Callback enter open_box, sts=0, uidvalidity=1435779874
F: Enter prepare_load_box, opts=0xe7
F: Leave prepare_load_box, ret=0xe7
N: Enter prepare_load_box, opts=0xe7
N: Leave prepare_load_box, ret=0xe7
Loading far side box...
F: [ 5] Enter load_box, [1,inf] (find >= 0, paired <= 4294967295, new > 0)
F: >>> 5 UID FET)
F: [ 5] Leave load_box
Loading near side box...
N: [ 6] Enter load_box, [1,inf] (find >= 0, paired <= 4294967295, new > 0)
N: [ 6] Callback enter load_box, sts=0, total=0, recent=0
near side: 0 messages, 0 recent
matching messages on near side against sync records
N: [ 6] Callback leave load_box
N: [ 6] Leave load_box
F: [ 3] Callback leave open_box
F: 5 BAD Error in IMAP command: Invalid command name (0.001 + 0.000 secs).
IMAP command 'UID FET)' returned an error: BAD Error in IMAP command: Invalid command name (0.001 + 0.000 secs).
F: Callback enter bad store
F: Enter cancel_store
F: Leave cancel_store
N: [ 7] Enter cancel_cmds
N: [ 7] Callback enter cancel_cmds
N: [ 8] Enter cancel_cmds
N: [ 8] Callback enter cancel_cmds
N: Enter free_store
N: Leave free_store
N: [ 8] Callback leave cancel_cmds
N: [ 8] Leave cancel_cmds
N: [ 7] Callback leave cancel_cmds
N: [ 7] Leave cancel_cmds
F: Callback leave bad store
F: [ 5] Callback enter load_box, sts=4, total=195, recent=0
F: [ 5] Callback leave load_box

any idea? do i have an incorrect config? Or fails the parsing of the uid of the message? 'UID FET)' should be 'UID 123 FETCH' or so right?

Discussion

  • Oswald Buddenhagen

    • status: reported --> need-more-info
     
  • Oswald Buddenhagen

    as discussed on the mailing list, this is a mysterious one.

     
  • Marko Bauhardt

    Marko Bauhardt - 2022-11-14

    the arm based implementation of strnlen isn't correct.
    a more detailed explaination incl a patch and a workaround can be found on the netbsd-users mailinglist.
    http://mail-index.netbsd.org/netbsd-users/2022/11/14/msg029205.html

     
  • Oswald Buddenhagen

    • status: need-more-info --> invalid
     
  • Oswald Buddenhagen

    ok, closing this as an external issue.

     

Log in to post a comment.

MongoDB Logo MongoDB