From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86973 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnorb: minor and mayor suggestions Date: Sat, 26 Mar 2016 12:53:09 +0800 Message-ID: <87egaxlu16.fsf@ericabrahamsen.net> References: <87k2kqcudz.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458968100 18644 80.91.229.3 (26 Mar 2016 04:55:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Mar 2016 04:55:00 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M35194@lists.math.uh.edu Sat Mar 26 05:54:48 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ajgFM-00088V-1T for ding-account@gmane.org; Sat, 26 Mar 2016 05:54:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.86_2) (envelope-from ) id 1ajgE9-0007RN-UW; Fri, 25 Mar 2016 23:53:34 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ajgE7-0007Qx-Jk for ding@lists.math.uh.edu; Fri, 25 Mar 2016 23:53:31 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85_2) (envelope-from ) id 1ajgE5-0007Ga-6n for ding@lists.math.uh.edu; Fri, 25 Mar 2016 23:53:31 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1ajgE3-0000gk-QW for ding@gnus.org; Sat, 26 Mar 2016 05:53:27 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ajgE1-0007X9-Dn for ding@gnus.org; Sat, 26 Mar 2016 05:53:26 +0100 Original-Received: from 123.118.184.157 ([123.118.184.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Mar 2016 05:53:25 +0100 Original-Received: from eric by 123.118.184.157 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Mar 2016 05:53:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 81 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.118.184.157 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:vgfyV/JfXvfIh6KR3SpFXgcTDRY= X-Spam-Score: -1.2 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86973 Archived-At: Uwe Brauer writes: > Hi > > First of all thanks to Eric for providing that package.[1] I thought of > sending him a private mail with some questions/suggestions but may be this > newsgroup is the better place. Here's a fine place! I think that everything you're asking for is already implemented, but let's make sure. > Now I have 1 minor and two mayor suggestions (maybe they are already > implemented and I failed to find them). > > * minor: right now my org template looks like > ("r" "Reply" entry (file+headline "~/Mail/TODO-email.org" "Emails") > "** REPLY %a %?" :gnus-attachments t) > > which is fine for the reply mails, but I would like to have something > similar for *composing messages*. So the idea would be to start from the > bbdb and then add a similar entry to TODO-email.org. I think `gnorb-gnus-outgoing-do-todo' is what you're after here. If you compose a message from scratch, you can call that command from the message buffer, and a new Org entry will be captured after sending the message. I've got this: (eval-after-load "message" '(progn (define-key message-mode-map (kbd "C-c t") 'gnorb-gnus-outgoing-do-todo))) (setq gnorb-gnus-new-todo-capture-key "O") Then the "O" template will be used to capture the sent message. Alternately, call `gnorb-gnus-outgoing-do-todo' with a prefix argument, and it will trigger todo state change on an existing Org heading instead of creating a new one. (And if you change your mind afterwards, call the command with a double prefix to reset everything.) It's all a bit confusing to explain, but once you've tried it, it should make sense. > * mayor: editing emails in an org buffer and later send them. > > For some emails it turns out to be better to edit them in an > org mode buffer, for example if I would like to edit a table and > orgtbl-mode in message would not be enough. Right now I start editing > those message in an org-file and then use the following function [...] > Could gnorb provide a similar functionality? Sounds like you want `gnorb-org-email-subtree'. That will prompt you for an export backend, and then it composes an email with the exported text either in the body of the mail, or else attached as a file. The outgoing message is tracked as usual. > Whats about replying email? The above functions will copy all the text > below the org header into a message-buffer. > > I modified it so that if I already hit the reply button but switch to > the org buffer, then the modified function copies the content below the > org header in that reply buffer. > > Could gnorb provide a similar functionality? I'm not 100% sure I know what you mean here. Are you starting the process from the Gnus *Summary* buffer? You want to start a reply to message, but then hop to the associated Org heading, have the text pasted into the body of the heading, then when you're done writing, jump back to the message reply buffer and insert the text of the message? Anyway let me know exactly what workflow you have in mind, and I'd be happy to try to accommodate in gnorb. Yours, Eric