On 10/4/24 12:05, Mark Lawrence wrote:
> Hello list owners and others,
> 
> I recently subscribed to this list, and it is doing a fine job of
> forwarding me mails. They fall into my inbox where I prefer everything
> to go, but I find them somewhat indistinguishable from the rest.
> 
> There is usually an option somewhere in list software to prefix Subject
> lines with an identifier, like I've done for this email. Is that
> something that's been considered before? Would it be interesting now?
> 
> Cheers,
> Mark

List-Id: <misc.opensmtpd.org>

You can filter based on headers provided already - for example List-Id.
With Sieve this could look something like the following.

> list
sieve.txt  <- active script
> get sieve.txt
require ["fileinto"];

if header :contains "list-id" "misc.openbsd.org" {
  fileinto "INBOX.OpenBSD.misc";
} elsif header :contains "list-id" "ports.openbsd.org" {
  fileinto "INBOX.OpenBSD.ports";
} elsif header :contains "list-id" "tech.openbsd.org" {
  fileinto "INBOX.OpenBSD.tech";
} elsif header :contains "list-id" "source-changes.openbsd.org" {
  fileinto "INBOX.OpenBSD.source-changes";
} elsif header :contains "list-id" "ports-changes.openbsd.org" {
  fileinto "INBOX.OpenBSD.ports-changes";
} elsif header :contains "list-id" "misc.opensmtpd.org" {
  fileinto "INBOX.OpenSMTPD.misc";
} else {
  keep;
}


-- 
Christian


Reply via email to