On 16:34 Tue 08 Sep , Kevin J. McCarthy wrote: > On Wed, Sep 09, 2015 at 12:12:19AM +0200, Andreas Schäfer wrote: > > I've prepared a patch for mutt 1.5.24 which allows users to mute > > threads like Google Mail does. The patch is attached, a slightly > > longer rationale is available here[1]. Would you be interested in > > merging this with trunk? > > To me, this feels like half of a solution. When you mute a thread in > gmail, new mail associated with the thread no longer appears. This > patch requires the user to repeatedly hit the <tag-muted-threads> > binding and move them out of the mailbox.
Yeah, this is so it's modular. I originally intended this code to run automatically every time a user opens a mailbox and then delete all mails. I don't think though that this is what everyone wants. Making this available as command gives user more flexibility: you're still free to add a hook to your inbox and run <tag-muted-threads><enter><tag-prefix-cond><delete-message><end-cond> or save the messages to an archive or something else. That way it's fully automatic. > I think this problem may be better served by procmail or some > other external delivery filter. A quick search turned up > https://vorner.cz/en/thread_tag.html which seems to solve this problem. Procmail was my first thought, too. It requires user to run their own central mail host though and these days this is no longer true for many mutt users. Basically everyone who's accessing his GMail account throgh imap can't use procmail. A lot of our students use mutt with our university's imap service. I do run my own mail server (which collects mail from various inboxes, clients sync local copies via imap+isync), but even for me the Perl script thread_tag.pl mentioned above won't work: - procmail would run on the central server, mutt runs on my clients. I'd have to sync thread_tag's config between the server and all clients (ideally directly from mutt). - Un-ignoring threads is difficult as user would need to guess the cached message ID which all follow ups reference. In general reviewing the ignore list is inconvenient with this script (there are only message IDs, my solution lets users work with a plain mailbox, directly in mutt). - Pulling in procmail and a 130 lines of Perl is a smell, if you compare that to less than 60 lines of C (as in my patch). Cheers -Andreas -- ========================================================== Andreas Schäfer HPC and Grid Computing Department of Computer Science 3 Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany +49 9131 85-27910 PGP/GPG key via keyserver http://www.libgeodecomp.org ========================================================== (\___/) (+'.'+) (")_(") This is Bunny. Copy and paste Bunny into your signature to help him gain world domination!
signature.asc
Description: Digital signature
