Gnus development mailing list
 help / color / mirror / Atom feed
* question from nnimap.el
@ 2010-12-08 21:15 Andrew Cohen
  2010-12-08 22:42 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cohen @ 2010-12-08 21:15 UTC (permalink / raw)
  To: ding



In nnimap-find-expired-articles there is this snippet to handle the
result of a UID SEARCH:

(delete 0 (mapcar #'string-to-number
      (cdr (assoc "SEARCH" (cdr result)))))


Why the delete 0? Is there some chance that the IMAP server responds
with a bogus UID?




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: question from nnimap.el
  2010-12-08 21:15 question from nnimap.el Andrew Cohen
@ 2010-12-08 22:42 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-12-08 22:42 UTC (permalink / raw)
  To: ding

Andrew Cohen <cohen@andy.bu.edu> writes:

> (delete 0 (mapcar #'string-to-number
>       (cdr (assoc "SEARCH" (cdr result)))))
>
> Why the delete 0? Is there some chance that the IMAP server responds
> with a bogus UID?

Some of the respond with non-numerical stuff in addition to the uids.
That's just an easy way to filter out everything that's non-numerical.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-08 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-08 21:15 question from nnimap.el Andrew Cohen
2010-12-08 22:42 ` Lars Magne Ingebrigtsen

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).