emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] using gnus-registry to find moved imap-messages


From: Sven Kloppenburg
Subject: [emacs-wiki-discuss] using gnus-registry to find moved imap-messages
Date: Mon, 06 Dec 2004 23:33:53 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin)

Hi All,

I'm using planner with gnus and nnimap. My intended workflow is, to read a
mail, create a task from it and then move it to its intended group.

But this would break the created link, defeating one of the cooler planner
features. A few days ago I was "annoyed enough to fix it" as Sacha said in
another context.

The gnus guys invented something called the registry to do strange sorting.
This registry remembers the group each article is in. So all I had to do was
to check if the registry is enabled and then use it. Now my mail-links work
across group-boudaries. :-)

--- planner-gnus.el     Mon Dec  6 23:28:55 2004
+++ planner-gnus-sven.el        Mon Dec  6 23:16:28 2004
@@ -177,7 +177,11 @@
     (let ((group (match-string 1 url))
           (articles (match-string 2 url)))
       ;; (gnus-fetch-group group 1) ;; always gives us problems
+;;try to use registry
+   (if (featurep 'gnus-registry)
+       (gnus-fetch-group (gnus-registry-fetch-group articles))
      (gnus-fetch-group group)
+     )
       (mapcar
        (lambda (article-id)
          (gnus-summary-goto-article article-id nil t))
-- 
bye,
Sven







reply via email to

[Prev in Thread] Current Thread [Next in Thread]