Gnus development mailing list
 help / color / mirror / Atom feed
From: "Steven E. Harris" <seh@panix.com>
To: ding@gnus.org
Subject: Re: New nnimap error with Gcc
Date: Mon, 02 Jul 2007 20:22:32 -0700	[thread overview]
Message-ID: <83wsxip3wi.fsf@torus.sehlabs.com> (raw)
In-Reply-To: <87lkdy525s.fsf@mocca.josefsson.org>

Simon Josefsson <simon@josefsson.org> writes:

> For some reason, Gnus thinks the article number is nil instead of some
> integer.  I don't know why that happens.  Edebuging some of the
> functions named above might help.

gnus-request-accept-article calls on nnimap-request-accept-article
around line 620 in gnus-int.el. nnimap-request-accept-article returns
nil, because its last form is a call to nnheader-report, which always
returns nil.

This returned nil is captured in the "result" binding in
gnus-request-accept-article. The cdr of this nil value is then passed in
to gnus-agent-regenerate-group, where the nil result gets bound to the
optional "reread" argument. The nil value counts as a list on line 4071
in gnus-agent.el, so the nil is combined with 'del and '(read) and
passed on to gnus-agent-synchronize-group-flags, where it's bound to the
"actions" parameter.

This "actions" list makes it down to nnimap-request-set-mark, which
pulls apart each member into "range", "what", and "cmdmarks" around line
1245 in nnimap.el.

Given the "actions" list of

  (((nil) del (read)))

the car is

  ((nil) del (read))

of which (nth 0 *) yields

  (nil)

for the "range" binding. Down on line 1271 in nnimap.el, we test "range"
and find it non-nil, so we continue to try to pass it off to
imap-range-to-message-set, which fails.

I see a conflict here. There's an assumption that
nnimap-request-accept-article won't return nil, but I don't see how it
can return anything but nil, given that it returns with nnheader-report.

Does any of this help?

-- 
Steven E. Harris



  reply	other threads:[~2007-07-03  3:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-30 17:35 Steven E. Harris
2007-07-02 14:08 ` Simon Josefsson
2007-07-03  3:22   ` Steven E. Harris [this message]
     [not found]     ` <7ybqcr79q8.fsf@fillmore.spawar.navy.mil>
2007-08-29 18:49       ` Courier-IMAP and UIDPLUS problem (was: New nnimap error with Gcc) Steven E. Harris
2007-08-30  0:56         ` Courier-IMAP and UIDPLUS problem Steven E. Harris

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=83wsxip3wi.fsf@torus.sehlabs.com \
    --to=seh@panix.com \
    --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).