Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: info-gnus-english@gnu.org
Subject: Re: Automatically authenticating at local imap server
Date: Tue, 05 Feb 2008 11:00:41 -0600	[thread overview]
Message-ID: <861w7ruyme.fsf@lifelogs.com> (raw)
In-Reply-To: <mailman.6972.1202163783.18990.info-gnus-english@gnu.org>

On Mon, 04 Feb 2008 23:22:38 +0100 David <de_bb@arcor.de> wrote: 

D> Tassilo Horn <tassilo@member.fsf.org> writes:
>> But one thing is left: Is there a way to jump from a message in the
>> search result group to the original nnimap group?  I often do a search
>> to find a message I want to reply to and the reply has to be done from
>> the original group so that posting styles and group parameters are
>> considered.

D> That's on the TODO list - I always wanted a function that jumps to the
D> original message in the original group, but it's not trivial to do. My
D> idea was to call mairix with "m:<MID>", where MID is the message-id of
D> the article. Using the "-r" option, we get the full path of the mail
D> file and it should be possible to uniquely identify the group from the
D> path (the problem here is that the user might index several different
D> mail back ends with one mairix installation). Jumping to the original
D> message in this group is another problem since we only know the
D> message-id but not the article number. nnmaildir and nnml support
D> fetching articles by message-id, but AFAIK nnimap does not. Maybe it is
D> somehow possible to apply the correct posting style even when replying
D> from the nnmairix group, then we wouldn't have to get the original
D> article in the first place.

You could use the Gnus registry if it's loaded.  It will tell you the
last place a message ID was seen (it learns this by looking at the
visible messages every time you enter a group, and by hooking into
spool/move/copy/delete on each backend).  It may not know the location
for various reasons, e.g. the user limits the size of the registry or
the message hasn't been seen yet, but when the location is available
it's a very quick lookup in a hashtable, probably much faster than
calling mairix to do a search.

The registry doesn't currently record the article number, but it could.
Currently a group name is always a string and anything not a string is
extra (non-location) data, so this is not a trivial change.  Since
article numbers are stable in some backends and not in others, this may
be quite a bit of work to do properly.

Ted

  parent reply	other threads:[~2008-02-05 17:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6898.1202031751.18990.info-gnus-english@gnu.org>
2008-02-03 20:29 ` Gour
2008-02-04  8:39   ` Tassilo Horn
2008-02-04 14:33     ` David
2008-02-04 19:40       ` Tassilo Horn
2008-02-04 22:22         ` David
2008-02-05  8:32           ` Tassilo Horn
2008-02-05 10:53             ` David
2008-02-05 12:16               ` Tassilo Horn
     [not found]         ` <mailman.6972.1202163783.18990.info-gnus-english@gnu.org>
2008-02-05 17:00           ` Ted Zlatanov [this message]
2008-02-05 21:58             ` David
2008-02-06  9:17               ` Tassilo Horn
2008-02-06 11:56                 ` David
2008-02-06 23:03                   ` new version of nnmairix.el (was: Automatically authenticating at local imap server) David
     [not found]             ` <mailman.7011.1202248745.18990.info-gnus-english@gnu.org>
2008-02-06 15:24               ` Automatically authenticating at local imap server Ted Zlatanov
2008-02-06 20:07                 ` David
     [not found]                 ` <mailman.7050.1202328476.18990.info-gnus-english@gnu.org>
2008-02-15 22:35                   ` Ted Zlatanov
2008-02-23 17:55                     ` Registry not registering duplicate articles (was: Automatically authenticating at local imap server) David
     [not found]                     ` <mailman.7831.1203789258.18990.info-gnus-english@gnu.org>
2008-02-26 16:54                       ` Registry not registering duplicate articles Ted Zlatanov
2008-02-26 18:20                         ` Ted Zlatanov
2008-02-03  9:42 Automatically authenticating at local imap server Tassilo Horn
2008-02-03 11:00 ` Reiner Steib
2008-02-04  9:06   ` Tassilo Horn
2008-02-06 20:17     ` Reiner Steib
2008-02-07  9:57       ` Tassilo Horn

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=861w7ruyme.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=info-gnus-english@gnu.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).