all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: gnus Split Rules to SIEVE
Date: Mon, 21 Sep 2015 01:55:43 +0200	[thread overview]
Message-ID: <87bncw3atc.fsf@debian.uxu> (raw)
In-Reply-To: 20150920223506.9499.1BF89E81@ahiker.mooo.com

Ian Zimmerman <itz@buug.org> writes:

> (Apologies in advance if long lines in Emanuel's
> code mess up a reader's display.)

?! :)

> It is only a challenge if you write your gnus rules
> like this, relying on regexps operators instead of
> doing it the natural Lisp way. Roughly like this:
>
>> (setq nnmail-split-methods '(("spam-ooa"
>> "^X-Spam-Flag: YES") ("spam-ooa" "^Subject:
>> lists.bofh.it mailing list memberships reminder")
>> ("spam-ooa" "^Subject: Happy Birthday From
>> Facebook")

What about this line:

    ("zsh"          "^\\(Cc\\|\\(Resent-\\)?To\\):.*zsh-\\(announce\\|workers\\|users\\)@zsh\.org.*")

The regexps are called for and this will be very
complicated to translate to any other syntax,
regardless if that other syntax supports regexps
or not.

(By the way, why don't the OP publish all or a couple
of his Gnus splitting rules so we can reason about the
real thing?)

> I believe this style would be easy to translate.
>
> (Btw., you can match regexps with Sieve too, at
> least with a decent implementation which includes
> the requisite plugin. Dovecot does.)

Help that is easy to offer should be offered the OP.

But: even if the help is easy to offer, which it
isn't, and even if the help is offered, which hasn't
happened yet, it is still better to write the SIEVE
point blank. It might not be the Lisp way (whatever
that is) but it is the intelligent and enjoyable way
that will use a reasonable amount of time to solve
a problem the way it was intended to be solved.
Don't you think?

-- 
underground experts united
http://user.it.uu.se/~embe8573




  reply	other threads:[~2015-09-20 23:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-20 12:16 gnus Split Rules to SIEVE b0ef
2015-09-20 17:45 ` b0ef
2015-09-20 18:27   ` Ian Zimmerman
2015-09-20 22:20     ` Emanuel Berg
2015-09-20 22:44       ` Ian Zimmerman
2015-09-20 23:55         ` Emanuel Berg [this message]
2015-09-21  0:45           ` Ian Zimmerman
2015-09-21  1:06             ` Emanuel Berg
2015-09-21  2:36             ` Emanuel Berg
2015-09-21  3:17           ` Esben Stien
2015-09-22  0:00             ` Emanuel Berg
2015-09-22 23:57               ` Esben Stien
2015-09-23  0:23                 ` Emanuel Berg
2015-09-23  1:16               ` Ian Zimmerman
2015-09-23  1:52                 ` Emanuel Berg
2015-09-23  8:46                   ` tomas
2015-09-25  0:28                     ` Emanuel Berg
2015-09-25  7:16                       ` tomas
2015-09-26  1:58                         ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bncw3atc.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.