Re: [Orgmode] Re: keeping track of sent emails in org?
On Oct 28, 2008, at 2:35 AM, Michael Ekstrand wrote: Michael Ekstrand [EMAIL PROTECTED] writes: I have some code that does this in my Gnus configuration. It is only known to work for NNML, however, and I believe it depends on the ID-tracking support used to enable the fancy-split-with-parent feature. It does, however, successfully find messages across groups. The Gnus registry could probably be used to enable similar support for other backends. Would it be possible to use the registry to make it possible to find messages anywhere in gnus, just by message id? - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Carsten Dominik [EMAIL PROTECTED] writes: On Oct 28, 2008, at 2:35 AM, Michael Ekstrand wrote: Michael Ekstrand [EMAIL PROTECTED] writes: I have some code that does this in my Gnus configuration. It is only known to work for NNML, however, and I believe it depends on the ID-tracking support used to enable the fancy-split-with-parent feature. It does, however, successfully find messages across groups. The Gnus registry could probably be used to enable similar support for other backends. Would it be possible to use the registry to make it possible to find messages anywhere in gnus, just by message id? Probably. I think there's a chance that the message will have fallen out of the registry if it's particularly old, and it may have problems in IMAP environments if a message has been moved by another client, but for general usage it should work fine, and in my estimation probably won't have more problems than the folder#index scheme. Note that I haven't actually used the Registry myself yet, merely read about it and thought that looks interesting, but I don't need it yet, and it will probably not play well with my Unison synchronization. - Michael -- mouse, n: A device for pointing at the xterm in which you want to type. Confused by the strange files? I cryptographically sign my messages. For more information see http://www.elehack.net/resources/gpg. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: keeping track of sent emails in org?
I have taken a brief look at Micheals code and at Ross code, which do similar things to extract the message ID and create a link to it. Michaels code creates a special new link type, but is seems to me that we should go with Ross here and simply modify the old gnus linking code to accept a message ID, and continue to use gnus: links. I like this, thanks a lot, lets see if this works better. If I understand Bill correctly, link creation will then also be easier since the message hook does know the id already. - Carsten On Oct 28, 2008, at 7:46 PM, Ross Patterson wrote: Carsten Dominik [EMAIL PROTECTED] writes: I think there are interesting ideas coming up in this tasks, in particular the question if message IDs can be used to find articles in gnus, even if they have been moved around. I am not sure if this questions has been fully answered, but I have not read the thread carefully enough yet, and certainly not tried Michaels code. Just to comment on this little bit, I have local modifications that make org links use the Messags-Id instead of the article number since article numbers changes often in my setup. I've been meaning to blog about it but since I haven't gotten to it, here's the file containing the necessary code just in case its useful to anyone. Ross rpatterson-org.el___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Carsten Dominik [EMAIL PROTECTED] writes: In the git version, message ids are now used for links to gnus articles. Could some of you please verify this change? diff --git a/GettingThingsDone/MyLife.org b/GettingThingsDone/MyLife.org index 6fb33be..806c779 100644 --- a/GettingThingsDone/MyLife.org +++ b/GettingThingsDone/MyLife.org @@ -106,8 +106,8 @@ analyze. * TODO [#A] review SCHEDULED: 2008-11-21 пт [2008-09-22 Mon 17:50] -[[gnus:nnmaildir%2Blocalhost:inbox#13179][Email from Lyudmyla]] -[[gnus:nnmaildir%2Blocalhost:bogofilter-unsure#1139][Email from Volodymyr]] +[[gnus:nnvirtual:inboxes#[EMAIL PROTECTED] from Lyudmyla +[[gnus:nnmaildir%2Blocalhost:inbox#[EMAIL PROTECTED] from Vo * TODO try [[deb:solfege]] :PROPERTIES: :CATEGORY: debian With org's revision 17c55f1b I can open linked messages with 'C-c C-o' when in org file. But I need more time to investigate two use cases: - message was moved into other group with 'B m' - gnus is not running when C-c C-o pressed Thanks to Ross and Michael for input, I looked at their code to implement this. +1 -- MAN-UANIC ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Carsten Dominik [EMAIL PROTECTED] writes: In the git version, message ids are now used for links to gnus articles. Could some of you please verify this change? This works great! Thanks all -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Good to hear. Another change in that release is that `org-link-frame-setup' has a new option for gnus, `org-gnus-no-new-news', also taken from Ross' code. I have not tested it, but I believe it should make jumping to a gnus message much faster as it will not try to get new news. - Carsten On Oct 29, 2008, at 4:17 PM, Bernt Hansen wrote: Carsten Dominik [EMAIL PROTECTED] writes: In the git version, message ids are now used for links to gnus articles. Could some of you please verify this change? This works great! Thanks all -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Carsten Dominik [EMAIL PROTECTED] writes: Another change in that release is that `org-link-frame-setup' has a new option for gnus, `org-gnus-no-new-news', also taken from Ross' code. I have not tested it, but I believe it should make jumping to a gnus message much faster as it will not try to get new news. I hadn't noticed gnus being slow before so I don't think it was fetching news before jumping to the linked message ... but I could be wrong. :) -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Okay I spoke a bit too soon here. The message-id links work as well as the old links but if I move a message from one folder to another the old and new links both break. My link looks like this: [[gnus:INBOX#[EMAIL PROTECTED]][Email from Bernt Hansen: Test email]] but if I move the mail from my INBOX to INBOX.Test in my IMAP folder I need to change the INBOX# to INBOX.Test# for the link to work. Normally this isn't a problem for me - I don't move my mail around much. It get delivered directly to the target folder it is supposed to live in so I just link to the mail after it's in the final location - but I happened to try this with a message that wasn't filed and I linked to it before moving it. Sorry for the false report earlier... -Bernt Carsten Dominik [EMAIL PROTECTED] writes: Good to hear. On Oct 29, 2008, at 4:17 PM, Bernt Hansen wrote: This works great! Thanks all -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Bernt Hansen [EMAIL PROTECTED] writes: Okay I spoke a bit too soon here. The message-id links work as well as the old links but if I move a message from one folder to another the old and new links both break. My link looks like this: [[gnus:INBOX#[EMAIL PROTECTED]][Email from Bernt Hansen: Test email]] but if I move the mail from my INBOX to INBOX.Test in my IMAP folder I need to change the INBOX# to INBOX.Test# for the link to work. Normally this isn't a problem for me - I don't move my mail around much. It get delivered directly to the target folder it is supposed to live in so I just link to the mail after it's in the final location - but I happened to try this with a message that wasn't filed and I linked to it before moving it. Sorry for the false report earlier... I don't think the previous article number based links worked past a message folder move either, correct? Ross Carsten Dominik [EMAIL PROTECTED] writes: Good to hear. On Oct 29, 2008, at 4:17 PM, Bernt Hansen wrote: This works great! Thanks all -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Carsten Dominik [EMAIL PROTECTED] writes: On Oct 29, 2008, at 12:27 PM, Pete Phillips wrote: Sebastian == Sebastian Rose [EMAIL PROTECTED] writes: Sebastian Carsten Dominik [EMAIL PROTECTED] writes: In the git version, message ids are now used for links to gnus articles. Could some of you please verify this change? Sebastian How to? I did a `C-c l' in an outgoing message and a Sebastian `C-c C-l' in an Org-file. The link created was: Sebastian [[file:emacs/gnus/News/drafts/drafts/2::asdf][Test for Sebastian outgoing mail link]] Sebastian Is this, what's expected? Or do I have to set something Sebastian up first? As far as I am aware, message ID's are generated by the MTA, not the MUA. Therefore I doubt that you can link to a message that hasn't been through the MTA. Certainly in mh-e, when I'm editing a draft, there is no Message-ID in the header, so I doubt if what Sebastien is trying to do above will work (unless gnus generates the ID during composition of the email ?) Sacha calls the link creating code in message-sent-hook, and I believe at this moment in time, the message-id is present. So `C-c l' before sending will not help. But a function in the hook cold get there. Here is an idea for storing links to sent messages in the outline- tree: Write a function that remembers the current location in the outline tree (by creating a marker), calls up a message buffer, and installs a special hook function that will create a link to the sent message and insert it back at the position in the outline tree where the email command was called. This could be made to work even from an agenda view. Maybe this would be best integrated with clocking time? IOW, the link will be added as a note to the headline the you are currently clocked into. Maybe it could even be integrated with an option to clock out and back into the same task adding the link to the clock out note. Just call me pie-in-the-sky-guy. :) Ross ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Ross Patterson [EMAIL PROTECTED] writes: Bernt Hansen [EMAIL PROTECTED] writes: Sorry for the false report earlier... I don't think the previous article number based links worked past a message folder move either, correct? No they did not. But the new links are better - I can just change the folder name to wherever I filed it and it works again - the old links changed the message number too and you'd have to hunt for the mail. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Bernt Hansen [EMAIL PROTECTED] writes: Ross Patterson [EMAIL PROTECTED] writes: Bernt Hansen [EMAIL PROTECTED] writes: Sorry for the false report earlier... I don't think the previous article number based links worked past a message folder move either, correct? No they did not. But the new links are better - I can just change the folder name to wherever I filed it and it works again - the old links changed the message number too and you'd have to hunt for the mail. Ah, I misunderstood your point! Sorry. :) Ross ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Carsten Dominik [EMAIL PROTECTED] writes: I think there are interesting ideas coming up in this tasks, in particular the question if message IDs can be used to find articles in gnus, even if they have been moved around. I am not sure if this questions has been fully answered, but I have not read the thread carefully enough yet, and certainly not tried Michaels code. Just to comment on this little bit, I have local modifications that make org links use the Messags-Id instead of the article number since article numbers changes often in my setup. I've been meaning to blog about it but since I haven't gotten to it, here's the file containing the necessary code just in case its useful to anyone. Ross rpatterson-org.el Description: application/emacs-lisp ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: keeping track of sent emails in org?
Hi Ross, this looks interesting. Is this compatible with old links that might still use article numbers? If not, could it be made to be compatible? - Carsten On Oct 28, 2008, at 7:46 PM, Ross Patterson wrote: Carsten Dominik [EMAIL PROTECTED] writes: I think there are interesting ideas coming up in this tasks, in particular the question if message IDs can be used to find articles in gnus, even if they have been moved around. I am not sure if this questions has been fully answered, but I have not read the thread carefully enough yet, and certainly not tried Michaels code. Just to comment on this little bit, I have local modifications that make org links use the Messags-Id instead of the article number since article numbers changes often in my setup. I've been meaning to blog about it but since I haven't gotten to it, here's the file containing the necessary code just in case its useful to anyone. Ross rpatterson-org.el___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Carsten Dominik [EMAIL PROTECTED] writes: Hi Ross, this looks interesting. Is this compatible with old links that might still use article numbers? If not, could it be made to be compatible? Yeah, it is compatible with existing links since the underlying gnus function that looks up articles accepts either kind of argument. When I implemented my changes I had the good intention to make whether to use article number or Message-Id a configuration option. But then again, I spend a lot of time on the road to heck. :) Ross On Oct 28, 2008, at 7:46 PM, Ross Patterson wrote: Carsten Dominik [EMAIL PROTECTED] writes: I think there are interesting ideas coming up in this tasks, in particular the question if message IDs can be used to find articles in gnus, even if they have been moved around. I am not sure if this questions has been fully answered, but I have not read the thread carefully enough yet, and certainly not tried Michaels code. Just to comment on this little bit, I have local modifications that make org links use the Messags-Id instead of the article number since article numbers changes often in my setup. I've been meaning to blog about it but since I haven't gotten to it, here's the file containing the necessary code just in case its useful to anyone. Ross rpatterson-org.el___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Carsten Dominik [EMAIL PROTECTED] writes: On Oct 27, 2008, at 10:17 PM, Bill White wrote: On Mon Oct 27 2008 at 13:11, Eric Schulte [EMAIL PROTECTED] wrote: It seems like this could get complicated as it depends on how/where you store your sent messages. Also, it looks like org-mode links rely on the gnus group, and article id to link back to an article, so somehow you would need a hook which runs after the sent article has been saved into a group and given an ID. Ah ha! Something was bugging me about org's links to gnus messages. Can Gnus in general find messages by message-id? Then it would be nice if we could do that. I believe the mhe interface does use message-id already, maybe others too. Maybe some gnus-enables person would like to look into this and create patches? I have some code that does this in my Gnus configuration. It is only known to work for NNML, however, and I believe it depends on the ID-tracking support used to enable the fancy-split-with-parent feature. It does, however, successfully find messages across groups. The Gnus registry could probably be used to enable similar support for other backends. I will try to get my code sane-ified and pushed to Worg sometime this week. - Michael -- mouse, n: A device for pointing at the xterm in which you want to type. Confused by the strange files? I cryptographically sign my messages. For more information see http://www.elehack.net/resources/gpg. pgp9oKxiDQPrV.pgp Description: PGP signature ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: keeping track of sent emails in org?
Michael Ekstrand [EMAIL PROTECTED] writes: I have some code that does this in my Gnus configuration. It is only known to work for NNML, however, and I believe it depends on the ID-tracking support used to enable the fancy-split-with-parent feature. It does, however, successfully find messages across groups. The Gnus registry could probably be used to enable similar support for other backends. I will try to get my code sane-ified and pushed to Worg sometime this week. I've pushed the code to Worg now, it's available in org-hacks. - Michael -- mouse, n: A device for pointing at the xterm in which you want to type. Confused by the strange files? I cryptographically sign my messages. For more information see http://www.elehack.net/resources/gpg. pgp9vXnfKT2Fi.pgp Description: PGP signature ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode