unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Proposal: List-Id
@ 2015-03-15 23:02 Harlan Lieberman-Berg
  2015-03-16 11:18 ` Guyzmo
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Harlan Lieberman-Berg @ 2015-03-15 23:02 UTC (permalink / raw)
  To: notmuch

Hello everyone!

One of my (few) problems right now with notmuch is around mailing lists
that are copied, either as CC or BCC, on various emails that go around.
My filtering inside notmuch right now doesn't catch all the messages,
since the only tag I can match on is "to:foo@bar.org" and not all
messages have the to rewritten.

The standard for identifying mailing lists seems to be List-Id, as per
RFC 2919.  I can understand the desire to keep the number of headers
included in the header block low, but I wonder if this might be a common
enough use-case to suggest its inclusion.

As a counter-argument, I can see the parallel to spam filtering which
come with their own set of headers that are not special cased by
notmuch, but there seems to be much more variety in headers there - as
well as different user configurations.

Thank you all for your help, and I'm looking forward to hearing your
thoughts.  (I'm not yet subscribed, so please keep me CCed to the
thread.)

Sincerely,

-- 
Harlan Lieberman-Berg
~hlieberman

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Proposal: List-Id
  2015-03-15 23:02 Proposal: List-Id Harlan Lieberman-Berg
@ 2015-03-16 11:18 ` Guyzmo
  2015-03-16 11:35 ` David Bremner
  2015-03-16 15:28 ` Amadeusz Żołnowski
  2 siblings, 0 replies; 5+ messages in thread
From: Guyzmo @ 2015-03-16 11:18 UTC (permalink / raw)
  To: Harlan Lieberman-Berg; +Cc: notmuch

Hi Harlan,

On Sun, Mar 15, 2015 at 07:02:56PM -0400, Harlan Lieberman-Berg wrote:
> One of my (few) problems right now with notmuch is around mailing lists
> that are copied, either as CC or BCC, on various emails that go around.
> My filtering inside notmuch right now doesn't catch all the messages,
> since the only tag I can match on is "to:foo@bar.org" and not all
> messages have the to rewritten.

I'm not sure to correctly understand your issue. You're talking about
looking up all mails that are of a given mailing list?

Then I'm not sure it needs notmuch to be patched, as this can be added
pretty easily using an incoming mail filter. I'm personally using
procmail, so it'd be one such as:

    :0:notmuch.lock
    * ^List-[Ii][dD]:.*
    {
    TAGS="${TAGS} +ml -inbox"
    }

To have the inbox tag removed and the ml tag added.

Then I tend to use the right hand side of the `+` on incoming mail, so
that I can choose a unique tag for my mail filtering upon subscription
to the mailing list:

    :0:notmuch.lock
    * ^TO\/guyzmo\+[a-z0-9]+@m0g\.net
    * MATCH ?? ^guyzmo\+\/[a-z0-9]+
    {
    TAGS="+${MATCH}"
    }

As an example, just look my From header here ;-)

> The standard for identifying mailing lists seems to be List-Id, as per
> RFC 2919.  I can understand the desire to keep the number of headers
> included in the header block low, but I wonder if this might be a common
> enough use-case to suggest its inclusion.
> As a counter-argument, I can see the parallel to spam filtering which
> come with their own set of headers that are not special cased by
> notmuch, but there seems to be much more variety in headers there - as
> well as different user configurations.

One issue I can see for indexing `List-Id` is that even though there's
an RFC for that, the value given can be either a `name <mail>`, a
`mail` or a `name` field. There's no real rule and the content can
sometimes be quite unreliable when it comes to index search.

I believe that this discussion has happened in the past, and IIRC, the
output that it was not to be integrated.

HTH,

-- 
Guyzmo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Proposal: List-Id
  2015-03-15 23:02 Proposal: List-Id Harlan Lieberman-Berg
  2015-03-16 11:18 ` Guyzmo
@ 2015-03-16 11:35 ` David Bremner
  2015-03-16 15:28 ` Amadeusz Żołnowski
  2 siblings, 0 replies; 5+ messages in thread
From: David Bremner @ 2015-03-16 11:35 UTC (permalink / raw)
  To: Harlan Lieberman-Berg, notmuch

Harlan Lieberman-Berg <hlieberman@setec.io> writes:
>
> The standard for identifying mailing lists seems to be List-Id, as per
> RFC 2919.  I can understand the desire to keep the number of headers
> included in the header block low, but I wonder if this might be a common
> enough use-case to suggest its inclusion.
>

I think the real blocker at this point is that some copies of a message
may have list-id header and some not. Currently we only index the first
copy of a message that arrives. Indexing all copies would probably be a
good step in any case, but e.g. handling deletion of files requires some
care in that case.

d

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Proposal: List-Id
  2015-03-15 23:02 Proposal: List-Id Harlan Lieberman-Berg
  2015-03-16 11:18 ` Guyzmo
  2015-03-16 11:35 ` David Bremner
@ 2015-03-16 15:28 ` Amadeusz Żołnowski
  2015-03-16 17:03   ` guyzmo
  2 siblings, 1 reply; 5+ messages in thread
From: Amadeusz Żołnowski @ 2015-03-16 15:28 UTC (permalink / raw)
  To: Harlan Lieberman-Berg; +Cc: notmuch

[-- Attachment #1: Type: text/plain, Size: 156 bytes --]

There's afew [0].  One of its core features is tagging mails by List-Id.

[0] https://github.com/teythoon/afew


Cheers,

-- 
Amadeusz Żołnowski

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Proposal: List-Id
  2015-03-16 15:28 ` Amadeusz Żołnowski
@ 2015-03-16 17:03   ` guyzmo
  0 siblings, 0 replies; 5+ messages in thread
From: guyzmo @ 2015-03-16 17:03 UTC (permalink / raw)
  To: Amadeusz Żołnowski; +Cc: Harlan Lieberman-Berg, notmuch

On Mon, Mar 16, 2015 at 04:28:44PM +0100, Amadeusz Żołnowski wrote:
> There's afew [0].  One of its core features is tagging mails by List-Id.
> [0] https://github.com/teythoon/afew

wha, didn't know about it, GG, I might switch away from procmail! 
And that's a huge deal, as I've been using it for >15years :-)

-- 
Guyzmo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-16 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-15 23:02 Proposal: List-Id Harlan Lieberman-Berg
2015-03-16 11:18 ` Guyzmo
2015-03-16 11:35 ` David Bremner
2015-03-16 15:28 ` Amadeusz Żołnowski
2015-03-16 17:03   ` guyzmo

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).