* Compose emails in ogr, but send them via thunderbird?
@ 2012-04-03 8:09 Rainer M Krug
2012-04-03 9:29 ` Rasmus
0 siblings, 1 reply; 8+ messages in thread
From: Rainer M Krug @ 2012-04-03 8:09 UTC (permalink / raw)
To: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
this seems like a strange question, but I never managed to get y head around to do emaios with
emacs - whatever I tried, I still returned to Thunderbird.
But I love org, and writing in org is nicer then in thunderbird. Also, by using org, I could have
an archive in org of certain emails related to projects. As I have notmuch also installed, I could
access my received mails as well.
So my question is: is it possible to write emails in org and then sent them (a subtree) to
thunderbird for sending / adding addresses / signing with pgp?
I know - I could do all this in emacs, but absolutely no time at the moment.
Any suggestions welcome,
Rainer
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk96sFUACgkQoYgNqgF2egqMLQCfRb0YWIg4Ln0oxJ5B6j1RWHmJ
lyYAnj80gctdC5yNDxCvhO8BQ1QlgOEA
=jE1b
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compose emails in ogr, but send them via thunderbird?
2012-04-03 8:09 Compose emails in ogr, but send them via thunderbird? Rainer M Krug
@ 2012-04-03 9:29 ` Rasmus
2012-04-03 9:36 ` Rasmus
2012-04-03 13:31 ` Rainer M Krug
0 siblings, 2 replies; 8+ messages in thread
From: Rasmus @ 2012-04-03 9:29 UTC (permalink / raw)
To: emacs-orgmode
Rainer,
> So my question is: is it possible to write emails in org and then sent
> them (a subtree) to
> thunderbird for sending / adding addresses / signing with pgp?
I don't know about the subtree. But there is an extension¹ for this
purpose. It comes with its own mode, but I am sure you could have it
load Org, or alternatively just the org-like minor modes
#+begin_src emacs-lisp
(add-hook 'message-mode-hook 'turn-on-orgtbl)
(add-hook 'message-mode-hook 'turn-on-orgstruct)
#+end_src
(replace the mode with something appropriate).
The problem with this setup is that it relies on tmp files, so you would
not have a grand org file of All-Thing-Sent.
> I know - I could do all this in emacs, but absolutely no time at the
> moment.
It is not that hardᵗᵐ. but could be time consuming. So, yeah, probably
stick to TB for now. But, if time permits is it really quite nice (I
use the Gnus).
–Rasmus
Footnotes:
¹ http://globs.org/articles.php?pg=2&lng=en
--
And let me remind you also that moderation in the pursuit of justice
is no virtue
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compose emails in ogr, but send them via thunderbird?
2012-04-03 9:29 ` Rasmus
@ 2012-04-03 9:36 ` Rasmus
2012-04-03 13:34 ` Rainer M Krug
2012-04-03 13:31 ` Rainer M Krug
1 sibling, 1 reply; 8+ messages in thread
From: Rasmus @ 2012-04-03 9:36 UTC (permalink / raw)
To: emacs-orgmode
Rasmus <rasmus@gmx.us> writes:
> ¹ http://globs.org/articles.php?pg=2&lng=en
You might also be able to work something out with Keysnail, which, at
least in Fx, can also call external editors (Emacs, mostly)
https://github.com/mooz/keysnail/wiki
–Rasmus
--
Send from my Emacs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compose emails in ogr, but send them via thunderbird?
2012-04-03 9:36 ` Rasmus
@ 2012-04-03 13:34 ` Rainer M Krug
2012-04-04 2:05 ` Torsten Wagner
0 siblings, 1 reply; 8+ messages in thread
From: Rainer M Krug @ 2012-04-03 13:34 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/04/12 11:36, Rasmus wrote:
> Rasmus <rasmus@gmx.us> writes:
>
>> ¹ http://globs.org/articles.php?pg=2&lng=en
>
> You might also be able to work something out with Keysnail, which, at least in Fx, can also
> call external editors (Emacs, mostly)
Also interesting - nice.
Cheers,
Rainer
>
> https://github.com/mooz/keysnail/wiki
>
> –Rasmus
>
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk96/FoACgkQoYgNqgF2ego+gQCeIMRkRQS/9JrTi6rbbtUlfJlj
MYwAn0KuFx5oLwCyUZnm6q1SzyLB4e4Z
=MNMi
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compose emails in ogr, but send them via thunderbird?
2012-04-03 13:34 ` Rainer M Krug
@ 2012-04-04 2:05 ` Torsten Wagner
2012-04-05 9:33 ` Rainer M Krug
0 siblings, 1 reply; 8+ messages in thread
From: Torsten Wagner @ 2012-04-04 2:05 UTC (permalink / raw)
To: R.M.Krug; +Cc: emacs-orgmode, Rasmus
Hi Rainer,
Hmm interstingly I working on exact the same task.... I want to get
rid of Thunderbird because its troubling me to much, but I can't find
an easy drop-in replacement.
Recently, I got notmuch running after giving up on gnus for the third
or fourth time, because I never found enough time to come into it.
Unfortunately, I find the notmuch thread buffers rather confusing and
would be very happy if a little org-mode magic would move into it.
Nevertheless notmuch allows you to write emails too. What you have to
do is to set-up the smtp server to sent your mails. That can be either
a pointer to an existing smtp server (like gmail) or a own server. A
own server might be nice but requires some fiddling and hence I
decided to use msmtp [1].
It requires only a very small config file with the credentials and
settings for each smtp (email) account. Mostly what you are used to
type into thunderbird too.
In my emacs init files I added
/--------------------------------init_notmuch.el---------------------------------------/
;;///////////////////////////////////////////////////////////////
;; notmuch and smtp settings
;;//////////////////////////////////////////////////////////////
(require 'notmuch)
(setq message-send-mail-function 'message-send-mail-with-sendmail)
;; we substitute sendmail with msmtp
(setq sendmail-program "/usr/bin/msmtp")
;;need to tell msmtp which account we're using
(setq message-sendmail-extra-arguments '("-a" "gmail"))
;; integrate with org-mode
(require 'org-notmuch)
(require 'notmuch-address)
(setq notmuch-address-command "/home/torsten/mails/get_address.sh")
(notmuch-address-message-insinuate)
/--------------------------------init-notmuch.el---------------------------------------------------/
get_address.sh is a little shell script which enables to access the
googlemail contact list and you will get auto completion.
/----------------------get_address.sh-------------------------/
#!/bin/sh
goobook query "$*" | sed 's/\(.*\)\t\(.*\)\t.*/\2 \<\1\>/' | sed '/^$/d'
/---------------------get_address.sh------------------------/
details about this can be found on the notmuch website.
Being in a notmuch buffer pressing 'm' opens a new buffer with a empty
template in Message mode
Fill it and C-c C-C will send the mail out.
It should appear in notmuch later and if you did your
filtering/tagging right you can file it under sent.
From there it should be pretty easy to link to an org-mode file.
Again I would like to see notmuch using more org-mode magic to get a
more clean representation of mails and esp. threads.
Some more hooks like automatic linking to notmuch emails in org-mode
buffers and creating of emails directly from org-mode buffers would be
nice and I guess its rather easy to implement. (E.g., a single command
to create a new mail and generating a org-mode link to that email in
notmuch, at the current position in a org-mode buffer would be very
nice).
Hope that helps
[1] http://msmtp.sourceforge.net/
On 3 April 2012 22:34, Rainer M Krug <r.m.krug@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 03/04/12 11:36, Rasmus wrote:
>> Rasmus <rasmus@gmx.us> writes:
>>
>>> ¹ http://globs.org/articles.php?pg=2&lng=en
>>
>> You might also be able to work something out with Keysnail, which, at least in Fx, can also
>> call external editors (Emacs, mostly)
>
> Also interesting - nice.
> Cheers,
>
> Rainer
>
>>
>> https://github.com/mooz/keysnail/wiki
>>
>> –Rasmus
>>
>
>
> - --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
> (Germany)
>
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
>
> Tel : +33 - (0)9 53 10 27 44
> Cell: +33 - (0)6 85 62 59 98
> Fax : +33 - (0)9 58 10 27 44
>
> Fax (D): +49 - (0)3 21 21 25 22 44
>
> email: Rainer@krugs.de
>
> Skype: RMkrug
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk96/FoACgkQoYgNqgF2ego+gQCeIMRkRQS/9JrTi6rbbtUlfJlj
> MYwAn0KuFx5oLwCyUZnm6q1SzyLB4e4Z
> =MNMi
> -----END PGP SIGNATURE-----
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compose emails in ogr, but send them via thunderbird?
2012-04-04 2:05 ` Torsten Wagner
@ 2012-04-05 9:33 ` Rainer M Krug
2012-04-05 14:42 ` Martin Pohlack
0 siblings, 1 reply; 8+ messages in thread
From: Rainer M Krug @ 2012-04-05 9:33 UTC (permalink / raw)
To: Torsten Wagner; +Cc: emacs-orgmode, Rasmus
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/04/12 04:05, Torsten Wagner wrote:
> Hi Rainer,
>
> Hmm interstingly I working on exact the same task.... I want to get rid of Thunderbird because
> its troubling me to much, but I can't find an easy drop-in replacement. Recently, I got notmuch
> running after giving up on gnus for the third or fourth time, because I never found enough time
> to come into it. Unfortunately, I find the notmuch thread buffers rather confusing and would be
> very happy if a little org-mode magic would move into it.
>
> Nevertheless notmuch allows you to write emails too. What you have to do is to set-up the smtp
> server to sent your mails. That can be either a pointer to an existing smtp server (like gmail)
> or a own server. A own server might be nice but requires some fiddling and hence I decided to
> use msmtp [1]. It requires only a very small config file with the credentials and settings for
> each smtp (email) account. Mostly what you are used to type into thunderbird too. In my emacs
> init files I added
>
> /--------------------------------init_notmuch.el---------------------------------------/
> ;;/////////////////////////////////////////////////////////////// ;; notmuch and smtp settings
> ;;//////////////////////////////////////////////////////////////
>
> (require 'notmuch) (setq message-send-mail-function 'message-send-mail-with-sendmail) ;; we
> substitute sendmail with msmtp (setq sendmail-program "/usr/bin/msmtp") ;;need to tell msmtp
> which account we're using (setq message-sendmail-extra-arguments '("-a" "gmail")) ;; integrate
> with org-mode (require 'org-notmuch) (require 'notmuch-address) (setq notmuch-address-command
> "/home/torsten/mails/get_address.sh") (notmuch-address-message-insinuate)
> /--------------------------------init-notmuch.el---------------------------------------------------/
>
> get_address.sh is a little shell script which enables to access the googlemail contact list
> and you will get auto completion.
>
> /----------------------get_address.sh-------------------------/ #!/bin/sh goobook query "$*" |
> sed 's/\(.*\)\t\(.*\)\t.*/\2 \<\1\>/' | sed '/^$/d'
> /---------------------get_address.sh------------------------/
>
> details about this can be found on the notmuch website.
>
> Being in a notmuch buffer pressing 'm' opens a new buffer with a empty template in Message
> mode Fill it and C-c C-C will send the mail out. It should appear in notmuch later and if you
> did your filtering/tagging right you can file it under sent. From there it should be pretty
> easy to link to an org-mode file.
>
>
> Again I would like to see notmuch using more org-mode magic to get a more clean representation
> of mails and esp. threads. Some more hooks like automatic linking to notmuch emails in
> org-mode buffers and creating of emails directly from org-mode buffers would be nice and I
> guess its rather easy to implement. (E.g., a single command to create a new mail and generating
> a org-mode link to that email in notmuch, at the current position in a org-mode buffer would be
> very nice).
>
>
> Hope that helps
Hi Torsten,
id definitely does. I have implemented it and am playing at the moment with the "external editor"
(combined with the "message-mode" and the get_address.sh script) and it looks quite nice at the
moment.
I think I will tackle the rest later.
Cheers,
Rainer
>
>
> [1] http://msmtp.sourceforge.net/
>
> On 3 April 2012 22:34, Rainer M Krug <r.m.krug@gmail.com> wrote: On 03/04/12 11:36, Rasmus
> wrote:
>>>> Rasmus <rasmus@gmx.us> writes:
>>>>
>>>>> ¹ http://globs.org/articles.php?pg=2&lng=en
>>>>
>>>> You might also be able to work something out with Keysnail, which, at least in Fx, can
>>>> also call external editors (Emacs, mostly)
>
> Also interesting - nice. Cheers,
>
> Rainer
>
>>>>
>>>> https://github.com/mooz/keysnail/wiki
>>>>
>>>> –Rasmus
>>>>
>
>
>>
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk99Zu0ACgkQoYgNqgF2egpzMQCfZ4ON/eYnUKfv4FiPnHCVN+1j
3gEAnjRy+P6KXQ5oLDsAKLyEZ/sZo0Df
=wK07
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compose emails in ogr, but send them via thunderbird?
2012-04-03 9:29 ` Rasmus
2012-04-03 9:36 ` Rasmus
@ 2012-04-03 13:31 ` Rainer M Krug
1 sibling, 0 replies; 8+ messages in thread
From: Rainer M Krug @ 2012-04-03 13:31 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/04/12 11:29, Rasmus wrote:
>
> Rainer,
>
>> So my question is: is it possible to write emails in org and then sent them (a subtree) to
>> thunderbird for sending / adding addresses / signing with pgp?
>
> I don't know about the subtree. But there is an extension¹ for this purpose. It comes with
> its own mode, but I am sure you could have it load Org, or alternatively just the org-like
> minor modes
Looks nice - I'll check it out.
>
> #+begin_src emacs-lisp (add-hook 'message-mode-hook 'turn-on-orgtbl) (add-hook
> 'message-mode-hook 'turn-on-orgstruct) #+end_src
>
> (replace the mode with something appropriate).
>
> The problem with this setup is that it relies on tmp files, so you would not have a grand org
> file of All-Thing-Sent.
True - and that is one thing which I would have liked to do - well - I'll give that extension a try.
>
>> I know - I could do all this in emacs, but absolutely no time at the moment.
>
> It is not that hardᵗᵐ. but could be time consuming. So, yeah, probably stick to TB for now.
> But, if time permits is it really quite nice (I use the Gnus).
Well - I should try it - I know....
Thanks a lot,
Rainer
>
> –Rasmus
>
>
> Footnotes: ¹ http://globs.org/articles.php?pg=2&lng=en
>
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk96+7wACgkQoYgNqgF2egofCwCcCoXChhhxCDRvuIzXlapCRhDC
F3wAnjklgSsNGx3SIqrSEVLlcRrkWHkE
=r8Mh
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-04-05 14:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 8:09 Compose emails in ogr, but send them via thunderbird? Rainer M Krug
2012-04-03 9:29 ` Rasmus
2012-04-03 9:36 ` Rasmus
2012-04-03 13:34 ` Rainer M Krug
2012-04-04 2:05 ` Torsten Wagner
2012-04-05 9:33 ` Rainer M Krug
2012-04-05 14:42 ` Martin Pohlack
2012-04-03 13:31 ` Rainer M Krug
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.