From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2973 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?q?Mats_L=F6fdahl?= Newsgroups: gmane.emacs.gnus.user Subject: Re: Two IMAP problems Date: Sun, 07 Sep 2003 11:01:59 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138669220 17143 80.91.229.2 (31 Jan 2006 01:00:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:00:20 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:31:30 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!c213-89-193-148.cm-upc.chello.SE!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: c213-89-193-148.cm-upc.chello.se (213.89.193.148) Original-X-Trace: news.uni-berlin.de 1062925319 19258337 213.89.193.148 (16 [83733]) X-Attribution: Mats User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:PVWUk+hD7JePXECV9PsR6nHxT4o= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:3114 Original-Lines: 103 X-Gnus-Article-Number: 3114 Tue Jan 17 17:31:30 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2973 Archived-At: Simon Josefsson writes: > Mats Löfdahl writes: > >> I've recently started trying imap in Gnus 5.10 with the following >> setup: >> >> (setq gnus-secondary-select-methods >> '((nnimap "astro" >> (nnimap-address "xxx.xxx.xxx") >> (nnimap-server-port 993) >> (nnimap-stream ssl) >> ) >> (nntp "news.chello.se") >> (nntp "news.cis.dfn.de") >> )) >> >> >> >> I have two problems: >> >> I. >> >> When nnimap-authinfo-file is ~/.authinfo (the default), Gnus still >> asks me for the login name and password. The item in ~/.authinfo is >> on the form: >> >> machine xxx.xxx.xxx login xxx password xxx > > Does adding 'port 993' help? Yes! Thank you! So for some reason it doesn't pick up the port info from gnus-secondary-select-methods. > Unfortunately, and despite the custom type, [the inline format] of > nnimap-authinfo-file is not supported. Oh. I was wondering why I hadn't seen the inline format mentioned in the manual... >> II. >> >> If I use the former method, which lets me access the imap server >> after providing the login info at startup, then I don't seem to be >> able to manipulate the contents on the server from Gnus. New mail >> is delivered fine and I can read them, but I can't edit messages or >> create new groups on the server. > > The IMAP protocol does not support editing of messages. Oh. That's a real drawback, isn't it? Not that I edit the contents of messages very much. But I often want to repair threads with "T ^", which does not seem to be possible, then. > You should be able to create new groups though. Perhaps your server > require the groups to be named 'INBOX.foo' instead of just 'foo' > though? Yes, that was it! Thank you. Hm. I guess I'll want to find a way to manipulate the group buffer so something like "imap:" or "xxx:" is substituted for the ugly "nnimap+xxx:INBOX." part. >> Also, deleted messages don't seem to disappear from the server, which >> might be another symptom of the same problem, since the default >> setting of nnimap-expunge-on-close is supposed to be "always". I now >> have several weeks' worth of spam in my imap INBOX... > > Are you accessing the group normally, via the main group buffer? > I.e., not via the server buffer or as a foreign group? If so, try > (setq imap-log t) and quote the contents generated in the *imap-log* > buffer by pressing 'q' in the summary buffer for INBOX. Perhaps there > is a error message somehow. I turned on imap-log, entered INBOX, deleted two messages, and pressed q to exit the group. Here is the contents of *imap-log*: 17 UID SEARCH UID 821:837,969,971:972,974:979,981:999,1009:1010,1013:1014,1017 NOT SINCE 31-Aug-2003 * SEARCH 17 OK SEARCH done. 18 UID STORE 1025:1026 +FLAGS (\Seen) * 1011 FETCH (UID 1025 FLAGS (\Seen \Recent)) * 1012 FETCH (UID 1026 FLAGS (\Seen \Recent)) 18 OK STORE completed. 19 STATUS "INBOX" (unseen) * STATUS "INBOX" (UNSEEN 15) 19 OK STATUS Completed. 20 EXPUNGE 20 OK EXPUNGE completed I see no error messages and it even says that it's done expunging. But the deleted messages are still there. They are marked "Y" when I enter the group again with "C-u SPC". (Don't know what the "NOT SINCE 31-Aug-2003" means. I'd entered that group both yesterday and earlier today.) -- Mats Löfdahl