From: Richard Lawrence <richard.lawrence@berkeley.edu>
To: Xebar Saram <zeltakc@gmail.com>, org mode <emacs-orgmode@gnu.org>
Subject: Re: sending an email to an orgmode file?
Date: Wed, 21 Dec 2016 09:18:20 -0800 [thread overview]
Message-ID: <871sx15hgj.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <CAOQHXPrwkYhEfQTc=OZMS9UfVSBwv=oeJ-cmVeJEjJUDFiC4Kw@mail.gmail.com>
Hi Xebar,
Xebar Saram <zeltakc@gmail.com> writes:
> im looking for a simple solution that will allow me to send an email from
> my mobile phone and habr that email either be appended to a txt(org) file
> or perhaps another solution to get my mobile on the go notes onto my laptop
> orgmode file. i tried orgzly and mobile org but i would prefer a simple
> solution as to send an email
>
> anyone have any thoughts on this?
I'd say a lot depends on the mail setup you use on the machine where
you use Org. Emacs-based mail clients will be easier to integrate with
Org. But really you're just limited by how much effort you want to sink
into this, at least if you store your mail in some format that is easy
to read with various tools.
If you use Gnus, one solution (I think?) is Gnorb:
https://elpa.gnu.org/packages/gnorb.html
I don't actually use this or know much about it but other people on this
list can tell you more about it.
In my own setup, I've settled on just making it easy to linking to an
email from a new TODO entry. This is a very general mechanism that
works well for me, even though it is not completely automatic. I
describe my setup below.
I use the Emacs interface for notmuch as my mail client. I integrate it
with Org via org-notmuch and Org capturing. Basically, I have a key that
automates capturing an email as a TODO item, containing a link to the
relevant mail:
#+BEGIN_SRC elisp
;; in my Org setup:
(require 'org-notmuch)
(setq org-capture-templates
; ...
`(("t" "Task, Note, Project, etc.")
("tm" "Mail" entry
(file ,(concat org-directory "/refile.org"))
(file ,(concat org-template-directory "/mail-with-link.txt")))))
;; in my notmuch setup:
(define-key notmuch-search-mode-map "P"
(lambda ()
"postpone message (remove inbox tag, create task to reply)"
(interactive)
(notmuch-search-tag '("-inbox" "-unread"))
(notmuch-search-show-thread)
(org-capture nil "tm")))
#+END_SRC
The mail-with-link.txt template is simple:
#+BEGIN_SRC org
* %a :MAIL:
:PROPERTIES:
:Entered: %U
:END:
%?
#+END_SRC
I mostly use this to record emails that I need to *reply* to as TODO
items, so a link to the original mail is enough for me.
This probably isn't quite what you're looking for, but with more effort
on the notmuch side, a setup like this could be used to extract the
content of the email into the Org capture. And you could also automate
this by looping over the messages that match a certain notmuch query,
etc.
HTH,
Richard
next prev parent reply other threads:[~2016-12-21 17:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-21 10:36 sending an email to an orgmode file? Xebar Saram
2016-12-21 17:18 ` Richard Lawrence [this message]
[not found] ` <20b6df15a79842e094d01fcc2ed2eda8@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-12-21 17:36 ` Eric S Fraga
2016-12-22 10:21 ` Karl Voit
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871sx15hgj.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me \
--to=richard.lawrence@berkeley.edu \
--cc=emacs-orgmode@gnu.org \
--cc=zeltakc@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).