go-imap icon indicating copy to clipboard operation
go-imap copied to clipboard

Stall On Empty Address

Open NoelHG opened this issue 4 years ago • 1 comments

if log.Println(to) => "[]"

then to[0].Address=> causes the thread to stall (no error)

This scenario is possible on some emails with only BBC

I expected an error in this scenario

EDIT: the struct is there but it's empty

NoelHG avatar Mar 24 '20 02:03 NoelHG

You'll need to provide more details. What are you doing? Where is the program stalled (press Ctrl+backslash to gte a backtrace)? Can you provide debug logs (see Client.SetDebug)?

emersion avatar Mar 24 '20 08:03 emersion