From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84771 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.gnus.general Subject: Re: [gmane.emacs.gnus.user] Re: One folder in local imap not seen Date: Wed, 13 Aug 2014 12:05:25 +0200 Message-ID: References: <87mwb9wb4o.fsf@ericabrahamsen.net> <87vbpwvjj0.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1407924389 4499 80.91.229.3 (13 Aug 2014 10:06:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2014 10:06:29 +0000 (UTC) Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M33014@lists.math.uh.edu Wed Aug 13 12:06:20 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XHVRh-00010I-Sa for ding-account@gmane.org; Wed, 13 Aug 2014 12:06:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1XHVRG-0000RB-Ik; Wed, 13 Aug 2014 05:05:50 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XHVRC-0000ML-LB for ding@lists.math.uh.edu; Wed, 13 Aug 2014 05:05:46 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XHVR7-0008M7-SR for ding@lists.math.uh.edu; Wed, 13 Aug 2014 05:05:44 -0500 Original-Received: from mail-wi0-f171.google.com ([209.85.212.171]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XHVR6-000566-EO for ding@gnus.org; Wed, 13 Aug 2014 12:05:40 +0200 Original-Received: by mail-wi0-f171.google.com with SMTP id hi2so7120707wib.4 for ; Wed, 13 Aug 2014 03:05:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=VcJVjoKW2UYMV5eWtYfH4wX77PauutzTkT/N3wHreYA=; b=KNmp7zX8k2bTwn7gDFysrpRvxQNLtE5p2zvKZazXCLPWv8VVh/3PZIcJTHF1b2g961 Tg+BGzahZwwwgcNzFCZEYoHNkzckrN2EmQAOBgOhKo9lu4WsDXDVNgB0EGfNFWZo9m2A gFpJBa5DhsKnzOfmtJoUXEZQPcxL5h8nuB1RCEKTfdkekaJnFi9Ou3gyFPxYva9Wr3d/ AWrRflN6cD6FjxjpL3wLs6hB2wsFDU64fuN+jUNis17cYPpH5GuqCi33arrZ8lZowE+S 7CR6mygMGszbLZDXamZo/Ynf+9F973jsf0Im0yFuvyJyRhF0UY8y2g0sLJaMzC490EXI DqoA== X-Received: by 10.194.92.196 with SMTP id co4mr3624602wjb.4.1407924334803; Wed, 13 Aug 2014 03:05:34 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro-3.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id bx2sm3326690wjb.47.2014.08.13.03.05.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Aug 2014 03:05:33 -0700 (PDT) In-Reply-To: <87vbpwvjj0.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 13 Aug 2014 17:14:11 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84771 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric Abrahamsen writes: > Rainer M Krug writes: > >> <#secure method=3Dpgpmime mode=3Dsign> >> Eric Abrahamsen writes: >> >>> Rainer M Krug writes: >>> >>>> I am posting this here now, as I did not get any reponse on the >>>> gnus.user list. >>>> >>>> I have one folder in my local imap, which I see when I telnet into the >>>> local imap server, which is seen by e.g. Mail (OSX), but not seen by >>>> gnus. I have added the local imap server again as an additional server, >>>> but I also couldn't see it there. It is not killed as far as I can see. >>> >>> One good way of seeing where things are going wrong is to edebug >>> `nnimap-get-groups'. When you go into the *Server* buffer and list the >>> groups in your local imap server, you'll be able to see the results of >>> the LIST command, and then see how Gnus parses those results. That >>> should get you closer to the source of the problem. >> >> OK - yes, it does. But it does not help me. When I cycle through the >> 'nnimap-get-groups' function, I can't make any sense out of the results, >> but I realized that in the (while ...) loop (see the code for reference = below), the folder >> ...[Mailbox].Later does not occur. As I can't make any sense out of the >> previous results. >> >> Any further tips how I can debug this?=20 > > The early part of the function is just issuing the LIST command to imap, > and inserting the results into a buffer. Just to make sure that the LIST > command *isn't* returning your folder, step through `nnimap-get-groups' > again, and when you get to the second (goto-char (point-min)), hit "e" > to eval, and tell it (switch-to-buffer (current-buffer)). That should > make visible a buffer with a name like "# *nntpd**-44898>". You can see the results of the LIST command there. > > If the folder really isn't in that list, then I don't know what to tell > you -- Gnus should be getting exactly the same results as your local > telnet experiments.=20 OK - they are in the result from the LIST output: ,---- | ... | * LIST (%HasNoChildren) "." "RMKrugGMAIL.[Gmail].All Mail". | * LIST (%HasNoChildren) "." RMKrugGMAIL.[Gmail].Bin. | * LIST (%HasNoChildren) "." RMKrugGMAIL.[Gmail].Drafts. | * LIST (%HasNoChildren) "." RMKrugGMAIL.[Gmail].Important. | * LIST (%HasNoChildren) "." RMKrugGMAIL.[Gmail].Sent. | * LIST (%HasNoChildren) "." "RMKrugGMAIL.[Gmail].Sent Mail". | * LIST (%HasNoChildren) "." RMKrugGMAIL.[Gmail].Spam. | * LIST (%HasNoChildren) "." RMKrugGMAIL.[Gmail].Starred. | * LIST (%HasChildren) "." RMKrugGMAIL.[Mailbox]. | * LIST (%HasNoChildren) "." RMKrugGMAIL.[Mailbox].Later. | * LIST (%HasNoChildren) "." "RMKrugGMAIL.[Mailbox].To Buy". | * LIST (%HasNoChildren) "." "RMKrugGMAIL.[Mailbox].To Download". | * LIST (%HasNoChildren) "." "RMKrugGMAIL.[Mailbox].To Follow". | * LIST (%HasNoChildren) "." "RMKrugGMAIL.[Mailbox].To Read". | * LIST (%HasNoChildren) "." "RMKrugGMAIL.[Mailbox].To Watch". | * LIST (%HasNoChildren) "." "RMKrugGMAIL.[Mailbox].Wait For Feedback". | * LIST (%HasNoChildren) "." RMKrugGMAIL.Emacs-macosx. | * LIST (%HasNoChildren) "." RMKrugGMAIL.INBOX. | ... `---- But the line with the '.Later' folder is not iterated through in the while loop. > Are you using dovecot or what? Yes - I am using dovecot via the following definition: ,---- | (add-to-list 'gnus-secondary-select-methods=20=20=20=20=20=20=20=20=20=20 | '(nnimap "Maildir" | (nnimap-stream shell) | (nnimap-shell-program "/usr/local/opt/dovecot/libex= ec/dovecot/imap -o mail_location=3Dmaildir:$HOME/Maildir"))) `---- But as the LIST command returns the folder, the problem is likely in the (while ...) loop. When I do search-forward in the buffer itself, it stops as expected in each line. Rainer > > Eric > >> For information, some info on the folders: >> >> This one does not =3Dshow in GNUS: >> ,---- >> | a EXAMINE "RMKrugGMAIL.[Mailbox].Later" >> | * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) >> | * OK [PERMANENTFLAGS ()] Read-only mailbox. >> | * 11 EXISTS >> | * 0 RECENT >> | * OK [UIDVALIDITY 1355158626] UIDs valid >> | * OK [UIDNEXT 60] Predicted next UID >> | * OK [HIGHESTMODSEQ 54] Highest >> | a OK [READ-ONLY] Examine completed (0.008 secs). >> `---- >> >> This one does: >> ,---- >> | a EXAMINE "RMKrugGMAIL.[Mailbox].To Read" >> | * OK [CLOSED] Previous mailbox closed. >> | * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) >> | * OK [PERMANENTFLAGS ()] Read-only mailbox. >> | * 57 EXISTS >> | * 0 RECENT >> | * OK [UIDVALIDITY 1355158623] UIDs valid >> | * OK [UIDNEXT 62] Predicted next UID >> | * OK [HIGHESTMODSEQ 65] Highest >> | a OK [READ-ONLY] Examine completed (0.007 secs). >> `---- >> >> Any further suggestions? >> >> Rainer >> >> ,---- >> | (defun nnimap-get-groups () >> | (erase-buffer) >> | (let ((sequence (nnimap-send-command "LIST \"\" \"*\"")) >> | groups) >> | (nnimap-wait-for-response sequence) >> | (subst-char-in-region (point-min) (point-max) >> | ?\\ ?% t) >> | (goto-char (point-min)) >> | (nnimap-unfold-quoted-lines) >> | (goto-char (point-min)) >> | (while (search-forward "* LIST " nil t) >> | (let ((flags (read (current-buffer))) >> | (separator (read (current-buffer))) >> | (group (read (current-buffer)))) >> | (unless (member '%NoSelect flags) >> | (push (utf7-decode (if (stringp group) >> | group >> | (format "%s" group)) t) >> | groups)))) >> | (nreverse groups))) >> `---- >> >> >>> >>> HTH, >>> Eric >>> >>>> Further details are in the forwarded email below. >>>> >>>> Suggestions? >>>> >>>> Rainer >>>> >>>> From: Rainer M Krug >>>> Subject: Re: One folder in local imap not seen >>>> Newsgroups: gmane.emacs.gnus.user >>>> To: info-gnus-english@gnu.org >>>> Date: Mon, 11 Aug 2014 18:44:43 +0200 (1 day, 6 hours, 26 minutes ago) >>>> >>>> I created a new foreign group which connects to my local imap server a= nd >>>> I still can't see the imap folder named "Later" >>>> >>>> I can see=20 >>>> >>>> ,---- >>>> | 0: .[Mailbox].To Buy >>>> | 0: . .To Follow >>>> | * 0: . .To Read >>>> | 0: . .To Watch >>>> | 0: . .Wait For Feedback >>>> | 0: . .To Download >>>> `---- >>>> >>>> of the following folders: >>>> >>>> ,---- >>>> | . .RMKrugGMAIL.[Mailbox].Later >>>> | .. .. cur >>>> | .. .. dovecot-uidlist >>>> | .. .. dovecot.index.cache >>>> | .. .. dovecot.index.log >>>> | .. .. maildirfolder >>>> | .. .. new >>>> | .. .. tmp >>>> | .. .RMKrugGMAIL.[Mailbox].To Buy >>>> | .. .. cur >>>> | .. .. dovecot-uidlist >>>> | .. .. dovecot.index.cache >>>> | .. .. dovecot.index.log >>>> | .. .. maildirfolder >>>> | .. .. new >>>> | .. .. tmp >>>> | .. .RMKrugGMAIL.[Mailbox].To Download >>>> | .. .. cur >>>> | .. .. dovecot-uidlist >>>> | .. .. dovecot.index.cache >>>> | .. .. dovecot.index.log >>>> | .. .. maildirfolder >>>> | .. .. new >>>> | .. .. tmp >>>> | .. .RMKrugGMAIL.[Mailbox].To Follow >>>> | .. .. cur >>>> | .. .. dovecot-uidlist >>>> | .. .. dovecot.index.cache >>>> | .. .. dovecot.index.log >>>> | .. .. maildirfolder >>>> | .. .. new >>>> | .. .. tmp >>>> | .. .RMKrugGMAIL.[Mailbox].To Read >>>> | .. .. cur >>>> | .. .. dovecot-uidlist >>>> | .. .. dovecot.index.cache >>>> | .. .. dovecot.index.log >>>> | .. .. maildirfolder >>>> | .. .. new >>>> | .. .. tmp >>>> | .. .RMKrugGMAIL.[Mailbox].To Watch >>>> | .. .. cur >>>> | .. .. dovecot-uidlist >>>> | .. .. dovecot.index.log >>>> | .. .. maildirfolder >>>> | .. .. new >>>> | .. .. tmp >>>> | .. .RMKrugGMAIL.[Mailbox].Wait For Feedback >>>> | .. .. cur >>>> | .. .. dovecot-uidlist >>>> | .. .. dovecot.index.cache >>>> | .. .. dovecot.index.log >>>> | .. .. maildirfolder >>>> | .. .. new >>>> | .. .. tmp >>>> `---- >>>> >>>> >>>> So what is happening here? >>>> >>>> As I said, when I Mail (OSX), I can see the folders. >>>> >>>> Rainer >>>> >>>> >>>> Rainer M Krug writes: >>>> >>>>> ping >>>>> >>>>> any ideas why this is the case? >>>>> >>>>> Is there a cache which I could delete? >>>>> >>>>> Rainer >>>>> >>>>> Rainer M Krug writes: >>>>> >>>>>> Hi >>>>>> >>>>>> I am using=20 >>>>>> >>>>>> ,---- >>>>>> | gmail <-> offlineimap <-> dovecot tunnel <-> local maildir <-> dov= ecot tunnel <-> gnus >>>>>> `---- >>>>>> >>>>>> to access my mail. I have one folder which is in gmail, synched to my >>>>>> local maildir, visible via localhost from the Mail app (I am using O= SX) >>>>>> but I can't see it in gnus. >>>>>> >>>>>> It is not listed in under the servers, not even as killed folder. >>>>>> >>>>>> Any suggestions how I can see this folder from gnus? >>>>>> >>>>>> The name of the folder is=20 >>>>>> >>>>>> ,---- >>>>>> | [Mailbox]/Later >>>>>> `---- >>>>>> >>>>>> while there are sever other folders like >>>>>> >>>>>> ,---- >>>>>> | [Mailbox].To Buy >>>>>> `---- >>>>>> >>>>>> and all=20 >>>>>> >>>>>> ,---- >>>>>> | [gmail]... >>>>>> `---- >>>>>> >>>>>> which I can see. >>>>>> >>>>>> Any suggestions? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Rainer >>>> >>>> --=20 >>>> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Bio= logy, UCT), Dipl. Phys. (Germany) >>>> >>>> Centre of Excellence for Invasion Biology >>>> Stellenbosch University >>>> South Africa >>>> >>>> Tel : +33 - (0)9 53 10 27 44 >>>> Cell: +33 - (0)6 85 62 59 98 >>>> Fax : +33 - (0)9 58 10 27 44 >>>> >>>> Fax (D): +49 - (0)3 21 21 25 22 44 >>>> >>>> email: Rainer@krugs.de >>>> >>>> Skype: RMkrug >>>> >>>> PGP: 0x0F52F982 >>>> >>>> >>>> ---------- >>> >>> >>> > > > =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJT6zhqAAoJENvXNx4PUvmCk9YH/3NRNcEbVspqPMGoSRf+xD0v L4RaMQphJ/qoK/LqgQK9tOP13WrbzLiYwvxXac0gCVlUuaH49FZBNGGR6z1kxkbI ymZ3EneI73doRkuic1B2NQUFSPzzTO2Spw6lJOynte4LtKN56+yfKTfgGRwLKAQq zJPdcO2q5h3gT0eauo2TXpAUm+iRsSE7HLy3/Q5MZwZmDeqU2gvZdHOL/hEKm0+p NRQzU/1VYB+5mwFbExsqHqSyPDhaIEBXw4IknqhbtlkVYpSTgxN2Q4/AUpjeecyf bKcrUx+iCySyRMLAtJiiDs/AZSOqInhhDhtSMfzA9ZfNHGr0g8pjTVMxm8TLD9s= =pmCm -----END PGP SIGNATURE----- --=-=-=--