Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Vadim Gutnik <gutnik@mit.edu>
Cc: ding@gnus.org, bugs@gnus.org
Subject: Re: nnimap, MIME, and split-fancy
Date: Sat, 05 Jan 2008 22:42:15 +0100	[thread overview]
Message-ID: <v98x34q79k.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <rrok5ojktjf.fsf@vinegar-pot.mit.edu> (Vadim Gutnik's message of "Thu, 15 Nov 2007 17:55:48 -0500")

On Thu, Nov 15 2007, Vadim Gutnik wrote:

> I'm using No Gnus 0.6, and nnimap.
>
> I get some mail with Subject lines that look like this:
>
> Subject:=?iso-8859-1?B?UXVhcmFudGluZSBTdW1tYXJ5IDExLzE1LzIwMDcgMTI6MDAgcG0=?= 
>
> gnus graciously decodes that, to look like this:
>
> Subject: Quarantine Summary 11/15/2007 12:00 pm
>
> But I can't split on the decoded subject line with nnimap.
> The relevant part of my .gnus is:
>
> (setq nnmail-mail-splitting-decodes 't)
> (setq nnmail-split-methods 'nnmail-split-fancy)
> (setq nnimap-split-rule 'nnmail-split-fancy)
> (setq nnimap-split-inbox '("INBOX"))
> (setq nnmail-split-fancy
>       '(| (from mail "INBOX/mailbounce")
>           ("subject" "Quarantine" "INBOX/trash")
>           "INBOX/unsorted"
>           )
>       )
>
> With this setup, "B q" tells me the mail would get sorted to
> INBOX/trash, presumably because nnmail is interepreting the split rule,
> and with (setq nnmail-mail-splitting-decodes 't), it parses the
> MIME. But the automatic respooling, or respoolig if I explicitly try 
> "B r nnimap" sends it to INBOX/unsorted.
>
> Am I making some configuration mistake, or is this a bug?

Does adding`gnus-article-decode-encoded-words' to `nnmail-split-hook'
work fro IMAP splitting?  If not, maybe it could be added?

,----[ (info "(gnus)Mail Back End Variables") ]
| `nnmail-split-hook'
|      Hook run in the buffer where the mail headers of each message is
|      kept just before the splitting based on these headers is done.
|      The hook is free to modify the buffer contents in any way it sees
|      fit--the buffer is discarded after the splitting has been done,
|      and no changes performed in the buffer will show up in any files.
|      `gnus-article-decode-encoded-words' is one likely function to add
|      to this hook.
`----

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



       reply	other threads:[~2008-01-05 21:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <rrok5ojktjf.fsf@vinegar-pot.mit.edu>
2008-01-05 21:42 ` Reiner Steib [this message]
2008-01-08 20:43   ` Vadim Gutnik

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=v98x34q79k.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=bugs@gnus.org \
    --cc=ding@gnus.org \
    --cc=gutnik@mit.edu \
    /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).