From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Fixing slowness of following Gnus links to IMAP articles Date: Fri, 30 Jul 2010 22:03:55 +0200 Message-ID: <87r5ik20us.fsf@mundaneum.com> References: <87r5jrcx9g.fsf@mundaneum.com> <87oce7j26i.fsf@thinkpad.tsdh.de> <87fwzjfyf8.fsf@mundaneum.com> <878w5bkxx7.fsf@mundaneum.com> <87hbjyzicz.fsf@thinkpad.tsdh.de> <13292.1279382554@gamaville.dokosmarshall.org> <87zkxpanh1.fsf@mundaneum.com> <23154.1279399784@gamaville.dokosmarshall.org> <87zkxpg5cg.fsf@mundaneum.com> <87wrstn4a9.fsf@mundaneum.com> <87fwzf51t1.fsf@thinkpad.tsdh.de> <87d3ujbrwt.wl%dmaus@ictsoc.de> <87wrsrmcnf.fsf@mundaneum.com> <87lj96k6xn.wl%dmaus@ictsoc.de> <87wrsoy5b2.fsf@mundaneum.com> <87aapdzalm.fsf_-_@thinkpad.tsdh.de> <874ofkoekr.wl%dmaus@ictsoc.de> <11714.1280265482@alphaville.usa.hp.com> <87bp9s14nn.fsf@thinkpad.tsdh.de> <87zkxaeo8g.wl%dmaus@ictsoc.de> <87lj8uqi14.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Tassilo and David, Tassilo Horn wrote: > David Maus writes: >> >> Now the strange thing is that the novcache file in ~/News/overview is >> 100% identical to .overview in ~/News/agent > > Two are better than one! (I have no idea why.) > >> ,---- >> | dmaus@t41 ~/News % md5sum overview/nnimap/localhost/INBOX/1280089306/n= ovcache agent/nnimap/localhost/INBOX/.overview >> | b4a78e25a064f0c260f76080a00991cd overview/nnimap/localhost/INBOX/1280= 089306/novcache >> | b4a78e25a064f0c260f76080a00991cd agent/nnimap/localhost/INBOX/.overvi= ew >> | dmaus@t41 ~/News % >> `---- >> >> Anyway: `nnimap-retrieve-headers-from-file' does not work as expected. >> First, it requires the group parameter without backend and server >> prefix (e.g. "INBOX" instead of "nnimap+localhost:INBOX". > > I've expected that. > >> Second it would return a cons (min-UID . max-UID). That wouldn't help >> us, would it? > > What an appropriately named function that is. ;-) No, that wouldn't > help. But its code could be stolen to write and own function to insert > the right NOV file in a temp buffer, to search for the message-id. > Something like that: > > (defun org-gnus-nnimap-get-article-number (group server message-id) > (with-current-buffer nntp-server-buffer > (let ((nov (nnimap-group-overview-filename group server))) > (when (file-exists-p nov) > (mm-insert-file-contents nov) > (set-buffer-modified-p nil) > (when (search-forward message-id nil t) > (goto-char (line-beginning-position)) > (read (current-buffer))))))) > > That function is totally untested, but might do what it should. Just to say I'm back online -- after a week holiday and an almost nil access to the newsgroups. Thanks a lot for trying to get Gnus better behaving in face of slow servers like Courier... Do "you" want me to test something special to move things forward? FYI, here is the state (for months or years) of the 3 vars you mentionned in the thread: - nnimap-nov-is-evil is nil - gnus-agent is nil - gnus-agent-cache is t Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode