From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: keeping track of sent emails in org? Date: Mon, 27 Oct 2008 11:11:52 -0700 Message-ID: <878ws97vrr.fsf@gmail.com> References: <871vy3tg9x.fsf@wolfram.com> <4905CE30.7040904@gmx.de> <4905D7AD.2090700@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuWZB-0001yk-23 for emacs-orgmode@gnu.org; Mon, 27 Oct 2008 14:11:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuWZ7-0001wJ-EY for Emacs-orgmode@gnu.org; Mon, 27 Oct 2008 14:11:47 -0400 Received: from [199.232.76.173] (port=60945 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuWZ7-0001wG-9P for Emacs-orgmode@gnu.org; Mon, 27 Oct 2008 14:11:45 -0400 Received: from wf-out-1314.google.com ([209.85.200.174]:8179) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KuWZ6-0006Bc-7O for Emacs-orgmode@gnu.org; Mon, 27 Oct 2008 14:11:44 -0400 Received: by wf-out-1314.google.com with SMTP id 28so2175762wfc.24 for ; Mon, 27 Oct 2008 11:11:42 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: sebastian_rose@gmx.de Cc: Emacs-orgmode@gnu.org Sebastian Rose writes: > Hi Bill, > > > to add links to autgoing mails automatically, adding a link to such a > mail once should be enough, to add the right funciton to your > 'mail-send-hook' (?? don't no which hook really...) since it's just a > question of the link format. > 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. If this has been done before with planner, then it should be fairly straightforward to examine the previous implementation and adapt it to org-mode. Or I could be horribly wrong. > > If no one has done this until now, please share it here. I use gnus, > but I still BCC myself to 'store' my outgoing mail :-) > As for me, I'd prefer a way to keep my outgoing mails directly in > gnus. > I'm straying slightly off topic here, but take a look at `gcc-self' under gnus:Group Parameters. It automatically saves a copy of outgoing mail into the group from which the mail was sent. I use the following to turn it on for all of my mail groups. (setq gnus-parameters '(("mail\\..*" (gcc-self . t)))) Cheers -- Eric > > > > Something like this should work: > > > (setq org-remember-templates > '(("sent-mails" ?m "* Mail sent %u\n %a\n" "organizer.org" "Sent"))) > > (defun my-store-link() > "Docs for my-store-link" > (org-remember ?m)) ;; the `m' is the short cut for the template. > > (add-hook 'your-hook-here 'my-store-link) > > > I don't know how to suppress the interactive part of it (C-c C-c to > store it away), but sometimes you might add a short note anyway. > > > > Regards, > > Sebastian > > Sebastian Rose wrote: >> Hi Bill, >> >> >> links are one of the great features of Org-mode. Basically, links are >> added in two ways: >> >> a) Remember templates (automatic): >> You're reading an email in Gnus or another emacs mail reader, and >> want to add a note somewhere. To do this, you set up (once) a >> so called 'remember template'. See >> http://orgmode.org/manual/Remember.html#Remember how to do this. >> Org automatically adds a link to the mail/file/whatever, which >> brings you back to that mail/file/whatever, as you click on it. >> >> b) Semi-automatic: >> You want to add a link to an email/file/whatever to existing notes. >> To do this, visit the email/file/whatever and press 'C-c l' >> (org-store-link) to store a link to that location for later use. >> Back in your Org-file, you press 'C-c C-l' (org-insert-link), >> which provides you with a list of all stored links during your >> emacs session. You select the last one by pressing 'UP' once, and >> you're done. >> See http://orgmode.org/manual/Handling-links.html#Handling-links >> >> c) By hand: >> Also, you may add links to locations by hand. The syntax for links >> is described here: >> http://orgmode.org/manual/Hyperlinks.html#Hyperlinks >> >> >> >> Best regards, >> >> Sebastian >> >> >> >> >> >> Bill White wrote: >>> Hi all - >>> >>> I'm looking into porting my planner/muse/gnus infrastructure to org. >>> One indispensible bit of code in my current system writes a gnus message >>> link in the current day's planner file every time I send a message from >>> gnus. It uses Sacha Chua's sacha/planner-gnus-track-sent method here: >>> >>> http://sachachua.com/notebook/wiki/2006.08.10.php#anchor-3 >>> http://article.gmane.org/gmane.emacs.wiki.general/6017 >>> >>> Has someone already written something like this for org? Perhaps a >>> remember-like mechanism that writes a link to, say, Email.org? Perhaps >>> messages could be filed under date headlines: >>> >>> * Sunday, October 26, 2008 >>> ** message 1 recipient:subject >>> [link] (or contents?) >>> ** message 2 recipient:subject >>> [link] (or contents?) >>> >>> or somesuch. >>> >>> Thanks for any thoughts about this - >>> >>> bw >> >> >> >> _______________________________________________ >> 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