imapfilter icon indicating copy to clipboard operation
imapfilter copied to clipboard

Segfault when using `options.recover` and re-login fails or password was changed

Open rhaas80 opened this issue 3 years ago • 0 comments

imapfilter can fail with a segfault if one uses options.recover = true and the login fails or if one has changed the password in the lua account object in between initial login and the recover operation.

Pull request #253 has details.

A reproducers is something like this:

account = IMAP {
   server = 'outlook.office365.com',
   username = '[email protected]',
   password = "secretsecret"
}

print("re-login")
account:logout()
account:login()

print("logout and login")
account:logout()
account._account.password = "foobar"
account:login()

rhaas80 avatar Aug 17 '22 19:08 rhaas80