From ablacktshirt at gmail.com Fri Apr 20 14:46:17 2018 From: ablacktshirt at gmail.com (Yubin Ruan) Date: Fri, 20 Apr 2018 22:46:17 +0800 Subject: is it possible to auto-detect mailing list? Message-ID: <20180420144617.qeuse2wmbpt2ljfk@HP> Most mailing lists emails have several sepecial headers, for example, "Mailing-List" and "X-Mailing-List". Is it possible to mark those emails as subscribed (as if we have used `subscribe list at address.org' in .muttrc), such that there is a 'L' flag showing up in the index? Yubin From cs at cskk.id.au Fri Apr 20 22:43:18 2018 From: cs at cskk.id.au (Cameron Simpson) Date: Sat, 21 Apr 2018 08:43:18 +1000 Subject: is it possible to auto-detect mailing list? In-Reply-To: <20180420144617.qeuse2wmbpt2ljfk@HP> References: <20180420144617.qeuse2wmbpt2ljfk@HP> Message-ID: <20180420224318.GA28134@cskk.homeip.net> On 20Apr2018 22:46, Yubin Ruan wrote: >Most mailing lists emails have several sepecial headers, for example, >"Mailing-List" and "X-Mailing-List". Is it possible to mark those emails as >subscribed (as if we have used `subscribe list at address.org' in .muttrc), such >that there is a 'L' flag showing up in the index? If you fetch mail through a mail filing program such as procmail you could recognise these as they come in and add new lists to your muttrc as they are seen. Cheers, Cameron Simpson From tom at furie.org.uk Fri Apr 20 22:43:49 2018 From: tom at furie.org.uk (Tom Furie) Date: Fri, 20 Apr 2018 23:43:49 +0100 Subject: is it possible to auto-detect mailing list? In-Reply-To: <20180420144617.qeuse2wmbpt2ljfk@HP> References: <20180420144617.qeuse2wmbpt2ljfk@HP> Message-ID: <20180420224349.GA12455@furie.org.uk> On Fri, Apr 20, 2018 at 10:46:17PM +0800, Yubin Ruan wrote: > Most mailing lists emails have several sepecial headers, for example, > "Mailing-List" and "X-Mailing-List". Is it possible to mark those emails as > subscribed (as if we have used `subscribe list at address.org' in .muttrc), such > that there is a 'L' flag showing up in the index? I'd say it seems possible. My immediate first thoughts (without much effort) would be to search for the relevant headers. If found, check against a "subscribed" file. If the mailing list doesn't already have an entry, add it. Perhaps procmail and sed would be useful for the purpose. The subscription file could be sourced by .muttrc. Of course, changes won't be reflected until mutt is restarted. Cheers, Tom -- Employees and their families are not eligible. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: From fa-ml at ariis.it Fri Apr 20 22:56:05 2018 From: fa-ml at ariis.it (Francesco Ariis) Date: Sat, 21 Apr 2018 00:56:05 +0200 Subject: is it possible to auto-detect mailing list? In-Reply-To: <20180420144617.qeuse2wmbpt2ljfk@HP> References: <20180420144617.qeuse2wmbpt2ljfk@HP> Message-ID: <20180420225605.xwxfjaf3lhlz35ec@x60s.casa> On Fri, Apr 20, 2018 at 10:46:17PM +0800, Yubin Ruan wrote: > Most mailing lists emails have several sepecial headers, for example, > "Mailing-List" and "X-Mailing-List". Is it possible to mark those emails as > subscribed (as if we have used `subscribe list at address.org' in .muttrc), such > that there is a 'L' flag showing up in the index? Hello Yubin, not a real answer unfortunately, but I guess the main reason this has not been implemented is because there are two commands in mutt, `subscribe` and plain `lists`, and deciding which-is-which cannot be done by simply checking the headers -F From paka at opensuse.org Fri Apr 20 23:17:22 2018 From: paka at opensuse.org (Patrick Shanahan) Date: Fri, 20 Apr 2018 19:17:22 -0400 Subject: is it possible to auto-detect mailing list? In-Reply-To: <20180420224349.GA12455@furie.org.uk> References: <20180420144617.qeuse2wmbpt2ljfk@HP> <20180420224349.GA12455@furie.org.uk> Message-ID: <20180420231722.GP15344@wahoo.no-ip.org> * Tom Furie [04-20-18 18:54]: > On Fri, Apr 20, 2018 at 10:46:17PM +0800, Yubin Ruan wrote: > > > Most mailing lists emails have several sepecial headers, for example, > > "Mailing-List" and "X-Mailing-List". Is it possible to mark those emails as > > subscribed (as if we have used `subscribe list at address.org' in .muttrc), such > > that there is a 'L' flag showing up in the index? > > I'd say it seems possible. My immediate first thoughts (without much > effort) would be to search for the relevant headers. If found, check > against a "subscribed" file. If the mailing list doesn't already have > an entry, add it. > > Perhaps procmail and sed would be useful for the purpose. > > The subscription file could be sourced by .muttrc. Of course, changes > won't be reflected until mutt is restarted. no, simply, :source will do it. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode From tom at furie.org.uk Sat Apr 21 14:47:40 2018 From: tom at furie.org.uk (Tom Furie) Date: Sat, 21 Apr 2018 15:47:40 +0100 Subject: is it possible to auto-detect mailing list? In-Reply-To: <20180420231722.GP15344@wahoo.no-ip.org> References: <20180420144617.qeuse2wmbpt2ljfk@HP> <20180420224349.GA12455@furie.org.uk> <20180420231722.GP15344@wahoo.no-ip.org> Message-ID: <20180421144740.GA32766@furie.org.uk> On Fri, Apr 20, 2018 at 07:17:22PM -0400, Patrick Shanahan wrote: > * Tom Furie [04-20-18 18:54]: > > The subscription file could be sourced by .muttrc. Of course, changes > > won't be reflected until mutt is restarted. > no, simply, :source will do it. Okay, thank you. Of course that's also an option :) Cheers, Tom -- Madness has no purpose. Or reason. But it may have a goal. -- Spock, "The Alternative Factor", stardate 3088.7 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: