fixed mails moving
This commit is contained in:
@@ -181,7 +181,9 @@ func (s *EmailService) MoveMessageToMailbox(msg *client.FetchMessageBuffer, stat
|
||||
movable.AddNum(msg.SeqNum)
|
||||
mailbox := viper.GetStringMapString("stb.move-processed-to-mailbox")
|
||||
wait, err := s.client.Move(movable, mailbox[status]).Wait()
|
||||
|
||||
if s.CheckErr("Moving to archive", err) {
|
||||
fmt.Println("Error moving to mail:", mailbox[status], "Error:", err.Error())
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user