Gnus development mailing list
 help / color / mirror / Atom feed
From: "Georg C. F. Greve" <greve@fsfeurope.org>
To: ding@gnus.org
Subject: Re: Proper way to handle group for mairix searches?
Date: Tue, 25 Sep 2007 17:52:08 +0200	[thread overview]
Message-ID: <m3641ywxnb.fsf@cerebro.fsfeurope.org> (raw)
In-Reply-To: <m2ir5y3h5o.fsf@lifelogs.com> (Ted Zlatanov's message of "Tue, 25 Sep 2007 10:21:07 -0500")

[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]

On Tue, 25 Sep 2007 10:21:07 -0500
Ted Zlatanov <tzz@lifelogs.com> wrote: 

 tz> Maybe you can put an IMAP server (Courier/dovecot) in front of the
 tz> Maildir?

Having to run an IMAP server to be able to cleanly reread a folder in
Gnus seems a bit excessive, imho.


 GCFG> b) Is there a way to select one of the articles on its Message-ID
 GCFG> quickly?

 tz> Not currently in core Gnus.  The gnus-registry knows where an
 tz> article is, once you visit a group (it notices each article's
 tz> message ID), but doesn't remember the article number.  So you can
 tz> write code that will go to that group and find the message ID, or
 tz> you (and I) can extend the gnus-registry to remember the article
 tz> number as well.

The registry wouldn't help, because the articles are thrown in by mairix
dynamically. So they are not going through Gnus. What we'd need to do is
enter the group, and then activate the first article that matches a
search in the header fields, I guess, but I'm wondering which would be
the best candidate to use for this.

My best bet right now would be

 (gnus-summary-select-article nil t t
  (car (gnus-find-matching-articles "message-id" msgid)))

to select and display the message with the appropriate id.

Regards,
Georg

-- 
Georg C. F. Greve                                 <greve@fsfeurope.org>
Free Software Foundation Europe	                 (http://fsfeurope.org)
Join the Fellowship and protect your freedom!     (http://www.fsfe.org)
What everyone should know about DRM                   (http://DRM.info)

[-- Attachment #2: Type: application/pgp-signature, Size: 306 bytes --]

  reply	other threads:[~2007-09-25 15:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25 14:22 Georg C. F. Greve
2007-09-25 15:21 ` Ted Zlatanov
2007-09-25 15:52   ` Georg C. F. Greve [this message]
2007-09-25 21:10   ` Reiner Steib
2007-09-25 21:54     ` Ted Zlatanov
2007-09-26  6:13       ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3641ywxnb.fsf@cerebro.fsfeurope.org \
    --to=greve@fsfeurope.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).