emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-link and gnus-registry
@ 2012-11-23 13:37 Sven Bretfeld
  2012-11-23 15:11 ` Alan Schmitt
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Bretfeld @ 2012-11-23 13:37 UTC (permalink / raw)
  To: emacs-org

Hi to all

I'm trying to setup gnus-registry for use with org-link. What I want to
do is reading emails (nnimap) in the INBOX, create a todo with
org-remember containing a link to this email, then move the email to
another group.

As was discussed before in this list, gnus-register is the way to do
this. Otherwise org-link will not find the message after it has gone to
another group. 

This is not working for me. It might have to do with how org-store-links
creates the link. For me the links look like this:

[[gnus:Stuff#BLU162-ds55E622A1EF424D0BD1F57C95A0@phx.gbl][Email from
Yongbin: Re: Visit]]

"Stuff" is the name of my INBOX. This means the message-ID contains the
name of the original group. If the message is moved to another group, it
won't be found. It seems that either org-store-link or org-follow-link
does not respect gnus-registry.

I cannot find the mistake. Can somebody help me?

This is my setup (Emacs 23.4.1, Ubuntu 12.10):

,----
| .gnus.el:
`----

(setq gnus-registry-install t)

(setq
 gnus-registry-split-strategy 'majority
 gnus-registry-ignored-groups '(("nnrs" t)
                                ("expired-spool" t)
                                ("out-spool" t)
                                ("deleted-messages" t)
                                ("nndraft" t)
                                ("spamassassined" t)
                                ("spam" t)
                                ("UCE-TMP" t))

 gnus-registry-max-entries 2500
 ;; this is the default
 gnus-registry-use-long-group-names t)

(gnus-registry-initialize)

(setq gnus-refer-article-method
      '(current
        (nnregistry)))

Thanks for help,

Sven

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-link and gnus-registry
  2012-11-23 13:37 org-link and gnus-registry Sven Bretfeld
@ 2012-11-23 15:11 ` Alan Schmitt
  2012-11-24 19:19   ` Sven Bretfeld
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Schmitt @ 2012-11-23 15:11 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: emacs-org

"Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:

> As was discussed before in this list, gnus-register is the way to do
> this. Otherwise org-link will not find the message after it has gone to
> another group. 
>
> This is not working for me. It might have to do with how org-store-links
> creates the link. For me the links look like this:
>
> [[gnus:Stuff#BLU162-ds55E622A1EF424D0BD1F57C95A0@phx.gbl][Email from
> Yongbin: Re: Visit]]
>
> "Stuff" is the name of my INBOX. This means the message-ID contains the
> name of the original group. If the message is moved to another group, it
> won't be found. It seems that either org-store-link or org-follow-link
> does not respect gnus-registry.
>
> I cannot find the mistake. Can somebody help me?

I'm having very mixed results with gnus-registry, and I'm still looking
for a better solution. In the meantime:
- make sure the message is moved from inside gnus, it seems it's
required to be tracked by the registry;
- if you cannot get to the message, try to search for it (I use notmuch,
which works nicely), figure out the mailbox name, and you can then
manually fix the link by changing the mailbox name there. I use stable
mailboxes for this: archive is for the current month, otherwise the
message is in "old/year/month". Searches and links let me get to
messages really easily.

Alan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-link and gnus-registry
  2012-11-23 15:11 ` Alan Schmitt
@ 2012-11-24 19:19   ` Sven Bretfeld
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Bretfeld @ 2012-11-24 19:19 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-org

Hi Alan

Thanks for your answer.

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> "Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:
>
>> As was discussed before in this list, gnus-register is the way to do
>> this. Otherwise org-link will not find the message after it has gone to
>> another group. 
>>
>> This is not working for me. It might have to do with how org-store-links
>> creates the link. For me the links look like this:
>>
>> [[gnus:Stuff#BLU162-ds55E622A1EF424D0BD1F57C95A0@phx.gbl][Email from
>> Yongbin: Re: Visit]]
>>
>> "Stuff" is the name of my INBOX. This means the message-ID contains the
>> name of the original group. If the message is moved to another group, it
>> won't be found. It seems that either org-store-link or org-follow-link
>> does not respect gnus-registry.
>>
>> I cannot find the mistake. Can somebody help me?
>
> I'm having very mixed results with gnus-registry, and I'm still looking
> for a better solution. In the meantime:
> - make sure the message is moved from inside gnus, it seems it's
> required to be tracked by the registry;

Yes, that's given. I don't use any other client.

> - if you cannot get to the message, try to search for it (I use notmuch,
> which works nicely), figure out the mailbox name, and you can then
> manually fix the link by changing the mailbox name there. I use stable
> mailboxes for this: archive is for the current month, otherwise the
> message is in "old/year/month". Searches and links let me get to
> messages really easily.

Hmm. This would annihilate the effect, right? It is like not using
gnus-registry at all and just change all links manually. I still have
the feeling that gnus-registry doesn't work at all for me. The cache
file is there (~/Mail/.gnus-registry.eld) and it updates regularly. Only
the org-links don't seem to care about message-IDs.

Sven

-- 
Prof. Dr. Sven Bretfeld
      \ CEntrum für
CERES  \ REligionswissenschaftliche
________\_Studien__________________
Ruhr-Universität Bochum
Universitätsstraße 150
D-44780 Bochum
http://www.ceres.ruhr-uni-bochum.de/en/participants/details/sven-bretfeld/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-24 19:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23 13:37 org-link and gnus-registry Sven Bretfeld
2012-11-23 15:11 ` Alan Schmitt
2012-11-24 19:19   ` Sven Bretfeld

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).