From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: nnir and move
Date: Wed, 10 Nov 2010 12:54:16 -0600 [thread overview]
Message-ID: <87mxphko13.fsf@lifelogs.com> (raw)
In-Reply-To: <87k4klt3zf.fsf@andy.bu.edu>
On Wed, 10 Nov 2010 13:42:28 -0500 Andrew Cohen <cohen@andy.bu.edu> wrote:
>>>>>> "Ted" == Ted Zlatanov <tzz@lifelogs.com> writes:
Ted> Could you use nnir-original-group and nnir-original-subject in
Ted> the let you said you would do? I'll make the names more
Ted> general if anyone else needs it but I was thinking this way
Ted> it's clear that it's a nnir requirement.
Ted> That way the registry will not care what nnir does to the
Ted> subject or group name, it will just take the originals from the
Ted> let-bound variables.
AC> In fact I'm thinking about a different way (but this might not be best
AC> way):
AC> 1. nnir ends up replacing the parsed header with a new one, so the
AC> original subject isn't available anymore, but its easy enough to get
AC> back with a simple string-match. And the only place the original subject
AC> is used is in the registry, which is why I thought that it was best to
AC> just modify gnus-registry-simplify-subject to:
AC> (defun gnus-registry-simplify-subject (subject)
AC> (if (stringp subject)
AC> (progn
AC> (string-match "^\\[[0-9]+:.+/[0-9]+\\] " subject)
AC> (setq subject (substring subject (match-end 0)))
AC> (gnus-simplify-subject subject))
AC> nil))
I don't like this: it will fail if a user has that subject accidentally.
Better to get the original unambigously as we get the group.
AC> 2. As for the original newsgroup name, I am trying to avoid anything
AC> nnir specific outside the nnir.el file.
OK.
AC> Its also possible that other/future virtual backends might want to
AC> do something similar so I've tried an approach that won't require
AC> special-casing. The trick is to pass the original newsgroup name
AC> back in to gnus-summary-move-article. I think this is easy---just
AC> introduce a let-bound variable gnus-original-newsgroup-name
AC> initialized to gnus-newsgroup-name and let the backend-specific
AC> 'request-move-article replace it as needed. So only a few lines of
AC> changes and no need for nnir-specific code.
OK, but the variable should not be defined in nnir.el. I would define
`gnus-original-article-group' and `gnus-original-article-subject' in
gnus.el.
Ted
next prev parent reply other threads:[~2010-11-10 18:54 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-31 14:07 Richard Riley
2010-10-31 17:18 ` Lars Magne Ingebrigtsen
2010-11-01 4:20 ` Richard Riley
2010-11-01 12:04 ` Andrew Cohen
2010-11-01 12:08 ` Lars Magne Ingebrigtsen
2010-11-01 12:13 ` Andrew Cohen
2010-11-01 14:28 ` Andrew Cohen
2010-11-01 14:51 ` Andrew Cohen
2010-11-09 22:05 ` Ted Zlatanov
2010-11-10 16:40 ` Andrew Cohen
2010-11-10 16:55 ` Ted Zlatanov
2010-11-10 18:42 ` Andrew Cohen
2010-11-10 18:54 ` Ted Zlatanov [this message]
2010-11-10 19:09 ` Andrew Cohen
2010-11-15 2:40 ` Katsumi Yamaoka
2010-11-15 2:53 ` Andrew Cohen
2010-12-01 14:13 ` Andrew Cohen
2010-12-01 17:01 ` Lars Magne Ingebrigtsen
2010-12-01 17:47 ` Andrew Cohen
2010-12-01 17:50 ` Lars Magne Ingebrigtsen
2010-12-01 22:01 ` Andrew Cohen
2010-12-14 23:36 ` Ted Zlatanov
2010-11-03 1:05 Andrew Cohen
2010-11-03 12:17 ` Richard Riley
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=87mxphko13.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--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).