~lukehsiao


#344 panic on findNextNonDeleted 14 days ago

Ticket created by ~lukehsiao on ~sircmpwn/aerc2

I will occasionally get a panic when I attempt to delete a message that I have used :filter to search for. For example:

  • :filter -f
  • highlight message
  • :delete

Then aerc crashes. Log is below.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x64 pc=0x8a38b4]

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/commands/msg.findNextNonDeleted(0xc0016a323c, 0x1, 0x1, 0xc000195d40, 0xc0026a7c50)
    /home/user/repos/aerc/commands/msg/delete.go:84 +0x94
git.sr.ht/~sircmpwn/aerc/commands/msg.Delete.Execute(0xc0000b1cc0, 0xc0026a7c30, 0x1, 0x1, 0x1, 0xc000133790)
    /home/user/repos/aerc/commands/msg/delete.go:61 +0x1d0
git.sr.ht/~sircmpwn/aerc/commands.(*Commands).ExecuteCommand(0xc0000a4190, 0xc0000b1cc0, 0xc0026a7c30, 0x1, 0x1, 0xa79fc0, 0xc0026a7c40)
    /home/user/repos/aerc/commands/commands.go:66 +0xfe
main.execCommand(0xc0000b1cc0, 0xc0001e4140, 0xc0026a7c30, 0x1, 0x1, 0xc0026a7c30, 0xc002656840)
    /home/user/repos/aerc/aerc.go:58 +0xc5
main.main.func2(0xc0026a7c30, 0x1, 0x1, 0x1, 0x1)
    /home/user/repos/aerc/aerc.go:154 +0x57
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).BeginExCommand.func1(0xc0016a3210, 0x6)
    /home/user/repos/aerc/widgets/aerc.go:382 +0x83
git.sr.ht/~sircmpwn/aerc/widgets.(*ExLine).Event(0xc002172e00, 0xa792e0, 0xc001f14d60, 0xc001f14d60)
    /home/user/repos/aerc/widgets/exline.go:79 +0x133
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Event(0xc0000b1cc0, 0xa792e0, 0xc001f14d60, 0x90c501)
    /home/user/repos/aerc/widgets/aerc.go:202 +0x4cf
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).simulate(0xc0000b1cc0, 0xc0001a8400, 0x8, 0x8)
    /home/user/repos/aerc/widgets/aerc.go:195 +0x9b
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Event(0xc0000b1cc0, 0xa792e0, 0xc001f14c40, 0x92f500)
    /home/user/repos/aerc/widgets/aerc.go:218 +0x3f6
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc0001e4140, 0xc00008a500)
    /home/user/repos/aerc/lib/ui/ui.go:92 +0x190
main.main()
    /home/user/repos/aerc/aerc.go:184 +0x5b7

#42 Implement OAUTH extension 2 months ago

Comment by ~lukehsiao on ~sircmpwn/aerc2

Hi ~benburwell,

On Mon Dec 16, 2019 at 10:03 PM, ~benburwell wrote:

~lukehsiao, check the aerc-imap(5) manpage.

Thanks, that's what I was looking for.

#42 Implement OAUTH extension 2 months ago

Comment by ~lukehsiao on ~sircmpwn/aerc2

I'm struggling a bit to configure gmail with OAUTH. Could anyone point me in the right direction or towards the right documentation?

#333 sorting not working 2 months ago

Comment by ~lukehsiao on ~sircmpwn/aerc2

For what it's worth, I don't think sorting has been implemented quite yet based on this ticket:

https://todo.sr.ht/~sircmpwn/aerc2/17

#332 Configurable :delete folder 2 months ago

feature removed by ~lukehsiao on ~sircmpwn/aerc2

#332 Configurable :delete folder 2 months ago

Comment by ~lukehsiao on ~sircmpwn/aerc2

I've found that Gmail can be configured to behave correctly in response to a message being marked as deleted and expunged from the last visible IMAP folder. The behavior of archiving rather than deleting is the default behavior.

This can be configured by:

Settings > Forwarding and POP/IMAP > IMAP access

Changing Auto-Expunge to off, and then setting When a message is marked as deleted and expunged from the last visible IMAP folder to Move the message to the Trash.

Closing this ticket since it seems clear that aerc is doing the correct thing, and Gmail can be configured to behave correctly.

REPORTED RESOLVED BY_DESIGN

#332 Configurable :delete folder 2 months ago

Comment by ~lukehsiao on ~sircmpwn/aerc2

You can always remap a key to :move trash.

This is true. The challenge I'm facing is I'm managing multiple accounts with aerc, one of which is Gmail, which needs the special :delete treatment, while the others do not. As far as I know there is no way to configure keybindings within the context of a specific account. I could bind a special key just for Gmail, but it would be great if I could configure something in accounts.conf that allowed my actions to be consistent across accounts.

#332 Configurable :delete folder 2 months ago

feature added by ~lukehsiao on ~sircmpwn/aerc2

#332 Configurable :delete folder 2 months ago

Ticket created by ~lukehsiao on ~sircmpwn/aerc2

When working with a Gmail account in aerc, deleting a message just moves it to [Gmail]/All Mail. In Mutt, we could get around this by having delete move the message to the [Gmail]/Trash imap mailbox 1.

It would be great to have a similar way to configure what the delete command does in aerc.

#311 nil pointer dereference 3 months ago

Comment by ~lukehsiao on ~sircmpwn/aerc2

Just reporting that I have noticed this several times as well. Sometimes, when it happens, the message is sent. Othertimes it is not. I am also using vim.