From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: Compose emails in ogr, but send them via thunderbird? Date: Wed, 4 Apr 2012 11:05:45 +0900 Message-ID: References: <4F7AB055.3080601@gmail.com> <87ehs52mf0.fsf@pank.eu> <87aa2t2m2x.fsf@pank.eu> <4F7AFC5A.2020509@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFFbb-0004e4-Fk for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 22:05:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFFbY-0000zb-Lc for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 22:05:51 -0400 Received: from mail-vb0-f41.google.com ([209.85.212.41]:59025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFFbY-0000zC-Dc for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 22:05:48 -0400 Received: by vbbey12 with SMTP id ey12so283305vbb.0 for ; Tue, 03 Apr 2012 19:05:45 -0700 (PDT) In-Reply-To: <4F7AFC5A.2020509@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: R.M.Krug@gmail.com Cc: emacs-orgmode@gnu.org, 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 wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 03/04/12 11:36, Rasmus wrote: >> Rasmus writes: >> >>> =B9 =A0http://globs.org/articles.php?pg=3D2&lng=3Den >> >> You might also be able to work something out with Keysnail, which, at le= ast in Fx, can also >> call external editors (Emacs, mostly) > > Also interesting - nice. > Cheers, > > Rainer > >> >> https://github.com/mooz/keysnail/wiki >> >> =96Rasmus >> > > > - -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biolog= y, UCT), Dipl. Phys. > (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : =A0 =A0 =A0 +33 - (0)9 53 10 27 44 > Cell: =A0 =A0 =A0 +33 - (0)6 85 62 59 98 > Fax : =A0 =A0 =A0 +33 - (0)9 58 10 27 44 > > Fax (D): =A0 =A0+49 - (0)3 21 21 25 22 44 > > email: =A0 =A0 =A0Rainer@krugs.de > > Skype: =A0 =A0 =A0RMkrug > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk96/FoACgkQoYgNqgF2ego+gQCeIMRkRQS/9JrTi6rbbtUlfJlj > MYwAn0KuFx5oLwCyUZnm6q1SzyLB4e4Z > =3DMNMi > -----END PGP SIGNATURE----- >