Re: question about org-link gnus message and gnus registry

2021-12-01 Thread Bob Newell


physiculus  writes:

>
> scenario:
> i create a org link with org and insert the link into an org file.
> works.
>
> now i move the message inside gnus to another folder.
>
> open the link inside the org file is not valid anymore.

Without getting into unknown territory about why this is, I
have encountered the same problem.

I have a solution that applies only to gmail, so it may not
help. I have some elisp that runs as a hook after a gnus
org-mode link is created, and changes (for instance) "Inbox"
to "All Mail". This takes advantage of the fact that
everything in gmail is always in "All Mail" so the org link is
always valid.

Something similar for non-gmail probably could be cooked up if
you're willing to move the item in question to a common folder
such as an archive.

I don't say that this is a substitute for actually figuring
things out. I have tried Gnorb which tracks via the registry
but never completely got it to be as general as I wished.

-- 
Bob Newell
Honolulu, Hawai`i

- Via GNU/Linux/Emacs/Gnus/BBDB



question about org-link gnus message and gnus registry

2021-12-01 Thread physiculus
hello,
i'm just struggeling about the consistency of an org-link to a gnus message
after moving this message into another folder on same server or a
different one.

scenario:
i create a org link with org and insert the link into an org file.
works.

now i move the message inside gnus to another folder.

open the link inside the org file is not valid anymore.

i thought, that the registry is responsible for saving the position of
any message. therefore it saves the message-id and use this to locate
the message.

and i thought, that org-link "knows" this message-id, though the link to
the message is valid without the position of the folder or better the
position of the message inside the folder.
like a database index.
but now i'm quite sure, that my thoughts were completely wrong??
or is it possible to locate a message through org-link?

any ideas?

Regards

-- 
Jens Reimer