When one of postponed/record/spoolfile is set to another IMAP server than the one where INBOX is, mutt crashes in imap_status(). Not sure if ctx is required, or if returning 0 would be ok.
Olaf # mutt -F $cfg -f = -d 9 Program received signal SIGSEGV, Segmentation fault. 0x000055d98e73d661 in imap_status (path=<optimized out>, queue=0) at imap.c:1644 1644 return idata->ctx->msgcount; (gdb) l 1639 if (imap_get_mailbox (path, &idata, buf, sizeof (buf)) < 0) 1640 return -1; 1641 1642 if (!imap_mxcmp (buf, idata->mailbox)) 1643 /* We are in the folder we're polling - just return the mailbox count */ 1644 return idata->ctx->msgcount; 1645 else if (mutt_bit_isset(idata->capabilities,IMAP4REV1) || 1646 mutt_bit_isset(idata->capabilities,STATUS)) 1647 { 1648 imap_munge_mbox_name (idata, mbox, sizeof(mbox), buf); (gdb) p idata $1 = (IMAP_DATA *) 0x55d990706290 (gdb) p *idata $2 = {conn = 0x55d990705c30, state = 2 '\002', status = 0 '\000', capstr = 0x55d99070d020 "IMAP4 IMAP4rev1 APPENDLIMIT=104857600 AUTH=DIGEST-MD5 AUTH=CRAM-MD5 AUTH=LOGIN AUTH=PLAIN METADATA LIST-EXTENDED SPECIAL-USE CREATE-SPECIAL-USE ESORT ESEARCH SEARCH=FUZZY CONDSTORE URLAUTH CHILDREN EN"..., capabilities = "3\024", seqno = 6, lastread = 1499864021, buf = 0x55d9906fe900 "a0005 OK LIST completed", blen = 512, unicode = 0, cmdtype = IMAP_CT_NONE, cmddata = 0x0, cmds = 0x55d990706430, cmdslots = 17, nextcmd = 6, lastcmd = 6, cmdbuf = 0x55d990706400, mboxcache = 0x0, delim = 46 '.', ctx = 0x0, mailbox = 0x0, check_status = 0, reopen = 0 '\000', newMailCount = 0, cache = {{uid = 0, path = 0x0}, {uid = 0, path = 0x0}, {uid = 0, path = 0x0}, {uid = 0, path = 0x0}, {uid = 0, path = 0x0}, { uid = 0, path = 0x0}, {uid = 0, path = 0x0}, {uid = 0, path = 0x0}, {uid = 0, path = 0x0}, {uid = 0, path = 0x0}}, uid_hash = 0x0, uid_validity = 0, uidnext = 0, msn_index = 0x0, msn_index_size = 0, max_msn = 0, bcache = 0x0, flags = 0x0, hcache = 0x0} (gdb) p *idata->ctx Cannot access memory at address 0x0 (gdb) bt #0 0x000055d98e73d661 in imap_status (path=<optimized out>, queue=0) at imap.c:1644 #1 0x000055d98e6e41ee in mutt_num_postponed (force=1) at postpone.c:91 #2 0x000055d98e6fd20c in status_format_str (buf=0x7fffe1618750 "", buflen=1024, col=23, cols=190, op=<optimized out>, src=0x55d9906b7be7 "%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---", prefix=0x7fffe1618650 "", ifstring=0x7fffe16186d0 " Post:%p", elsestring=0x7fffe1618b50 "", data=94392919516768, flags=MUTT_FORMAT_OPTIONAL) at status.c:193 #3 0x000055d98e7075f8 in mutt_FormatString (dest=0x7fffe1618fc0 "---Mutt: =INBOX [Msgs:2", destlen=1023, col=<optimized out>, cols=190, src=<optimized out>, callback=0x55d98e6fcf30 <status_format_str>, data=94392919516768, flags=MUTT_FORMAT_OPTIONAL) at muttlib.c:1513 #4 0x000055d98e6fdac4 in menu_status_line (buf=<optimized out>, buflen=<optimized out>, menu=<optimized out>, p=<optimized out>) at status.c:311 #5 0x000055d98e6aa81f in index_menu_redraw (menu=0x55d9906fe660) at curs_main.c:532 #6 0x000055d98e6aae7d in mutt_index_menu () at curs_main.c:676 #7 0x000055d98e690cb9 in main (argc=<optimized out>, argv=0x7fffe161a8a8, environ=<optimized out>) at main.c:1252 [2017-07-12 14:58:54] Mutt/1.8.3 (7101) debugging at level 9 [2017-07-12 14:58:54] getdnsdomainname(): my.lan [2017-07-12 14:58:54] In mutt_reflow_windows [2017-07-12 14:58:54] In mutt_reflow_windows [2017-07-12 14:58:54] In mutt_reflow_windows [2017-07-12 14:58:54] In mutt_reflow_windows [2017-07-12 14:58:54] Reading configuration file '/etc/Muttrc'. [2017-07-12 14:58:54] parse_attach_list: ldata = 0x55916ef10468, *ldata = (nil) [2017-07-12 14:58:54] parse_attach_list: added */.* [9] [2017-07-12 14:58:54] parse_attach_list: ldata = 0x55916ef10460, *ldata = (nil) [2017-07-12 14:58:54] parse_attach_list: added text/x-vcard [7] [2017-07-12 14:58:54] parse_attach_list: added application/pgp.* [2] [2017-07-12 14:58:54] parse_attach_list: ldata = 0x55916ef10460, *ldata = 0x55916f0bff90 [2017-07-12 14:58:54] parse_attach_list: skipping text/x-vcard [2017-07-12 14:58:54] parse_attach_list: skipping application/pgp.* [2017-07-12 14:58:54] parse_attach_list: added application/x-pkcs7-.* [2] [2017-07-12 14:58:54] parse_attach_list: ldata = 0x55916ef10458, *ldata = (nil) [2017-07-12 14:58:54] parse_attach_list: added text/plain [7] [2017-07-12 14:58:54] parse_attach_list: ldata = 0x55916ef10460, *ldata = 0x55916f0bff90 [2017-07-12 14:58:54] parse_attach_list: skipping text/x-vcard [2017-07-12 14:58:54] parse_attach_list: skipping application/pgp.* [2017-07-12 14:58:54] parse_attach_list: skipping application/x-pkcs7-.* [2017-07-12 14:58:54] parse_attach_list: added message/external-body [4] [2017-07-12 14:58:54] parse_attach_list: ldata = 0x55916ef10450, *ldata = (nil) [2017-07-12 14:58:54] parse_attach_list: added message/external-body [4] [2017-07-12 14:58:54] Reading configuration file '/home/olaf/.mutt/personal-gmail-aepfle'. [2017-07-12 14:58:54] Reading configuration file '/home/olaf/.mutt/muttrc.common'. [2017-07-12 14:58:54] Reading configuration file '/home/olaf/.mutt/aliases'. [2017-07-12 14:58:54] parse_alias: Second token is 'Olaf Hering <o...@aepfle.de>'. [2017-07-12 14:58:54] parse_alias: o...@aepfle.de [2017-07-12 14:58:54] mutt_alloc_color(): Color pairs used so far: 1 [2017-07-12 14:58:54] mutt_alloc_color(): Color pairs used so far: 2 [2017-07-12 14:58:54] mutt_alloc_color(): Color pairs used so far: 3 [2017-07-12 14:58:54] mutt_alloc_color(): Color pairs used so far: 4 [2017-07-12 14:58:54] mutt_alloc_color(): Color pairs used so far: 5 [2017-07-12 14:58:54] mutt_alloc_color(): Color pairs used so far: 6 [2017-07-12 14:58:54] mutt_alloc_color(): Color pairs used so far: 7 [2017-07-12 14:58:54] mutt_alloc_color(): Color pairs used so far: 8 [2017-07-12 14:58:54] Using default IMAP port 143 [2017-07-12 14:58:54] Using default IMAPS port 993 [2017-07-12 14:58:54] Lese imaps://imap.gmail.com/... [2017-07-12 14:58:54] Schlage imap.gmail.com nach... [2017-07-12 14:58:54] Verbinde zu imap.gmail.com... [2017-07-12 14:58:54] SSL/TLS Verbindung unter Verwendung von TLS1.2 (ECDHE-RSA/CHACHA20-POLY1305/AEAD) [2017-07-12 14:58:55] Connected to imap.gmail.com:993 on fd=4 [2017-07-12 14:58:55] imap_cmd_step: grew buffer to 512 bytes [2017-07-12 14:58:55] 4< * OK Gimap ready for requests from 2001:a61:345b:acff:1864:5839:ae0e:f6b6 j44mb341690999wrj [2017-07-12 14:58:55] IMAP queue drained [2017-07-12 14:58:55] 4> a0000 CAPABILITY [2017-07-12 14:58:55] 4< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH=XOAUTH [2017-07-12 14:58:55] Handling CAPABILITY [2017-07-12 14:58:55] 4< a0000 OK Thats all she wrote! j44mb341690999wrj [2017-07-12 14:58:55] IMAP queue drained [2017-07-12 14:58:55] imap_authenticate: Trying method login [2017-07-12 14:58:55] SASL local ip: 2001:a61:345b:acff:1864:5839:ae0e:f6b6;37384, remote ip:2a00:1450:400c:c0b::6c;993 [2017-07-12 14:58:55] External SSF: 256 [2017-07-12 14:58:58] Anmeldung... [2017-07-12 14:58:58] 4> a0001 LOGIN "user" "password" [2017-07-12 14:58:59] 4< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584 [2017-07-12 14:58:59] Handling CAPABILITY [2017-07-12 14:58:59] 4< a0001 OK u...@gmail.com authenticated (Success) [2017-07-12 14:58:59] IMAP queue drained [2017-07-12 14:58:59] Communication encrypted at 256 bits [2017-07-12 14:58:59] 4> a0002 CAPABILITY a0003 ENABLE UTF8=ACCEPT a0004 LIST "" "" [2017-07-12 14:58:59] 4< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584 [2017-07-12 14:58:59] Handling CAPABILITY [2017-07-12 14:58:59] 4< a0002 OK Success [2017-07-12 14:58:59] 4< * ENABLED UTF8=ACCEPT [2017-07-12 14:58:59] Handling ENABLED [2017-07-12 14:58:59] 4< a0003 OK Success [2017-07-12 14:58:59] 4< * LIST (\Noselect) "/" "/" [2017-07-12 14:58:59] 4< a0004 OK Success [2017-07-12 14:58:59] IMAP queue drained [2017-07-12 14:58:59] Wähle INBOX aus... [2017-07-12 14:58:59] 4> a0005 SELECT "INBOX" [2017-07-12 14:58:59] mboxcache: hcache uidvalidity 1, uidnext 804436 [2017-07-12 14:58:59] 4< * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing $label5 Junk NonJunk Old) [2017-07-12 14:58:59] Getting mailbox FLAGS [2017-07-12 14:58:59] 4< * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing $label5 Junk NonJunk Old \*)] Flags permitted. [2017-07-12 14:58:59] Getting mailbox PERMANENTFLAGS [2017-07-12 14:58:59] 4< * OK [UIDVALIDITY 1] UIDs valid. [2017-07-12 14:58:59] Getting mailbox UIDVALIDITY [2017-07-12 14:58:59] 4< * 2 EXISTS [2017-07-12 14:58:59] Handling EXISTS [2017-07-12 14:58:59] cmd_handle_untagged: New mail in INBOX - 2 messages total. [2017-07-12 14:58:59] 4< * 0 RECENT [2017-07-12 14:58:59] 4< * OK [UIDNEXT 804436] Predicted next UID. [2017-07-12 14:58:59] Getting mailbox UIDNEXT [2017-07-12 14:58:59] 4< * OK [HIGHESTMODSEQ 68909157] [2017-07-12 14:58:59] 4< a0005 OK [READ-WRITE] INBOX selected. (Success) [2017-07-12 14:58:59] IMAP queue drained [2017-07-12 14:58:59] Mailbox flags: [2017-07-12 14:58:59] [\Answered] [2017-07-12 14:58:59] [\Flagged] [2017-07-12 14:58:59] [\Draft] [2017-07-12 14:58:59] [\Deleted] [2017-07-12 14:58:59] [\Seen] [2017-07-12 14:58:59] [$NotPhishing] [2017-07-12 14:58:59] [$Phishing] [2017-07-12 14:58:59] [$label5] [2017-07-12 14:58:59] [Junk] [2017-07-12 14:58:59] [NonJunk] [2017-07-12 14:58:59] [Old] [2017-07-12 14:58:59] [\*] [2017-07-12 14:58:59] [2017-07-12 14:58:59] message.c:209: mutt_mktemp returns "/dev/shm/mutt-latitude-1000-17231-566588517966251944". [2017-07-12 14:58:59] updating progress: 0 [2017-07-12 14:58:59] Werte Cache aus... 0/2 (0%) [2017-07-12 14:58:59] 4> a0006 UID FETCH 1:804435 (UID FLAGS) [2017-07-12 14:58:59] 4< * 1 FETCH (UID 799060 FLAGS (\Seen)) [2017-07-12 14:58:59] Handling FETCH [2017-07-12 14:58:59] FETCH response ignored for this message [2017-07-12 14:58:59] 4< * 2 FETCH (UID 799065 FLAGS (\Seen)) [2017-07-12 14:58:59] Handling FETCH [2017-07-12 14:58:59] FETCH response ignored for this message [2017-07-12 14:58:59] 4< a0006 OK Success [2017-07-12 14:58:59] IMAP queue drained [2017-07-12 14:58:59] updating progress: 0 [2017-07-12 14:58:59] Hole Nachrichten-Köpfe... 0/2 (0%) [2017-07-12 14:58:59] imap_open_mailbox: msgcount is 2 [2017-07-12 14:58:59] Sortiere Mailbox... [2017-07-12 14:58:59] mutt_addr_is_user: no, all failed. [2017-07-12 14:58:59] mutt_addr_is_user: no, all failed. [2017-07-12 14:58:59] mutt_addr_is_user: no, all failed. [2017-07-12 14:58:59] mutt_addr_is_user: no, all failed. [2017-07-12 14:58:59] mutt_addr_is_user: no, all failed. [2017-07-12 14:58:59] mutt_addr_is_user: no, all failed. [2017-07-12 14:58:59] Schlage imap.strato.de nach... [2017-07-12 14:58:59] Verbinde zu imap.strato.de... [2017-07-12 14:58:59] Connected to imap.strato.de:143 on fd=5 [2017-07-12 14:58:59] imap_cmd_step: grew buffer to 512 bytes [2017-07-12 14:58:59] 5< * OK [CAPABILITY IMAP4 IMAP4rev1 STARTTLS AUTH=DIGEST-MD5 AUTH=CRAM-MD5 AUTH=LOGIN AUTH=PLAIN CHILDREN ENABLE I18NLEVEL=2 ID IDLE MOVE MULTIAPPEND NAMESPACE QUOTA SORT UIDPLUS UNSELECT WITHIN XLIST] IMAP server ready (P2 -) [2017-07-12 14:58:59] Handling CAPABILITY [2017-07-12 14:58:59] IMAP queue drained [2017-07-12 14:58:59] 5> a0000 STARTTLS [2017-07-12 14:59:00] 5< a0000 OK TLS negotiation now [2017-07-12 14:59:00] IMAP queue drained [2017-07-12 14:59:00] SSL/TLS Verbindung unter Verwendung von TLS1.2 (ECDHE-RSA/AES-256-GCM/AEAD) [2017-07-12 14:59:01] 5> a0001 CAPABILITY [2017-07-12 14:59:01] 5< * CAPABILITY IMAP4 IMAP4rev1 AUTH=DIGEST-MD5 AUTH=CRAM-MD5 AUTH=LOGIN AUTH=PLAIN CHILDREN ENABLE I18NLEVEL=2 ID IDLE MOVE MULTIAPPEND NAMESPACE QUOTA SORT UIDPLUS UNSELECT WITHIN XLIST [2017-07-12 14:59:01] Handling CAPABILITY [2017-07-12 14:59:01] 5< a0001 OK CAPABILITY completed [2017-07-12 14:59:01] IMAP queue drained [2017-07-12 14:59:01] imap_authenticate: Trying method login [2017-07-12 14:59:01] SASL local ip: 2001:a61:345b:acff:1864:5839:ae0e:f6b6;34150, remote ip:2a01:238:20a:202:54f0::1103;143 [2017-07-12 14:59:01] External SSF: 256 [2017-07-12 14:59:01] External authentication name: user [2017-07-12 14:59:01] Authentifiziere (LOGIN)... [2017-07-12 14:59:01] 5> a0002 AUTHENTICATE LOGIN [2017-07-12 14:59:01] 5< + x [2017-07-12 14:59:01] mutt_sasl_cb_authname: getting authname for imap.strato.de:143 [2017-07-12 14:59:01] mutt_sasl_cb_pass: getting password for u...@imap.strato.de:143 [2017-07-12 14:59:16] 5> x [2017-07-12 14:59:16] 5< + x [2017-07-12 14:59:16] 5> x== [2017-07-12 14:59:16] 5< a0002 OK User logged in (222) [2017-07-12 14:59:16] IMAP queue drained [2017-07-12 14:59:16] SASL protection strength: 0 [2017-07-12 14:59:16] SASL protection buffer size: 65536 [2017-07-12 14:59:16] Communication encrypted at 256 bits [2017-07-12 14:59:16] 5> a0003 CAPABILITY a0004 ENABLE UTF8=ACCEPT a0005 LIST "" "" [2017-07-12 14:59:16] 5< * CAPABILITY IMAP4 IMAP4rev1 APPENDLIMIT=104857600 AUTH=DIGEST-MD5 AUTH=CRAM-MD5 AUTH=LOGIN AUTH=PLAIN METADATA LIST-EXTENDED SPECIAL-USE CREATE-SPECIAL-USE ESORT ESEARCH SEARCH=FUZZY CONDSTORE URLAUTH CHILDREN ENABLE I18NLEVEL=2 ID IDLE MOVE MULTIAPPEND NAMESPACE QUOTA SORT UIDPLUS UNSELECT WITHIN XLIST [2017-07-12 14:59:16] Handling CAPABILITY [2017-07-12 14:59:16] 5< a0003 OK CAPABILITY completed [2017-07-12 14:59:16] 5< a0004 OK ENABLE completed [2017-07-12 14:59:16] 5< * LIST (\Noselect) "." "" [2017-07-12 14:59:16] Root delimiter: . [2017-07-12 14:59:16] 5< a0005 OK LIST completed [2017-07-12 14:59:16] IMAP queue drained
signature.asc
Description: PGP signature