Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: ding@gnus.org
Subject: Re: Just shoot me now
Date: Wed, 22 Dec 2010 08:24:32 +0100	[thread overview]
Message-ID: <87bp4es21b.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <m2ipymu0k7.fsf_-_@verilab.com> (Tommy Kelly's message of "Tue, 21 Dec 2010 18:13:28 -0600")

On Wed, Dec 22 2010, Tommy Kelly wrote:

> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>> Because [ and ] are not word characters.  See
>> nnmail-split-fancy-syntax-table.
>
> Thanks Andreas. Unfortunately that 6,500 line variable, consisting
> mostly of pairs of parens enclosing numbers, is as clear as mud :-)
[...]
> 5. Begin building more simple splits then stumble on
> "\\[stuff\\]". Splitting isn't as keen on \\[ as it is on, say, \\. .
> 6. Told that nnmail-split-fancy-syntax-table is the clue
> 7. C-h v on that variable. Look. Puke. Look again.
> 8. Google for "emacs lisp syntax table"
> 9. Fall pretty much at the first fence on being told that a syntax table
> is a "char-table" about which I know very little
> 10. Start reading about what a char-table is
> 11. Consider reading about "aref" and "aset" since part of the basic
> description of char-tables mentions those
> 12. Stop and think "Seriously!? All this Just To Split My Mail!?"

Right, much too complicated.  The solution is described in the manual:

,----[ (info "(gnus)Fancy Mail Splitting") ]
|    Normally, VALUE in these splits must match a complete _word_
| according to the fundamental mode syntax table.  In other words, all
| VALUE's will be implicitly surrounded by `\<...\>' markers, which are
| word delimiters.  Therefore, if you use the following split, for
| example,
| 
|      (any "joe" "joemail")
| 
| messages sent from `joedavis@foo.org' will normally not be filed in
| `joemail'.  If you want to alter this behavior, you can use any of the
| following three ways:
| 
|   1. You can set the `nnmail-split-fancy-match-partial-words' variable
|      to non-`nil' in order to ignore word boundaries and instead the
|      match becomes more like a grep.  This variable controls whether
|      partial words are matched during fancy splitting.  The default
|      value is `nil'.
| 
|      Note that it influences all VALUE's in your split rules.
| 
|   2. VALUE beginning with `.*' ignores word boundaries in front of a
|      word.  Similarly, if VALUE ends with `.*', word boundaries in the
|      rear of a word will be ignored.  For example, the VALUE
|      `"@example\\.com"' does not match `foo@example.com' but
|      `".*@example\\.com"' does.
| 
|   3. You can set the INVERT-PARTIAL flag in your split rules of the
|      `(FIELD VALUE ...)' types, aforementioned in this section.  If the
|      flag is set, word boundaries on both sides of a word are ignored
|      even if `nnmail-split-fancy-match-partial-words' is `nil'.
|      Contrarily, if the flag is set, word boundaries are not ignored
|      even if `nnmail-split-fancy-match-partial-words' is non-`nil'.
|      (New in Gnus 5.10.7)
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



  reply	other threads:[~2010-12-22  7:24 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 22:29 What's wrong with this fancy split? Tommy Kelly
2010-12-21 22:41 ` Andreas Schwab
2010-12-21 23:50   ` Russ Allbery
2010-12-22  0:17     ` Tommy Kelly
2010-12-22  9:32     ` Andreas Schwab
2010-12-22 10:16       ` Steinar Bang
2010-12-22 10:28         ` Andreas Schwab
2010-12-22 10:35           ` Steinar Bang
2010-12-22 10:44             ` Andreas Schwab
2010-12-22 11:44               ` Bjørn Mork
2010-12-22 12:26               ` Tommy Kelly
2010-12-22 12:37                 ` Tassilo Horn
2010-12-22 12:59                   ` Tommy Kelly
2010-12-22 13:48                     ` Steinar Bang
2010-12-22 16:10                       ` Tommy Kelly
2010-12-22 17:46                         ` Steinar Bang
2010-12-22 18:19                           ` Tommy Kelly
2010-12-22 19:15                             ` Steinar Bang
2010-12-22 19:53                               ` Tommy Kelly
2010-12-22 22:12                                 ` Steinar Bang
2010-12-22 23:31                                   ` Tommy Kelly
2010-12-23 19:05                                     ` Steinar Bang
2010-12-22 15:39               ` Richard Riley
2010-12-22 12:34           ` Tommy Kelly
2010-12-22  0:13   ` Just shoot me now (was Re: What's wrong with this fancy split?) Tommy Kelly
2010-12-22  7:24     ` Reiner Steib [this message]
2010-12-22 13:57       ` Just shoot me now Richard Riley
2010-12-22 14:18         ` Tommy Kelly
2010-12-22 15:54           ` Sivaram Neelakantan
2010-12-22 16:30             ` Tommy Kelly
2010-12-22 16:54               ` Richard Riley
2010-12-22 17:12                 ` Tommy Kelly
2010-12-22 17:14                 ` Lawrence Mitchell
2010-12-22 17:43                   ` Richard Riley
2010-12-22 18:07                   ` Tommy Kelly
2010-12-22 22:40                   ` Richard Riley
2010-12-22 19:25           ` Eric S Fraga
2010-12-22  7:26     ` Just shoot me now (was Re: What's wrong with this fancy split?) Richard Riley
2010-12-22  9:35     ` Andreas Schwab
2010-12-22 12:53       ` Tommy Kelly
2010-12-22 18:21         ` Adam Sjøgren
2010-12-22 19:12           ` Tommy Kelly
2010-12-22 19:44             ` Adam Sjøgren

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=87bp4es21b.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).