-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outlook: Duplication of Sent Mail #2
Comments
With Outlook-based accounts, while (tries < 4 && uids->count() == 0) {
if (delay[tries]) {
logger->info("-- No messages found. Sleeping {} to wait for sent folder to settle...", delay[tries]);
std::this_thread::sleep_for(std::chrono::seconds(delay[tries]));
}
tries ++;
session->findUIDsOfRecentHeaderMessageID(sentPath, AS_MCSTR(draft.headerMessageId()), uids);
}
if (multisend && (uids->count() > 0)) {
// ...
} else if (!multisend && (uids->count() == 1)) {
// ...
} else {
logger->info("-- No messages matching the message-id were found in the Sent folder.", uids->count());
} Still digging... |
Based on the logs, it was looking for UID
@bengotow One possibility is that there's an off-by-one error with Outlook sent mail UIDs specifically. However, as I cannot yet build Mailsync on my Ubuntu machine (due to Mailcore2), I have no way to test. I think I'll have to pitch this your way now. |
Hello. This problem seems to still exist. Is there any plan to fix it any time soon? Thank you |
Bump. Bug still exists. I use 3 outlook.com accounts with mailspring and is horrible that each mail is doubled. |
Also bumping, issue exists with 4 Outlook/Exchange accounts I have on latest version, Windows 10. |
Issue still persists on the latest version, Windows 11. Bumping. |
Wanted to flag that the issue still exists in the latest versions, both for Linux and Windows (I have in on an Arch Linux install and on Windows 11). Can anyone just confirm that the recipients aren't getting multiple emails as a result. |
I haven't been part of the Mailspring project for some time, but I will say, I found the reason for this. Outlook already saves all sent messages server-side, so the client needs to not do the same. On Thunderbird (what I use now), I have to turn off "copy sent mail to Sent". |
Objective
Sent mails are duplicating in Microsoft-based email accounts, one per recipient, plus one created by Mailspring.
Testing Notes
This needs to be tested with Outlook accounts. There are plenty of reporters who can verify the fix (as can I).
Tips
The code responsible for moving mail to sent is in Mailspring-Sync/MailSync/TaskProcessor.cpp:1442-1536. I’m going to dig into a bit, and see if I can figure out what’s going wrong, as it is supposed to prevent duplication of sent messages.
References
https://community.getmailspring.com/t/duplication-of-sent-mail/275
The text was updated successfully, but these errors were encountered: