Cruden Bay, Scotland 🏴
~ferdinandyb, ~justinesmithies
With 0.18.2, folder-specific bindings certainly seem to work, if I'm not mistaken.
However, the command
:delete-message
itself acts strange for me: in a Gmail account, it only deletes messages if run in[Gmail]/Trash
folder. In any other folder (or, label in Gmail's vocabulary), it just deletes a message from the current folder (strips the current label from an email).Sadly, I don't recall it already, but it's possible it was the command's behaviour (different at the time of submission), not the folder-specific bindings per se, that was the reason for my original report (I don't remember if I only had this one folder-specific binding back then and if I tested it with other mappings).
Anyway, as the title stands now, it probably can be closed?
~skejg or/and ~justinesmithies is this still an issue for you on current master?
Comment by ~justinesmithies on ~rjarry/aerc
Yes adding a delay like this
sleep 1 && aerc :split 20
works perfectly thank you.FYI I can get the delay down to
0.5
without causing any issues.
Comment by ~justinesmithies on ~rjarry/aerc
I too have noticed this issue also and I'm using the latest git version.
Ticket created by ~justinesmithies on ~rjarry/aerc
I was wanting to have the option :split 20 when aerc starts so thought I could put it onto the line:
aerc-startup=aerc :split 20
But this just gives me the following errors:
aerc has encountered a critical error and has terminated. Please help us fix this by sending this log and the steps to reproduce the crash to: ~rjarry/aerc-devel@lists.sr.ht Thank you Version: 0.15.1.r0.g3c1703f +notmuch (go1.20.3 amd64 linux) This error was also written to: /tmp/aerc-crash-20230501-230406.log panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x561482bcda3c] goroutine 16 [running]: git.sr.ht/~rjarry/aerc/log.PanicHandler() git.sr.ht/~rjarry/aerc/log/panic-logger.go:51 +0x70f panic({0x561482dd7e00, 0x56148324f720}) runtime/panic.go:890 +0x263 git.sr.ht/~rjarry/aerc/lib.(*MessageStore).Selected(...) git.sr.ht/~rjarry/aerc/lib/msgstore.go:586 git.sr.ht/~rjarry/aerc/widgets.(*MessageList).Selected(...) git.sr.ht/~rjarry/aerc/widgets/msglist.go:391 git.sr.ht/~rjarry/aerc/widgets.(*AccountView).Split(0xc000266460, 0x7f7f88ea7108?) git.sr.ht/~rjarry/aerc/widgets/account.go:571 +0x47c git.sr.ht/~rjarry/aerc/commands/account.Split.Execute({}, 0x2?, {0xc0007b01a0, 0x2, 0xc0007d4eb0?}) git.sr.ht/~rjarry/aerc/commands/account/split.go:69 +0x225 git.sr.ht/~rjarry/aerc/commands.(*Commands).ExecuteCommand(0xc0007131d8?, 0x561482df0aa0?, {0xc0002af640?, 0x2, 0x4}, 0x7f7f60356100?, 0x10?) git.sr.ht/~rjarry/aerc/commands/commands.go:129 +0x30e main.execCommand(0xc0000000c0, 0xc00023e000, {0xc0002af640, 0x2, 0x4}, 0xc0000dbdb8?, 0x56148273d0c8?) git.sr.ht/~rjarry/aerc/main.go:72 +0x22f main.main.func1({0xc0002af640?, 0x56148260e188?, 0xc000284b90?}, 0x10?, 0x10?) git.sr.ht/~rjarry/aerc/main.go:200 +0x45 git.sr.ht/~rjarry/aerc/widgets.(*Aerc).Command(0x0?, {0xc0002af640?, 0x56148260be07?, 0x10?}) git.sr.ht/~rjarry/aerc/widgets/aerc.go:793 +0x67 git.sr.ht/~rjarry/aerc/lib/ipc.(*AercServer).handleMessage(0xc00023c080, 0xc0007a4390) git.sr.ht/~rjarry/aerc/lib/ipc/receive.go:128 +0x2b1 git.sr.ht/~rjarry/aerc/lib/ipc.(*AercServer).Serve(0xc00023c080) git.sr.ht/~rjarry/aerc/lib/ipc/receive.go:82 +0x6da created by git.sr.ht/~rjarry/aerc/lib/ipc.StartServer git.sr.ht/~rjarry/aerc/lib/ipc/receive.go:36 +0x1d0
Have I done something wrong or is this a bug ?
~justinesmithies, can you have a look at this patch to see if it fixes the issue?
https://lists.sr.ht/~rjarry/aerc-devel/patches/40706
Thanks
Comment by ~justinesmithies on ~rjarry/aerc
Glad I wan't totally getting it wrong and it is indeed a bug ;)
Cool so I don't need the line cache-headers = true if I'm using maildir:// then is that correct ?
Comment by ~justinesmithies on ~rjarry/aerc
Oh hang on is it because I have the line cache-headers = true in accounts.conf ? Answer is no doesn't make a difference.
Found this info:
Comment by ~justinesmithies on ~rjarry/aerc
Sure my dots are here and I apologise in advance if it's a rookie mistake by myself. I'm using the latest git master of aerc too from the aur package aerc-git.
https://codeberg.org/JustineSmithies/hyprland-dotfiles/src/branch/master
Comment by ~justinesmithies on ~rjarry/aerc
Apologies in accounts.conf I have:
check-mail-cmd = mbsync -q gmail && msmtp-runqueue.sh