[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error in nnimap-open-connection-1 when using nnimap-stream plain
From: |
Burton Samograd |
Subject: |
Re: Error in nnimap-open-connection-1 when using nnimap-stream plain |
Date: |
Fri, 16 Nov 2012 16:27:36 -0700 |
User-agent: |
Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.3.50 (cygwin) |
Burton Samograd <burton@samograd.ca> writes:
> Hello,
>
> When I use the following select method:
>
> (setq gnus-select-method '(nnimap "localhost"
> (nnimap-address "localhost")
> (nnimap-server-port 1143)
> (nnimap-stream plain)))
>
> I get a "wrong type argument: string nil" message when running gnus.
> Tracking this down lead me into nnimap-open-connection-1, where it
> doesn't look like capabilities are set when using nnimap-stream plain
> (or maybe some other reason).
>
> I fixed it by wrapping the mapcar #'upcase with an if statement
> (starting at line 433 of my gnus sources in nnimap.el):
>
> (setf (nnimap-capabilities nnimap-object)
> (if capabilities
> (mapcar #'upcase
> (split-string capabilities))
> ""))
I realized after sending that this probably should have been:
(setf (nnimap-capabilities nnimap-object)
(if capabilities
(mapcar #'upcase
(split-string capabilities))))
since if returns nil, which I should have been returning rather than the
empty string.
--
Burton Samograd