Deleting Mail by the Page in Mu4e

Álvaro Ramírez is a recent convert to and fan of mu4e. He’s been using the system to handle his 4 email accounts for 5 months and is happy with the results. There is a problem though: with 4 email accounts he gets a lot of spam. That’s mostly going into his spam folder, of course, but he still needs to check for false positives so he occasionally checks the spam folder for misclassified messages.

The problem arises because he now has several pages of messages to delete and mu4e doesn’t provide a convenient way of deleting whole pages of messages. But, as Ramírez says, this is Emacs so it’s straightforward to add it. Straightforward and easy as it turns out. Take a look at his post to see he accomplishes the task with just a few lines of code and the help of Roland Walker’s window-end-visible package.

If you’re an elfeed user—and you should be—you may be interested in some similar code that he uses to mark entire pages of elfeed entries as Read. I’m not sure of his use case for that but if you’re interested, here it is.

This entry was posted in General and tagged . Bookmark the permalink.