mu4e has the ability to hide duplicates, with the "V" key, but I see no way to delete the messages. I've tried tricks with marking messages in and out of the hide state, but nothing seems to work well. Searching the documentation and googling has turned up nothing.

  • Not a full answer because it doesn't delete the duplicates, but you can default to hiding them with (setq mu4e-headers-skip-duplicates t). – Dan Sep 29 '14 at 12:52
  • Are you asking how to delete all the duplicates at once, or individually? – holocronweaver Sep 29 '14 at 15:02
  • Hopefully all at once since I have thousands of them with sometimes 4 extra copies. It already knows how to find them, based on message-id, which is how it hides them. I just want to delete them. What is the point of keeping them around anyway? Hiding the dups just means that when they are hidden, and I delete the one I see, the dup then appears in it's place. If I knew elisp better I could probably write a solution, but I figure I can't be the first person who has wanted this. – jtgd Sep 30 '14 at 5:04

As far as I know mu and by extension mu4e does not support this and I don't think it ever will because it does not match its design principles. Instead of providing tools to make it easier to organize your inboxes more easily it replaces organizing with searching.

There is some support for explicitly organizing mail and by saving searches you are effectively doing something similar. But the idea is that we receive so much mail that it has become inefficient to manually organize and vet our inboxes. Its not considered an issue that there might be duplicates, boring mail isn't deleted etc. Mu/mu4e is supposed to let us forget about these issues by providing good search.

There are duplicates in your sea of messages but that isn't considered an issue. Only that duplicates might be displayed is considered an issue. And for that there is (setq mu4e-headers-skip-duplicates t).

  • Hmmm... well I guess that goes along with the dropping prices of disk drives, so we can all afford to have terabytes of garbage collecting indefinitely. Not a problem. I can write a script to go delete the dups, I just figured there had to be a way to do it within the app. I guess not. Thanks for your answer. – jtgd Oct 4 '14 at 3:56
  • @jtgd Would you mind sharing your script? – andreas-h Mar 28 '16 at 7:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.