From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66055 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap, MIME, and split-fancy Date: Sat, 05 Jan 2008 22:42:15 +0100 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199569435 9184 80.91.229.12 (5 Jan 2008 21:43:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2008 21:43:55 +0000 (UTC) Cc: ding@gnus.org, bugs@gnus.org To: Vadim Gutnik Original-X-From: ding-owner+M14548@lists.math.uh.edu Sat Jan 05 22:44:16 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JBGoR-00027N-C8 for ding-account@gmane.org; Sat, 05 Jan 2008 22:44:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JBGnA-0006l1-Fo; Sat, 05 Jan 2008 15:42:56 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JBGn7-0006ke-3N for ding@lists.math.uh.edu; Sat, 05 Jan 2008 15:42:53 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JBGn4-00075s-2v for ding@lists.math.uh.edu; Sat, 05 Jan 2008 15:42:52 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JBGn4-0005lE-00; Sat, 05 Jan 2008 22:42:50 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m05Lgl99002735; Sat, 5 Jan 2008 22:42:47 +0100 (MET) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id B3F6E1C532; Sat, 5 Jan 2008 22:42:47 +0100 (CET) X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.;yo.b yq4$p;ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Followup-To: Vadim Gutnik , ding@gnus.org In-Reply-To: (Vadim Gutnik's message of "Thu, 15 Nov 2007 17:55:48 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-DCC-URT-Metrics: poseidon 1060; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66055 Archived-At: 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/