From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83875 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: respooling nnimap group with nnimap-split-fancy Date: Wed, 13 Nov 2013 09:20:30 +0800 Message-ID: <87ob5pgkrl.fsf@ericabrahamsen.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384305615 17801 80.91.229.3 (13 Nov 2013 01:20:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Nov 2013 01:20:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32131@lists.math.uh.edu Wed Nov 13 02:20:19 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VgP7y-0007WR-3O for ding-account@gmane.org; Wed, 13 Nov 2013 02:20:18 +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 1VgP6w-0003CE-CW; Tue, 12 Nov 2013 19:19:14 -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 1VgP6t-0003C3-N1 for ding@lists.math.uh.edu; Tue, 12 Nov 2013 19:19:11 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1VgP6s-0007Nh-AK for ding@lists.math.uh.edu; Tue, 12 Nov 2013 19:19:11 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1VgP6q-0005TH-D0 for ding@gnus.org; Wed, 13 Nov 2013 02:19:08 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VgP6o-0005zd-VB for ding@gnus.org; Wed, 13 Nov 2013 02:19:06 +0100 Original-Received: from 111.197.155.130 ([111.197.155.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Nov 2013 02:19:06 +0100 Original-Received: from eric by 111.197.155.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Nov 2013 02:19:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 71 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 111.197.155.130 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:Iw7D6QlF7WqygH9gRKF24sExdqg= X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-2380--15277h-0s--0d--H*u:Emacs, 0.000-56--359h-0s--0d--H*u:Gnus, 0.000-56--359h-0s--0d--H*UA:Gnus, 0.000-56--355h-0s--0d--H*u:linux, 0.000-56--355h-0s--0d--H*UA:linux Spam tokens: 0.991-13232--727h-65615s--0d--HTo:D*gnus.org, 0.990-13731--770h-68164s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.990-13731--770h-68164s--0d--H*RU:quimby.gnus.org, 0.988-13544--958h-68166s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.988-13544--958h-68166s--0d--H*RT:80.91.231.51 Autolearn status: no -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.91.229.3 listed in list.dnswl.org] 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2 List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83875 Archived-At: Pedro Silva writes: > Hi, > > I've been trying to get respooling to work with fancy splitting on > nnimap backends with no results. Here's the relevant trace: Hi Pedro, My recollection is that respooling doesn't work on imap at all -- it's only good for nnmail (and possibly other backends). The way to achieve a similar effect with nnimap is to set this variable in your imap server config: (nnimap-unsplittable-articles (%Deleted)) The usual values are (%Deleted %Seen). Removing %Seen means that already read articles are also considered for splitting. It's not actually the same thing (you can't call it selectively on one article), but as far as I know it's the only way to do it. I'd love to be proven wrong! Eric > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > decode-coding-string(nil utf-8) > nnimap-decode-gnus-group(nil) > nnimap-request-accept-article(nil "imap.example.com" t) > funcall(nnimap-request-accept-article nil "imap.example.com" t) > (let ((gnus-command-method (or gnus-command-method (gnus-find-method-for-group group))) (result (funcall (gnus-get-function gnus-command-method (quote request-accept-article)) (if (stringp group) (let ((gname group)) (if (string-match "^[^:]+:" gname) (substring gname ...) gname)) group) (cadr gnus-command-method) last))) (if (and gnus-agent (gnus-agent-method-p gnus-command-method) (cdr result)) (progn (gnus-agent-regenerate-group group (list (cdr result))))) result) > gnus-request-accept-article(nil (nnimap "imap.example.com" (nnimap-address "imap.example.com") (nnimap-stream ssl) (nnimap-server-port 993) (nntp-authinfo-file "~/.authinfo.gpg") (nnir-search-engine imap)) t t) > eval((gnus-request-accept-article nil (quote (nnimap "imap.example.com" (nnimap-address "imap.example.com") (nnimap-stream ssl) (nnimap-server-port 993) (nntp-authinfo-file "~/.authinfo.gpg") (nnir-search-engine imap))) t t)) > nnimap-request-move-article(68484 "INBOX" "imap.example.com" (gnus-request-accept-article nil (quote (nnimap "imap.example.com" (nnimap-address "imap.example.com") (nnimap-stream ssl) (nnimap-server-port 993) (nntp-authinfo-file "~/.authinfo.gpg") (nnir-search-engine imap))) t t) t nil) > funcall(nnimap-request-move-article 68484 "INBOX" "imap.example.com" (gnus-request-accept-article nil (quote (nnimap "imap.example.com" (nnimap-address "imap.example.com") (nnimap-stream ssl) (nnimap-server-port 993) (nntp-authinfo-file "~/.authinfo.gpg") (nnir-search-engine imap))) t t) t nil) > (let* ((gnus-command-method (gnus-find-method-for-group group)) (result (funcall (gnus-get-function gnus-command-method (quote request-move-article)) article (let ((gname group)) (if (string-match "^[^:]+:" gname) (substring gname (match-end 0)) gname)) (nth 1 gnus-command-method) accept-function last move-is-internal))) (if (and result gnus-agent (gnus-agent-method-p gnus-command-method)) (progn (gnus-agent-unfetch-articles group (list article)))) result) > gnus-request-move-article(68484 "nnimap+imap.example.com:INBOX" "imap.example.com" (gnus-request-accept-article nil (quote (nnimap "imap.example.com" (nnimap-address "imap.example.com") (nnimap-stream ssl) (nnimap-server-port 993) (nntp-authinfo-file "~/.authinfo.gpg") (nnir-search-engine imap))) t t) t nil) > gnus-summary-move-article(nil nil (nnimap "imap.example.com" (nnimap-address "imap.example.com") (nnimap-stream ssl) (nnimap-server-port 993) (nntp-authinfo-file "~/.authinfo.gpg") (nnir-search-engine imap))) > gnus-summary-respool-article(nil (nnimap "imap.example.com" (nnimap-address "imap.example.com") (nnimap-stream ssl) (nnimap-server-port 993) (nntp-authinfo-file "~/.authinfo.gpg") (nnir-search-engine imap))) > call-interactively(gnus-summary-respool-article nil nil) > > Somehow, the group gets lost in there. I've tried following the trace > detailedly, but I'm afraid I've not come up with an answer to that. Any > ideas? > > This is on: > > Ma Gnus v0.8 > GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00) of 2013-11-08 on mbp-osx > > These are the relevant bits of configuration: > > (setq nnmail-split-methods 'nnimap-split-fancy > nnmail-split-fancy > '(| > ("List-Id" ".*<\\(.+\\)\\.lists\\.example\\.com>.*" "lists.\\1") > (: gnus-registry-split-fancy-with-parent) > "INBOX")) > > (add-to-list > 'gnus-secondary-select-methods `(nnimap "imap.example.com" > (nnimap-address "imap.example.com") > (nnimap-stream ssl) > (nnimap-server-port 993) > (nntp-authinfo-file ,netrc-file) > (nnir-search-engine imap))) > > Thanks for your help. Sorry for the wall of text. > -- > Pedro