Some mail services, like Outlook, already automatically copy sent mail to the Sent folder. When Mailspring sends a message, it does the exact same thing, resulting in multiple copies of the message.
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.
I have a problem with Outlook account. When i send a mail i see it two times in my send items folder.
I think the first is generate by office server and the second by the Mailspring client.
Can i have a feature like on other client “don’t save send items” ? I see this problem for other people but never solved
In thunderbird the fix is To disable saving a copy of sent mails.
I think what is happening is.
You send a message, mailspring puts a copy on Sent folder
Outlook server ALSO places a copy on Sent folder.
Local copy synced to server and Server copy synced to Local
and you end up with 2 sent copies.
So, a fix would be an option to save or not a copy of the sent message.
I wish i could help, but my coding skills are very poor
I have opened a ticket on nextcloud’s mail app for the same problem and the author changed my tittle from Duplicate Sent messages to Disable storing sent message on IMAP when SMTP server does this automatically. This might give you a hint to whats need to be done!
Me personally i don’t really have much of a problem with this issue, i don’t really send mails i usually receive. But for others might be deal breaker!
@gmarthews@PrincesseLulu Please vote for this issue, and then be patient. This project is entirely volunteer; even the core developer, Ben, does this in addition to a full-time job. If there are updates or a timeline, the thread will be updated. Asking for updates will not speed it up.
I’ve voted for this bug to be fixed because I too have encountered this issue. Interestingly enough, it seems that the indicator that the recipient has read the message appears on only one of the copies (presumably the one mailspring itself makes?). Whenever this bug gets fixed, I’d appreciate if the email remaining in my sent folder is the one with that indicator.
I’d like to add, however, that while this primarily effects outlook accounts, I also have an instance of this duplication occurring with an IMAP account – specifically, when I forwarded a few emails from my university account, which is connected through IMAP. The recipient was an outlook account, if that matters, but I thought it worth mentioning in this thread.