From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58307 Path: main.gmane.org!not-for-mail From: "Yan Tang" Newsgroups: gmane.emacs.gnus.general Subject: Two problems with gnus Date: Sat, 21 Aug 2004 17:45:54 +0800 Organization: PKU Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=gbk Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1093103778 18187 80.91.224.253 (21 Aug 2004 15:56:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Aug 2004 15:56:18 +0000 (UTC) Original-X-From: ding-owner+M6848@lists.math.uh.edu Sat Aug 21 17:56:07 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ByYDv-0001GB-00 for ; Sat, 21 Aug 2004 17:56:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1ByYCl-0006Kk-00; Sat, 21 Aug 2004 10:54:55 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BySIA-0005eu-00 for ding@lists.math.uh.edu; Sat, 21 Aug 2004 04:36:06 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BySI9-0005Va-SO for ding@lists.math.uh.edu; Sat, 21 Aug 2004 04:36:05 -0500 Original-Received: from pku.org.cn (unknown [210.51.4.12]) by justine.libertine.org (Postfix) with SMTP id C34C43A0042 for ; Sat, 21 Aug 2004 04:36:04 -0500 (CDT) Original-Received: from localhost([210.77.10.160]) by pku.org.cn(AIMC 2.9.5.8) with SMTP id jmf41276e4c; Sat, 21 Aug 2004 17:31:19 +0800 Original-To: ding@gnus.org User-Agent: Opera M2/7.53 (Linux, build 737) X-AIMC-AUTH: tangyan X-AIMC-MAILFROM: tangyan@pku.org.cn Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58307 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58307 Now I am trying to use gnus to handle my mails, but I have some problem=20= =20 with imap in gnus. The problem is as following, a little strange: First, my simple `gnus.el' is only for mail: -------------------------------------------------- (setq user-mail-address "foo@bar.org" user-full-name "blahblah") (setq gnus-select-method '(nnimap "imap.bar.org" (nnimap-server-port 143) (nnimap-authenticator login) (nnimap-stream network) )) -------------------------------------------------- When I press M-x gnus in emacs, a user&password pair will be required.=20= =20 That's ok, just for test. After the startup of gnus I get *Server* buffer like this by pressing `^' : ------------------------------------ {nnfolder:archive} (closed) {nndraft:} (opened) {nnimap:imap.bar.org} (opened) ------------------------------------- Then I go into {nnimap:imap.bar.org} and subscribe `INBOX' group and=20=20 return to *Group* buffer like this: ------------------------------- 1: INBOX 0: nndraft:drafts ------------------------------- Everything seems ok, ;-), and I get one new mail in INBOX, right? But when I press `enter' on the line `1: INBOX', waiting for a second or=20= =20 two, and after something splashing in minibuffer(Updating !@#$%^& ), the=20= =20 *Group* buffer becomes: ------------------------------- 0: INBOX 0: nndraft:drafts ------------------------------- Where is my new mail? I have checked my mailbox from webmail, and the=20=20 unread flag have been cleared, so the new mail has been read, but actually= =20=20 I don't even touch it. And the output of *imap-log* buffer is like this: -------------------------------------------------------------- 63 SELECT "INBOX" * 18 EXISTS * 0 RECENT * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [UNSEEN 1] Message 17 is first unseen * OK [PERMANENTFLAGS (\Deleted \Seen \*)] Limited * OK [UIDVALIDITY 1] UIDs valid 63 OK [READ-WRITE] SELECT completed 64 UID SEARCH UID 81 * SEARCH 64 OK UID SEARCH completed 65 UID FETCH 81 (UID RFC822.SIZE BODY BODY.PEEK[HEADER.FIELDS (Subject=20= =20 From Date Message-Id References In-Reply-To Xref)]) * 18 FETCH (UID 81 RFC822.SIZE 640 BODY ("text" "plain" ("format" "flowed"= =20=20 "delsp" "yes" "charset" "gbk") NIL NIL "8bit" 82) BODY[HEADER.FIELDS=20=20 (Subject From Date Message-Id References In-Reply-To Xref)] {167} Subject: 999999 From: "blahblah" FROM: foo@bar.org Date: Sat, 21 Aug 2004 15:27:28 +0800 Message-ID: ) 65 OK UID FETCH completed 66 UID STORE 81 +FLAGS (\Seen) * 18 FETCH (FLAGS (\Flagged \Seen)) 66 OK UID STORE completed 67 EXPUNGE 67 OK EXPUNGE completed 68 CLOSE 68 OK CLOSE completed ------------------------------------------------------------------- I guess it is a small & silly question, but it is really annoying. I have= =20=20 searched google and read most of gnus manual, but it seems only this=20=20 problem kisses me. Why? Another question is strange too although I have solved it. But it made me= =20=20 believe that there is something wrong in the document of gnus. gnus version: 5.9.0 nnimap 0.131 This is part of my gnus.el: ------------------------------------- (setq gnus-select-method '(nnimap "imap.bar.org" (nnimap-server-port 143) (nnimap-authenticator login) (nnimap-stream network) )) ------------------------------------- Now I want to save the user&password pair so that next time when I start=20= =20 gnus I don't need to input them. So I change the above like this: ---------------------------------------- (setq gnus-select-method '(nnimap "imap.bar.org" (nnimap-server-port 143) (nnimap-authenticator login) (nnimap-stream network) (nnimap-authinfo-file (expand-file-name=20=20 "~/.authinfo")) )) ---------------------------------------- And in "~/.authinfo" I wrote: --------------------------------- machine imap.bar.org login foo password !@#%$ --------------------------------- But when I start gnus I get an error: "error stringp nil..." OK, so I guess somewrong with the new line I added (nnimap-authinfo...), so I rewrote it like this: (nnimap-authinfo-file "~/.authinfo") Well, this time it works, but why? What's the worse, I still have to input the user&password pair. Then I read almost all the manual of gnus but no explanation. At last I found a trick in google: add "port 143" in .authinfo file: ----------------------------------- machine imap.bar.org login foo password !@#%$ port 143 ------------------------------------- And this time, I don't need to input the pair. But all the examples in=20= =20 manual just say machine, login, password. I know gnus is a good email/news client, but I think tricks of these kind= =20=20 should be written in FAQ or manual. So terrible! Thank you very much.