Skip to content

Instantly share code, notes, and snippets.

@rprimus
rprimus / readme-neomutt
Created December 11, 2020 12:26
[neomutt] issues/weirdness
* IMAP
** reading mail
- slows down at 79000
- resumes again at 112500
** INBOX
- when in another IMAP folder, shows mail in sidebar
- upon entering INBOX, 0 mail - need to quit neomutt
** Freeze with error discussed before - need to quit neomutt
** cache
- cache constant growing in size - with only ~10 new messages
@rprimus
rprimus / z-55310-lldb
Last active December 24, 2020 09:33
[neomutt] lldb backtrace
Process 55310 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x4)
frame #0: 0x0000000105b7a407 neomutt`cmd_parse_fetch(adata=0x00007fc22e035ad0, s="1 FETCH (UID 575908 RFC822.SIZE 19146 INTERNALDATE \"30-Jun-2019 23:06:48 +0000\" FLAGS (\\Seen) BODY[HEADER.FIELDS (DATE FROM SENDER SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL X-ORIGINAL-TO)] {282}") at command.c:427:3
424 return;
425 }
426
-> 427 mutt_debug(LL_DEBUG2, "Message UID %u updated\n", imap_edata_get(e)->uid);
428 /* skip FETCH */
429 s = imap_next_word(s);
430 s = imap_next_word(s);
@rprimus
rprimus / z-make-2020-12-09.l0g
Created December 9, 2020 13:33
[neomutt] make EXTRA_CFLAGS="-O0 -ggdb" TE z-make-$(DE).l0g
cc -g -O2 -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/local/opt/gpgme/include -I/usr/local/opt/libassuan/include -I/usr/local/opt/libgpg-error/include -I/usr/local/Cellar/neomutt/20201127_1/include -I/usr/local/opt/lua/include/lua5.4 -DNCURSES_WIDECHAR -I/usr/local/opt/openssl@1.1/include -I. -I. -Wall -O0 -ggdb -I./test -MT browser.o -MD -MP -MF browser.Tpo -c -o browser.o browser.c
cc -g -O2 -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/local/opt/gpgme/include -I/usr/local/opt/libassuan/include -I/usr/local/opt/libgpg-error/include -I/usr/local/Cellar/neomutt/20201127_1/include -I/usr/local/opt/lua/include/lua5.4 -DNCURSES_WIDECHAR -I/usr/local/opt/openssl@1.1/include -I. -I. -Wall -O0 -ggdb -I./test -MT commands.o -MD -MP -MF commands.Tpo -c -o commands.o commands.c
cc -g -O2 -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/local/opt/gpgme/include -I/usr/local/opt/libassuan/include -I/usr/local/opt/libgpg-error/include -I/usr/local/Cellar/neomutt/2020
@rprimus
rprimus / z-configure-2020-12-09.l1g
Created December 9, 2020 13:32
[neomutt] ./configure --prefix=/usr/local/Cellar/neomutt/20201127_1 --enable-gpgme --with-gpgme=/usr/local/opt/gpgme --gss --lmdb --notmuch --sasl --tokyocabinet --with-ssl=/usr/local/opt/openssl@1.1 --with-ui=ncurses --lua --with-lua=/usr/local/opt/lua --disable-doc TE z-configure-$(DE).l1g
Host System...x86_64-apple-darwin19.6.0
Build System...x86_64-apple-darwin19.6.0
C compiler... cc -g -O2
C++ compiler... c++ -g -O2
Build C compiler...cc
Checking for stdlib.h...ok
Checking whether the C compiler accepts -std=c99...yes
Checking for install...ok
Checking for sendmail.../usr/sbin/sendmail
Checking for minix/config.h...not found
@rprimus
rprimus / make-all.l0g
Created September 24, 2020 08:16
Changed CFLAGS: -O2 -> -O0; make all
cc -g -O0 -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/local/opt/gpgme/include -I/usr/local/opt/libassuan/include -I/usr/local/opt/libgpg-error/include -I/usr/local/Cellar/neomutt/20200821/include -I/usr/local/opt/lua/include/lua -I/usr/local/opt/gettext/include -DNCURSES_WIDECHAR -I/usr/local/opt/openssl@1.1/include -I. -I. -Wall -I./test -MT browser.o -MD -MP -MF browser.Tpo -c -o browser.o browser.c
browser.c:1161:33: warning: suggest braces around initialization of subobject [-Wmissing-braces]
struct BrowserState state = { 0 };
^
{}
1 warning generated.
cc -g -O0 -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/local/opt/gpgme/include -I/usr/local/opt/libassuan/include -I/usr/local/opt/libgpg-error/include -I/usr/local/Cellar/neomutt/20200821/include -I/usr/local/opt/lua/include/lua -I/usr/local/opt/gettext/include -DNCURSES_WIDECHAR -I/usr/local/opt/openssl@1.1/include -I. -I. -Wall -I./test -MT comman
@rprimus
rprimus / configure.l1g
Created September 24, 2020 08:14
./configure --prefix=/usr/local/Cellar/neomutt/20200821 --enable-gpgme --with-gpgme=/usr/local/opt/gpgme --gss --lmdb --notmuch --sasl --tokyocabinet --with-ssl=/usr/local/opt/openssl@1.1 --with-ui=ncurses --lua --with-lua=/usr/local/opt/lua --disable-doc --with-nls=/usr/local/opt/gettext CFLAGS+='-g -O0'
Host System...x86_64-apple-darwin19.6.0
Build System...x86_64-apple-darwin19.6.0
C compiler... cc -g -O2
C++ compiler... c++ -g -O2
Build C compiler...cc
Checking for stdlib.h...ok
Checking whether the C compiler accepts -std=c99...yes
Checking for install...ok
Checking for sendmail.../usr/sbin/sendmail
Checking for minix/config.h...not found
@rprimus
rprimus / neomutt-dtruss-afsp-system-calls-bad-state.l0g
Created September 23, 2020 10:40
dtruss -fasp <neomutt-pid>
: ; sudo dtruss -afsp 57068
Password:
dtrace: system integrity protection is on, some features will not be available
PID/THRD RELATIVE ELAPSD CPU SYSCALL(args) = return
57068/0x160e2bb: 40163723 87 1 sigaction(0x2, 0x7FFEEDDF25A8, 0x0) = 0 0
libsystem_kernel.dylib`__sigaction+0xa
neomutt`mutt_sig_allow_interrupt+0x36
neomutt`mutt_getch+0xad
@rprimus
rprimus / sly-autoloads.el
Created August 10, 2020 18:17
sly-autoloads.el generated by update-directory-autoloads
;;; sly-autoloads.el --- automatically extracted autoloads
;;
;;; Code:
;;;### (autoloads nil "sly" "sly.el" (0 0 0 0))
;;; Generated autoloads from sly.el
(define-obsolete-variable-alias 'sly-setup-contribs 'sly-contribs "2.3.2")
@rprimus
rprimus / sly-macrostep-autoloads.el
Created June 26, 2019 15:33
package-generate-autoloads sly-macrostep-autoloads.el
;;; sly-macrostep-autoloads.el --- automatically extracted autoloads
;;
;;; Code:
(add-to-list 'load-path (directory-file-name
(or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "sly-macrostep" "sly-macrostep.el" (0 0 0 0))
;;; Generated autoloads from sly-macrostep.el
@rprimus
rprimus / sly-macrostep-autoloads.el-0
Created June 26, 2019 15:32
original sly-macrostep-autoloads.el
;;;### (autoloads nil nil ("sly-macrostep-pkg.el") (0 0 0 0))
;;;***
;;;### (autoloads nil "sly-macrostep" "sly-macrostep.el" (0 0 0 0))
;;; Generated autoloads from sly-macrostep.el
(add-to-list 'sly-contribs 'sly-macrostep 'append)