~mmf

Italy

https://finotto.org


#324 maildir: changing to a folder with lots of messages is very slow 9 months ago

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

#324 maildir: changing to a folder with lots of messages is very slow 9 months ago

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.

#323 maildir: index out of range when opening a non-empty folder 9 months ago

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

#323 maildir: index out of range when opening a non-empty folder 9 months ago

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

#323 maildir: index out of range when opening a non-empty folder 9 months ago

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 and tmp are empty and curcontains only email files. Tried to navigate to Archive and aerc crashed with the same stacktrace.

#323 maildir: index out of range when opening a non-empty folder 9 months ago

Comment by ~mmf on ~sircmpwn/aerc2

mbsync

#323 maildir: index out of range when opening a non-empty folder 9 months ago

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

#313 Search with notmuch when using maildir backend 10 months ago

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?

#313 Search with notmuch when using maildir backend 10 months ago

feature added by ~mmf on ~sircmpwn/aerc2

#313 Search with notmuch when using maildir backend 10 months ago

notmuch added by ~mmf on ~sircmpwn/aerc2