Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: gnorb: minor and mayor suggestions
Date: Sat, 26 Mar 2016 12:53:09 +0800	[thread overview]
Message-ID: <87egaxlu16.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87k2kqcudz.fsf@mat.ucm.es>

Uwe Brauer <oub@mat.ucm.es> 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




  reply	other threads:[~2016-03-26  4:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-25 17:58 Uwe Brauer
2016-03-26  4:53 ` Eric Abrahamsen [this message]
2016-03-26  8:57   ` Uwe Brauer
2016-03-27  2:37     ` Eric Abrahamsen
2016-03-26 16:23   ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87egaxlu16.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).