From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78572 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: Using agent with IMAP, accessing read IMAP mails offline Date: Fri, 22 Apr 2011 12:09:52 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <36876.195.239.33.7.1303464228.squirrel@mail.hcoop.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1303467132 23879 80.91.229.12 (22 Apr 2011 10:12:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2011 10:12:12 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26875@lists.math.uh.edu Fri Apr 22 12:12:08 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QDDLF-0002e8-NT for ding-account@gmane.org; Fri, 22 Apr 2011 12:12:02 +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 1QDDKU-0007NJ-2x; Fri, 22 Apr 2011 05:11:14 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QDDKS-0007NA-AT for ding@lists.math.uh.edu; Fri, 22 Apr 2011 05:11:12 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QDDKQ-0000g3-Q0 for ding@lists.math.uh.edu; Fri, 22 Apr 2011 05:11:11 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QDDKP-0004xv-Dg for ding@gnus.org; Fri, 22 Apr 2011 12:11:09 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QDDKN-00025H-S9 for ding@gnus.org; Fri, 22 Apr 2011 12:11:07 +0200 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Apr 2011 12:11:07 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Apr 2011 12:11:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 111 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:IL/IImITP7Mjmxc5NRAT2xw2Cyw= X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-1629--5772h-0s--0d--H*UA:Emacs, 0.000-1487--5267h-0s--0d--H*u:Emacs, 0.000-1412--5004h-0s--0d--H*UA:Gnus, 0.000-1412--5003h-0s--0d--H*u:Gnus, 0.000-1359--4815h-0s--0d--H*u:linux Spam tokens: 0.987-1--0h-1s--1d--cu, 0.970-15691--3170h-160589s--0d--HContent-Transfer-Encoding:8bit, 0.896-44--76h-1018s--0d--fingers, 0.885-1470--3704h-44047s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.885-1470--3704h-44047s--0d--H*RU:quimby.gnus.org Autolearn status: no 0.0 FREEMAIL_FROM Sender email is freemail (rileyrg[at]googlemail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78572 Archived-At: "JJ" writes: > Richard Riley googlemail.com> wrote: > >> Theoretically you enable the imap group as an agent group. You then, >> when "plugged" fetch all articles you have marked for download (in the >> manual). it doesnt work for me as I us multiple gmail accounts and the > > I understand this part, but that's why I think I'm missing something, as I > can't even start Gnus when offline, i.e. it doesn't open the Group, and > fails with: > > Warning: Opening nnimap server on xxx.xxxx.xxx...failed: Unable to contact > xxx.xxxx.xxx:nil via ssl; Denied server nnimap+xxx.xxxx.xxx; Unable to > open server nnimap+xxx.xxxx.xxx due to: xxx.xxxx.xxx/imap Name or service > not known > > As it tries to connect above and fails, but why doesn't it not try > connection when offline? You must remember there isnt (but sometimes is ...) an "offline" for Gnus. According to the manual "plugged" refers to individual servers. Some may be online, others not. Are you saying that pressing "g" for example tries to connect your servers even though they are agent groups and you are unplugged? rambling : I'm pretty sure the relevance of my reply is limited but allow me to describe my use of gnus with levels and agent. It might be of some interest. > > So I don't get to the point of agent going haywire. This is with no > settings as per gnus setup, just the gnus select method defined to an IMAP > account. > > That's why I maybe need to set something up... > >> agent goes haywire. I posted some use cases as to how I thought it could >> work better or more intuitively while away on hols recently and trying > > I must've missed your discussion of this. Could you point me to your > discussion on http://news.gmane.org/gmane.emacs.gnus.general so I can > review your setup and try to at least get it partially working... Or it > should work perfectly as I don't use multiple gmail accounts, so for one > it should work... Fingers crossed... Just google in gmane I guess. I was undoubtedly rambling too as I tend to do when trying to get my head around the finer points of Gnus ;) I was learning agent in combination with group levels and I still dont think it works as designed per se .. when groups activate is still a bit of a mystery to me. i need to sit down and review my settings. But I guess I got a bit frustrated... The articles are from the 18th March until the 3rd April or so. 17 days in the Canaries... mmm.. seems like yeas ago already. but basically, I start gnus plugged but with the default "activate" level set to 1. The only groups I have at level 1 are LOCAL email repos (nnmail) so I can instantly see root mail etc. I think all local and agentised groups ought to be configurable for activation even if unplugged. I couldnt get the right combo of settings to achieve this. "activation" in this case meaning being visible showing me how many unread I have. Thinking about this, now I do topic level "fetch" (described below) I could just make all agentised groups level 1. I need to test that again. I do that like this: ,---- | C-c m runs the command (lambda nil (interactive) (gnus-agent-toggle-plugged t) | (gnus 1)), which is an interactive Lisp function. `---- I do the plugged toggle call because Gnus remembers its plugged state between invocations : if I quit gnus when its unplugged then calling (gnus) again starts it unplugged. i think thats a bug tbh. I start it plugged but with no activation of any "online" groups so that my level 1 groups actually activate and are visible. My gmail is on level two. To get this I can C-u 2 g OR (and more likely) I put my cursor on my imap email "topic" line and hit M-g. C-u 2 g would fetch level 1 too. I have nntp at level 5. I *could* do C-u 5 g but this would get levels 4 and below too. So instead I tend to M-g on my "news" topic line. Doing C-u 5 g would fetch levels 5,4,3,2,1. Now, lets look at agent:- What I would do (if it worked with my imap setup) is go "plugged", enter a group and fetch all headers. quit the group back to the summary buffer and do a J s I think it is. I asked about a setting to automatically get all the articles and not just the headers into the agent when entering a plugged group in order to make the J s redundant form the summary buffer. That done you could go back unplugged and read "offline". But remember non agent groups are still "online". Maybe that was of some interest if not directly helping! > > Thanks a lot. > -- > JJ > -- ☘ http://www.richardriley.net