forked from Silverfish/proton-bridge
Merge release/golden-gate into devel
This commit is contained in:
@ -139,7 +139,16 @@ func (iu *imapUser) GetMailbox(name string) (mb goIMAPBackend.Mailbox, err error
|
||||
|
||||
storeMailbox, err := iu.storeAddress.GetMailbox(name)
|
||||
if err != nil {
|
||||
log.WithField("name", name).WithError(err).Error("Could not get mailbox")
|
||||
logMsg := log.WithField("name", name).WithError(err)
|
||||
|
||||
// GODT-97: some clients perform SELECT "" in order to unselect.
|
||||
// We don't want to fill the logs with errors in this case.
|
||||
if name != "" {
|
||||
logMsg.Error("Could not get mailbox")
|
||||
} else {
|
||||
logMsg.Debug("Failed attempt to get mailbox with empty name")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user