Comment by ~mmf on ~sircmpwn/aerc2
Just in case anyone is interested, I've submitted a patch for custom sorting of folders: https://lists.sr.ht/~sircmpwn/aerc/patches/9229
Comment by ~mmf on ~sircmpwn/aerc2
Regarding this, I have to ideas that might help: add an option to hide some folders and/or add an option to choose the sort order of the folders. I'd really like to see custom sorting and could probably implement it myself, but first I need to have some free time to look into how workers are implemented and what are the conventions between them.
Comment by ~mmf on ~sircmpwn/aerc2
yes, indeed, I added some logging and this is the file that's crashing everything:
1526999220.15704_126.x1c6,U=39669
Comment by ~mmf on ~sircmpwn/aerc2
This is a 2 level tree:
. ├── Archive │ ├── cur │ ├── .mbsyncstate │ ├── new │ ├── tmp │ └── .uidvalidity ├── Drafts │ ├── cur │ ├── .mbsyncstate │ ├── new │ ├── tmp │ └── .uidvalidity ├── INBOX │ ├── cur │ ├── .mbsyncstate │ ├── new │ ├── tmp │ └── .uidvalidity ├── Memo │ ├── cur │ ├── .mbsyncstate │ ├── new │ ├── tmp │ └── .uidvalidity ├── Sent │ ├── cur │ ├── .mbsyncstate │ ├── new │ ├── tmp │ └── .uidvalidity ├── Spam │ ├── cur │ ├── .mbsyncstate │ ├── new │ ├── tmp │ └── .uidvalidity ├── to-file │ ├── cur │ ├── .mbsyncstate │ ├── new │ ├── tmp │ └── .uidvalidity ├── to-reply │ ├── cur │ ├── .mbsyncstate │ ├── new │ ├── tmp │ └── .uidvalidity └── Trash ├── cur ├── .mbsyncstate ├── new ├── tmp └── .uidvalidity 52 directories, 26 files
Inside
cur
most files are named like these:1542276656.822_64.x1c6,U=260:2,S 1553764995.90e7c4c77f225825.x1c6,U=504:2,S 1572779328.x1c6.1616574100007587665bc6b15a7c1c99,U=9484:2,S
Comment by ~mmf on ~sircmpwn/aerc2
So I have an Archive folder, inside of which there were two mbsync's dotfiles which I moved out of the way.
new
andtmp
are empty andcur
contains only email files. Tried to navigate to Archive and aerc crashed with the same stacktrace.
Comment by ~mmf on ~sircmpwn/aerc2
mbsync
Ticket created by ~mmf on ~sircmpwn/aerc2
Just compiled aerc 0.3.0, however when moving to a non-empty folder I get an index out of range:
panic: runtime error: index out of range [1] with length 1 goroutine 14 [running]: github.com/emersion/go-maildir.Dir.Flags(0xc00031d8c0, 0x23, 0xc000708300, 0x21, 0xc000384060, 0x0, 0x0, 0x0, 0xfc60031dec0) /home/michele/go/pkg/mod/github.com/emersion/go-maildir@v0.0.0-20190727102040-941194b0ac70/maildir.go:224 +0x31b git.sr.ht/~sircmpwn/aerc/worker/maildir.Message.Flags(...) /home/michele/dev/tools/aerc/worker/maildir/message.go:39 git.sr.ht/~sircmpwn/aerc/worker/maildir.(*Worker).getDirectoryInfo(0xc0000ae550, 0x23) /home/michele/dev/tools/aerc/worker/maildir/worker.go:141 +0x219 git.sr.ht/~sircmpwn/aerc/worker/maildir.(*Worker).handleOpenDirectory(0xc0000ae550, 0xc0002b0780, 0xc000094600, 0xc00018df78) /home/michele/dev/tools/aerc/worker/maildir/worker.go:267 +0x339 git.sr.ht/~sircmpwn/aerc/worker/maildir.(*Worker).handleMessage(0xc0000ae550, 0xaaa840, 0xc0002b0780, 0xaaa840, 0xc0002b0780) /home/michele/dev/tools/aerc/worker/maildir/worker.go:170 +0xdc git.sr.ht/~sircmpwn/aerc/worker/maildir.(*Worker).handleAction(0xc0000ae550, 0xaaa840, 0xc0002b0780) /home/michele/dev/tools/aerc/worker/maildir/worker.go:58 +0x73 git.sr.ht/~sircmpwn/aerc/worker/maildir.(*Worker).Run(0xc0000ae550) /home/michele/dev/tools/aerc/worker/maildir/worker.go:49 +0x13d created by git.sr.ht/~sircmpwn/aerc/widgets.NewAccountView /home/michele/dev/tools/aerc/widgets/account.go:74 +0x49b
Comment by ~mmf on ~sircmpwn/aerc2
Should be fairly easy to infer the account by looking at the source of an account and matching it with the filenames returned by notmuch. Am I missing something?