{"action":"created","issue":{"url":"https://api.github.com/repos/neomutt/neomutt/issues/1038","repository_url":"https://api.github.com/repos/neomutt/neomutt","labels_url":"https://api.github.com/repos/neomutt/neomutt/issues/1038/labels{/name}","comments_url":"https://api.github.com/repos/neomutt/neomutt/issues/1038/comments","events_url":"https://api.github.com/repos/neomutt/neomutt/issues/1038/events","html_url":"https://github.com/neomutt/neomutt/issues/1038","id":291768403,"number":1038,"title":"IMAP timeout causes `Please select mailbox first` error","user":{"login":"stefanv","id":45071,"avatar_url":"https://avatars2.githubusercontent.com/u/45071?v=4","gravatar_id":"","url":"https://api.github.com/users/stefanv","html_url":"https://github.com/stefanv","followers_url":"https://api.github.com/users/stefanv/followers","following_url":"https://api.github.com/users/stefanv/following{/other_user}","gists_url":"https://api.github.com/users/stefanv/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanv/subscriptions","organizations_url":"https://api.github.com/users/stefanv/orgs","repos_url":"https://api.github.com/users/stefanv/repos","events_url":"https://api.github.com/users/stefanv/events{/privacy}","received_events_url":"https://api.github.com/users/stefanv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-26T01:01:31Z","updated_at":"2018-02-22T20:32:55Z","closed_at":null,"author_association":"NONE","body":"I am on a somewhat unreliable network, so IMAP often times out.  When I then try to sync my mailbox, I see the following error:\r\n\r\n```\r\nimap_copy_messages [a0055 BAD Please select a mailbox first]?\r\n```\r\nSometimes the line above starts with `imap_fast_trash`.\r\n\r\nI'm not sure how to \"select a mailbox first\" as suggested; opening the folder is not an option, because that would first require syncing the current flags.\r\n\r\n<details>\r\nNeoMutt 20171215\r\nCopyright (C) 1996-2016 Michael R. Elkins and others.\r\nNeoMutt comes with ABSOLUTELY NO WARRANTY; for details type `neomutt -vv'.\r\nNeoMutt is free software, and you are welcome to redistribute it\r\nunder certain conditions; type `neomutt -vv' for details.\r\n\r\nSystem: Linux 4.12.0-2-amd64 (x86_64)\r\nncurses: ncurses 6.0.20171125 (compiled with 6.0)\r\nlibidn: 1.33 (compiled with 1.33)\r\nhcache backends: tokyocabinet\r\n\r\nCompiler:\r\nUsing built-in specs.\r\nCOLLECT_GCC=cc\r\nCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper\r\nOFFLOAD_TARGET_NAMES=nvptx-none\r\nOFFLOAD_TARGET_DEFAULT=1\r\nTarget: x86_64-linux-gnu\r\nConfigured with: ../src/configure -v --with-pkgversion='Debian 7.2.0-17' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu\r\nThread model: posix\r\ngcc version 7.2.1 20171205 (Debian 7.2.0-17) \r\n\r\nConfigure options: --build=x86_64-linux-gnu --prefix=/usr {--includedir=${prefix}/include} {--mandir=${prefix}/share/man} {--infodir=${prefix}/share/info} --sysconfdir=/etc --localstatedir=/var --disable-silent-rules {--libdir=${prefix}/lib/x86_64-linux-gnu} {--libexecdir=${prefix}/lib/x86_64-linux-gnu} --disable-maintainer-mode --disable-dependency-tracking --libexecdir=/usr/lib --with-mailpath=/var/mail --enable-fcntl --gpgme --lua --notmuch --with-ui --gnutls --gss --idn --mixmaster --sasl --tokyocabinet\r\n\r\nCompilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/neomutt-yegfMl/neomutt-20171215+dfsg.1=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/include -I/usr/include/lua5.3  -DNCURSES_WIDECHAR -isystem /usr/include/mit-krb5\r\n\r\nDefault options:\r\n  +attach_headers_color +compose_to_sender +compress +cond_date +debug \r\n  +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap +index_color \r\n  +initials +limit_current_thread +multiple_fcc +nested_if +new_mail +nntp +pop \r\n  +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser +sidebar \r\n  +skip_quoted +smtp +status_color +timeout +tls_sni +trash \r\n\r\nCompile options:\r\n  +bkgdset +color +curs_set +fcntl -flock -fmemopen +futimens +getaddrinfo \r\n  +gnutls +gpgme +gss +hcache -homespool +idn -locales_hack +lua +meta \r\n  +mixmaster +nls +notmuch -openssl +pgp +resizeterm +sasl +smime +start_color \r\n  +sun_attachment +typeahead \r\nMAILPATH=\"/var/mail\"\r\nMIXMASTER=\"mixmaster\"\r\nPKGDATADIR=\"/usr/share/neomutt\"\r\nSENDMAIL=\"/usr/sbin/sendmail\"\r\nSYSCONFDIR=\"/etc\"\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/neomutt/neomutt/issues/comments/367812840","html_url":"https://github.com/neomutt/neomutt/issues/1038#issuecomment-367812840","issue_url":"https://api.github.com/repos/neomutt/neomutt/issues/1038","id":367812840,"user":{"login":"ElDeveloper","id":375307,"avatar_url":"https://avatars0.githubusercontent.com/u/375307?v=4","gravatar_id":"","url":"https://api.github.com/users/ElDeveloper","html_url":"https://github.com/ElDeveloper","followers_url":"https://api.github.com/users/ElDeveloper/followers","following_url":"https://api.github.com/users/ElDeveloper/following{/other_user}","gists_url":"https://api.github.com/users/ElDeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/ElDeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElDeveloper/subscriptions","organizations_url":"https://api.github.com/users/ElDeveloper/orgs","repos_url":"https://api.github.com/users/ElDeveloper/repos","events_url":"https://api.github.com/users/ElDeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/ElDeveloper/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T20:32:55Z","updated_at":"2018-02-22T20:32:55Z","author_association":"MEMBER","body":"Following up on this issue, this may have something to do with a timed out connection (see logging info below). In this case it seems like the index still had a list of my e-mails but when I tried to open one email neomutt would find an empty file and show me nothing on screen or simply appear as if I hadn't tried to open the email.\r\n\r\n```\r\n[2018-02-22 12:24:20] curses_message() Connection to imap.gmail.com timed out\r\n[2018-02-22 12:24:22] curses_message() Looking up imap.gmail.com...\r\n[2018-02-22 12:24:22] curses_message() Connecting to imap.gmail.com...\r\n[2018-02-22 12:24:23] curses_message() SSL/TLS connection using TLS1.2 (ECDHE-RSA/CHACHA20-POLY1305/AEAD)\r\n[2018-02-22 12:24:23] curses_message() Logging in...\r\n[2018-02-22 12:24:25] curses_message() Sorting mailbox...\r\n[2018-02-22 12:24:28] curses_message() Fetching message...\r\n[2018-02-22 12:24:28] curses_message() Fetching message...\r\n[2018-02-22 12:24:28] mutt_file_safe_rename() link (/Users/username/.cache//imaps:email@imap.gmail.com/INBOX/.muttLfxR18/600640573-258118.tmp, /Users/username/.cache//imaps:email@imap.gmail.com/INBOX/600640573-258118.tmp) failed: File exists (17)\r\n[2018-02-22 12:24:29] curses_message() Could not copy message\r\n[2018-02-22 12:24:29] curses_message() Sorting mailbox...\r\n[2018-02-22 12:24:31] curses_message() Copying 2 messages to [Gmail]/Trash...\r\n[2018-02-22 12:24:31] curses_message() imap_fast_trash [a0009 BAD UID COPY not allowed now.]\r\n\r\n[2018-02-22 12:24:33] curses_message() Fetching message...\r\n[2018-02-22 12:24:33] mutt_file_safe_rename() link (/Users/username/.cache//imaps:email@imap.gmail.com/INBOX/.muttWm2wAz/600640573-258118.tmp, /Users/username/.cache//imaps:email@imap.gmail.com/INBOX/600640573-258118.tmp) failed: File exists (17)\r\n[2018-02-22 12:24:33] curses_message() Copying 2 messages to [Gmail]/Trash...\r\n[2018-02-22 12:24:34] curses_message() imap_fast_trash [a0012 BAD UID COPY not allowed now.]\r\n\r\n[2018-02-22 12:24:36] curses_message() Fetching message...\r\n[2018-02-22 12:24:36] mutt_file_safe_rename() link (/Users/username/.cache//imaps:email@imap.gmail.com/INBOX/.muttVJf1lL/600640573-258118.tmp, /Users/username/.cache//imaps:email@imap.gmail.com/INBOX/600640573-258118.tmp) failed: File exists (17)\r\n```"}}
{"actor":{"display_login":"ElDeveloper"}}