fixed mails moving

This commit is contained in:
2025-10-28 13:36:53 +02:00
parent c8745e1f60
commit c6d1a8d455
3 changed files with 8 additions and 9 deletions

View File

@@ -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
}