* gnus request scan issue : backtrace
@ 2010-10-05 14:23 Richard Riley
2010-10-05 14:54 ` Ted Zlatanov
0 siblings, 1 reply; 11+ messages in thread
From: Richard Riley @ 2010-10-05 14:23 UTC (permalink / raw)
To: ding
trying to localise spam splitting to only my main imap server I
modified my imap select method to this:-
(setq nnimap-split-fancy (quote (: spam-split)))
(add-to-list 'gnus-secondary-select-methods
`(nnimap "riley"
(nnimap-address "offlineimap")
(nnir-search-engine imap)
(nnimap-stream network)
(nnimap-split-methods (quote nnimap-split-fancy))
))
Starting gnus I then get this backtrace:-
Debugger entered--Lisp error: (wrong-type-argument sequencep quote)
nnmail-article-group(nnimap-dummy-active-number)
nnmail-check-duplication("<87pqxduwtw.wl%phil@shellarchive.co.uk>"
nnimap-save-mail-spec nnimap-dummy-active-number
nnimap-save-mail-spec)
nnmail-process-mmdf-mail-format(nnimap-save-mail-spec
nnimap-dummy-active-number nnimap-save-mail-spec)
nnmail-split-incoming(#<buffer *nnimap offlineimap nil *nntpd**<4>>
nnimap-save-mail-spec nil nil nnimap-dummy-active-number
nnimap-save-mail-spec)
nnimap-split-incoming-mail()
nnimap-request-scan(nil "riley")
gnus-request-scan(nil (nnimap "riley" (nnimap-address "offlineimap")
(nnir-search-engine imap) (nnimap-stream network)
(nnimap-split-methods (quote nnimap-split-fancy))))
gnus-read-active-file-1((nnimap "riley" (nnimap-address
"offlineimap") (nnir-search-engine imap) (nnimap-stream network)
(nnimap-split-methods (quote nnimap-split-fancy))) nil)
gnus-read-active-file(nil nil)
gnus-setup-news(nil nil nil)
byte-code("\b\204\x0e
Is there anything obviously incorrect about this? And if this is a
valid "error" how would I go about cleaning up my email to avoid it?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 14:23 gnus request scan issue : backtrace Richard Riley
@ 2010-10-05 14:54 ` Ted Zlatanov
2010-10-05 15:26 ` Richard Riley
2010-10-05 18:47 ` Andreas Schwab
0 siblings, 2 replies; 11+ messages in thread
From: Ted Zlatanov @ 2010-10-05 14:54 UTC (permalink / raw)
To: ding
On Tue, 5 Oct 2010 16:23:38 +0200 Richard Riley <rileyrg@googlemail.com> wrote:
RR> trying to localise spam splitting to only my main imap server I
RR> modified my imap select method to this:-
RR> (setq nnimap-split-fancy (quote (: spam-split)))
RR> (add-to-list 'gnus-secondary-select-methods
RR> `(nnimap "riley"
RR> (nnimap-address "offlineimap")
RR> (nnir-search-engine imap)
RR> (nnimap-stream network)
RR> (nnimap-split-methods (quote nnimap-split-fancy))
RR> ))
(This is a very common confusion when you're learning ELisp. It took me
a while too.)
(quote x) and 'x are usually the same thing in ELisp. You don't want to
quote inside a quoted expression:
(setq nnimap-split-fancy (quote (: spam-split)))
(add-to-list 'gnus-secondary-select-methods
`(nnimap "riley"
(nnimap-address "offlineimap")
(nnir-search-engine imap)
(nnimap-stream network)
(nnimap-split-methods nnimap-split-fancy)
))
What you had before was "set the nnimap-split-method to the list of the
symbol 'quote followed by the symbol 'nnimap-split-fancy".
Ted
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 14:54 ` Ted Zlatanov
@ 2010-10-05 15:26 ` Richard Riley
2010-10-05 15:41 ` Ted Zlatanov
2010-10-05 18:47 ` Andreas Schwab
1 sibling, 1 reply; 11+ messages in thread
From: Richard Riley @ 2010-10-05 15:26 UTC (permalink / raw)
To: ding
2010/10/5 Ted Zlatanov <tzz@lifelogs.com>:
> On Tue, 5 Oct 2010 16:23:38 +0200 Richard Riley <rileyrg@googlemail.com> wrote:
>
> RR> trying to localise spam splitting to only my main imap server I
> RR> modified my imap select method to this:-
>
> RR> (setq nnimap-split-fancy (quote (: spam-split)))
>
> RR> (add-to-list 'gnus-secondary-select-methods
> RR> `(nnimap "riley"
> RR> (nnimap-address "offlineimap")
> RR> (nnir-search-engine imap)
> RR> (nnimap-stream network)
> RR> (nnimap-split-methods (quote nnimap-split-fancy))
> RR> ))
>
> (This is a very common confusion when you're learning ELisp. It took me
> a while too.)
>
> (quote x) and 'x are usually the same thing in ELisp. You don't want to
> quote inside a quoted expression:
>
> (setq nnimap-split-fancy (quote (: spam-split)))
>
> (add-to-list 'gnus-secondary-select-methods
> `(nnimap "riley"
> (nnimap-address "offlineimap")
> (nnir-search-engine imap)
> (nnimap-stream network)
> (nnimap-split-methods nnimap-split-fancy)
> ))
>
> What you had before was "set the nnimap-split-method to the list of the
> symbol 'quote followed by the symbol 'nnimap-split-fancy".
>
Doing that results in
nnmail-check-duplication: Wrong type argument: listp, nnimap-split-fancy
>
> Ted
>
>
> Ted
>
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 15:26 ` Richard Riley
@ 2010-10-05 15:41 ` Ted Zlatanov
2010-10-05 15:49 ` Richard Riley
2010-10-05 17:16 ` Lars Magne Ingebrigtsen
0 siblings, 2 replies; 11+ messages in thread
From: Ted Zlatanov @ 2010-10-05 15:41 UTC (permalink / raw)
To: ding
On Tue, 5 Oct 2010 17:26:08 +0200 Richard Riley <rileyrg@googlemail.com> wrote:
RR> 2010/10/5 Ted Zlatanov <tzz@lifelogs.com>:
>> (setq nnimap-split-fancy (quote (: spam-split)))
>>
>> (add-to-list 'gnus-secondary-select-methods
>> `(nnimap "riley"
>> (nnimap-address "offlineimap")
>> (nnir-search-engine imap)
>> (nnimap-stream network)
>> (nnimap-split-methods nnimap-split-fancy)
>> ))
>>
>> What you had before was "set the nnimap-split-method to the list of the
>> symbol 'quote followed by the symbol 'nnimap-split-fancy".
>>
RR> Doing that results in
RR> nnmail-check-duplication: Wrong type argument: listp, nnimap-split-fancy
Could you give a backtrace please?
Thanks
Ted
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 15:41 ` Ted Zlatanov
@ 2010-10-05 15:49 ` Richard Riley
2010-10-05 17:16 ` Lars Magne Ingebrigtsen
1 sibling, 0 replies; 11+ messages in thread
From: Richard Riley @ 2010-10-05 15:49 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: ding
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Tue, 5 Oct 2010 17:26:08 +0200 Richard Riley <rileyrg@googlemail.com> wrote:
>
> RR> 2010/10/5 Ted Zlatanov <tzz@lifelogs.com>:
>>> (setq nnimap-split-fancy (quote (: spam-split)))
>>>
>>> (add-to-list 'gnus-secondary-select-methods
>>> `(nnimap "riley"
>>> (nnimap-address "offlineimap")
>>> (nnir-search-engine imap)
>>> (nnimap-stream network)
>>> (nnimap-split-methods nnimap-split-fancy)
>>> ))
>>>
>>> What you had before was "set the nnimap-split-method to the list of the
>>> symbol 'quote followed by the symbol 'nnimap-split-fancy".
>>>
>
> RR> Doing that results in
>
> RR> nnmail-check-duplication: Wrong type argument: listp, nnimap-split-fancy
>
> Could you give a backtrace please?
>
> Thanks
> Ted
>
Hi ted,
See below
same bt give or take as the main one I started the thread with.
Debugger entered--Lisp error: (wrong-type-argument listp nnimap-split-fancy)
nnmail-article-group(nnimap-dummy-active-number)
nnmail-check-duplication("<AANLkTim=EHiJX0Kt7h9775cuW7pCkt0vs2Q7XA9bf8sd@mail.gmail.com>" nnimap-save-mail-spec nnimap-dummy-active-number nnimap-save-mail-spec)
nnmail-process-mmdf-mail-format(nnimap-save-mail-spec nnimap-dummy-active-number nnimap-save-mail-spec)
nnmail-split-incoming(#<buffer *nnimap offlineimap nil *nntpd**> nnimap-save-mail-spec nil nil nnimap-dummy-active-number nnimap-save-mail-spec)
nnimap-split-incoming-mail()
nnimap-request-scan(nil "riley")
gnus-request-scan(nil (nnimap "riley" (nnimap-address "offlineimap") (nnir-search-engine imap) (nnimap-split-methods nnimap-split-fancy) (nnimap-inbox "INBOX")))
gnus-read-active-file-1((nnimap "riley" (nnimap-address "offlineimap") (nnir-search-engine imap) (nnimap-split-methods nnimap-split-fancy) (nnimap-inbox "INBOX")) nil)
gnus-read-active-file(nil nil)
gnus-setup-news(nil nil nil)
byte-code("\b\204\x0e\0 \204\x0e\0\306 \210\202Q\0\307\310!\210\311\n!\x13\f\204\x1e\0\r\203!\0\312 \210\x0e\x1a\203+\0\313\314\315\"\210\313\316\317\"\210\320\321\x0e^[\b#\210\307\322!\210\323 \210\324\x0e^[!\210\325 \210\326\327!\210\330 \210\307\331!\210\321\207" [dont-connect did-connect gnus-startup-file gnus-current-startup-file gnus-slave gnus-use-dribble-file gnus-group-quit gnus-run-hooks gnus-startup-hook gnus-make-newsrc-file gnus-dribble-read-file gnus-request-create-group "queue" (nndraft "") "drafts" (nndraft "") gnus-setup-news nil gnus-setup-news-hook gnus-start-draft-setup gnus-group-list-groups gnus-group-first-unread-group gnus-configure-windows group gnus-group-set-mode-line gnus-started-hook gnus-agent level] 4)
gnus-1(nil nil nil)
gnus(nil)
call-interactively(gnus nil nil)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 15:41 ` Ted Zlatanov
2010-10-05 15:49 ` Richard Riley
@ 2010-10-05 17:16 ` Lars Magne Ingebrigtsen
2010-10-05 17:31 ` Ted Zlatanov
1 sibling, 1 reply; 11+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-05 17:16 UTC (permalink / raw)
To: ding
Ted Zlatanov <tzz@lifelogs.com> writes:
>>> (nnimap-split-methods nnimap-split-fancy)
That should probably be nnmail-split-fancy, or a fancy split
directly...
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 17:16 ` Lars Magne Ingebrigtsen
@ 2010-10-05 17:31 ` Ted Zlatanov
2010-10-05 18:21 ` Tibor Simko
2010-10-06 10:09 ` Richard Riley
0 siblings, 2 replies; 11+ messages in thread
From: Ted Zlatanov @ 2010-10-05 17:31 UTC (permalink / raw)
To: ding
On Tue, 05 Oct 2010 19:16:51 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
LMI> Ted Zlatanov <tzz@lifelogs.com> writes:
>>>> (nnimap-split-methods nnimap-split-fancy)
LMI> That should probably be nnmail-split-fancy, or a fancy split
LMI> directly...
Right. So many nn????-*-* strings...
Richard: if that's set to nnimap-split-fancy, then nnimap-split-fancy
must be a function as in my example. I'll update my splitting example
and post it here again when I can.
Ted
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 17:31 ` Ted Zlatanov
@ 2010-10-05 18:21 ` Tibor Simko
2010-10-06 10:09 ` Richard Riley
1 sibling, 0 replies; 11+ messages in thread
From: Tibor Simko @ 2010-10-05 18:21 UTC (permalink / raw)
To: ding
On Tue, 05 Oct 2010, Ted Zlatanov wrote:
> Richard: if that's set to nnimap-split-fancy, then nnimap-split-fancy
> must be a function as in my example. I'll update my splitting example
> and post it here again when I can.
FWIW, I'm using a setup like:
(setq gnus-secondary-select-methods '((nnimap "foo"
(nnimap-address "foo")
;; etc
(nnimap-split-methods default))))
(setq nnmail-split-methods 'nnmail-split-fancy)
(setq nnmail-split-fancy
'(|
;; to boot, I don't like duplicates:
("Gnus-Warning" "This is a duplicate" "mail.spam.duplicates")
;; etc
("List-ID" "ding\\.gnus\\.org" "mail.app.emacs.gnus")
;; etc
;; by default we do not trust the rest
"mail.personal.misc"))
Best regards
--
Tibor Simko
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 14:54 ` Ted Zlatanov
2010-10-05 15:26 ` Richard Riley
@ 2010-10-05 18:47 ` Andreas Schwab
2010-10-05 19:25 ` Ted Zlatanov
1 sibling, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2010-10-05 18:47 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: ding
Ted Zlatanov <tzz@lifelogs.com> writes:
> (add-to-list 'gnus-secondary-select-methods
> `(nnimap "riley"
> (nnimap-address "offlineimap")
> (nnir-search-engine imap)
> (nnimap-stream network)
> (nnimap-split-methods nnimap-split-fancy)
> ))
And you don't need the backquote if you don't use , and ,@. A normal
quote will do as well.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 18:47 ` Andreas Schwab
@ 2010-10-05 19:25 ` Ted Zlatanov
0 siblings, 0 replies; 11+ messages in thread
From: Ted Zlatanov @ 2010-10-05 19:25 UTC (permalink / raw)
To: ding
On Tue, 05 Oct 2010 20:47:14 +0200 Andreas Schwab <schwab@linux-m68k.org> wrote:
AS> Ted Zlatanov <tzz@lifelogs.com> writes:
>> (add-to-list 'gnus-secondary-select-methods
>> `(nnimap "riley"
>> (nnimap-address "offlineimap")
>> (nnir-search-engine imap)
>> (nnimap-stream network)
>> (nnimap-split-methods nnimap-split-fancy)
>> ))
AS> And you don't need the backquote if you don't use , and ,@. A normal
AS> quote will do as well.
I didn't see that, thanks!
Richard: backquotes are special. Using them indicates you want to
interpolate inside the expression. For example:
(setq a 4)
'(a) => (a)
`(,a) => (4)
`(,(format "hello #%s" a)) => ("hello #4")
So you want to avoid them unless you're sure you need them. See
(info "(elisp) Backquote") for more.
Ted
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: gnus request scan issue : backtrace
2010-10-05 17:31 ` Ted Zlatanov
2010-10-05 18:21 ` Tibor Simko
@ 2010-10-06 10:09 ` Richard Riley
1 sibling, 0 replies; 11+ messages in thread
From: Richard Riley @ 2010-10-06 10:09 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: ding
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Tue, 05 Oct 2010 19:16:51 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org>
> wrote:
>
> LMI> Ted Zlatanov <tzz@lifelogs.com> writes:
>>>>> (nnimap-split-methods nnimap-split-fancy)
>
> LMI> That should probably be nnmail-split-fancy, or a fancy split
> LMI> directly...
>
> Right. So many nn????-*-* strings...
>
> Richard: if that's set to nnimap-split-fancy, then nnimap-split-fancy
> must be a function as in my example. I'll update my splitting example
> and post it here again when I can.
>
> Ted
>
This has changed then? I posted my nnimap-splt-fancy in the op.
(setq nnimap-split-fancy (quote (: spam-split)))
I wont pretend not to be confused now ;)
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-10-06 10:09 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-05 14:23 gnus request scan issue : backtrace Richard Riley
2010-10-05 14:54 ` Ted Zlatanov
2010-10-05 15:26 ` Richard Riley
2010-10-05 15:41 ` Ted Zlatanov
2010-10-05 15:49 ` Richard Riley
2010-10-05 17:16 ` Lars Magne Ingebrigtsen
2010-10-05 17:31 ` Ted Zlatanov
2010-10-05 18:21 ` Tibor Simko
2010-10-06 10:09 ` Richard Riley
2010-10-05 18:47 ` Andreas Schwab
2010-10-05 19:25 ` Ted Zlatanov
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).