Re: [O] A mail client that is org-mode compatible
Hello Viktor and Igor, Sorry for the late response, I was on holidays. On Wed, Jan 02, 2013 at 01:38:40PM +0100, Viktor Rosenfeld wrote: Suvayu Ali wrote: On Mon, Dec 31, 2012 at 08:29:12AM +0100, Gour wrote: I use notmuch for indexing only, and read and send emails from mutt. Although I do not use gnus, I do use emacs as my editor (hence message-mode) to compose emails; there I find Org is supported rather well. For linking to emails, I have been using org-notmuch quite successfully for the last year now. If you are interested, feel free to ask I can share more details. I'm interested in your mutt+notmuch setup. Syncing: I use offlineimap to sync my Gmail account to a maildir. The configuration for this part is pretty basic. In my offlineimap postsynchook, I call `notmuch new`. This indexes new emails. I do this every 5 minutes via a cron job (script attached). Indexing: Now my notmuch has a post-new hook which updates the tags I want to set. It is basically a sequence of notmuch tag -tagname -- query # to remove tags notmuch tag +tagname -- query # to add tags To make date based queries I use something like this $(($(date +%s) - seconds) in the query, e.g. seconds can be 604800 to specify one week ago. This post-new hook is just the shell script notmuchdb/hooks/post-new. Reading responding to emails: To make notmuch queries from mutt I use the excellent mutt fork, mutt-kz https://github.com/karelzak/mutt-kz. I have managed to package it for fedora replacing mutt from the repositories (spec file attached). The README.notmuch in the repository above is pretty clear and concise. Other than the interactive search it offers, I have also written a shell script to filter threads by message-id or subject (attached). I use emacsclient to respond. I have not customised message-mode, mostly due to lack of time. So far I find the defaults are quite acceptable, so I am not that motivated to customise just yet :-p. Browsing, searching and linking to emails: I can use the notmuch emacs client to browse and search through the email archives (try M-x notmuch or M-x notmuch-search). There is also a very nice contributed library called notmuch-pick that offers a rather nice threaded view. To link to emails from Org mode, I use the library org-notmuch from org-mode/contrib. To use, just add contrib to the load-path and require. Now you can store a link to emails with org-store-link while viewing it in the notmuch emacs client and insert the link later with org-insert-link or org-insert-link-global. As far I have noticed, it can link to specific messages in threads, not just threads. Caveat: I have noticed sometimes the notmuch emacs client barfs at html email sent from broken clients. That said I did notice the latest version of notmuch (0.15) address html email issues by being able to choose specific MIME types to view for multipart messages. Here is a quote from the NEWS file: Visibility of MIME parts can be toggled Each part of a multi-part MIME email can now be shown or hidden using the button at the top of each part (by pressing RET on it or by clicking). For emails with multiple alternative formats (e.g., plain text and HTML), only the preferred format is shown initially, but other formats can be shown using their part buttons. To control the behavior of this, see `notmuch-multipart/alternative-discouraged` and `notmuch-show-all-multipart/alternative-parts`. Hopefully I have given enough information about my setup. GL, -- Suvayu Open source is the future. It sets us free. #!/bin/bash # set -o xtrace # return null string when filename expansion fails shopt -s nullglob declare cdir=$HOME/.offlineimap opts=($@) declare logfile=$cdir/log lockfile=($cdir/*lock) timestamp=$(date +%F %T %Z) exec 21 exec $logfile # clean-up past runs [[ -e $lockfile ]] rm $lockfile \ echo $timestamp: Cleaning up lock file $lockfile # sync with Gmail if imap server is reachable nc -z imap.gmail.com 993 /dev/null { echo $timestamp: Syncing with Gmail; offlineimap ${opts[@]}; } #!/bin/bash ## Usage: Mutt macros to use this script # # macro index,pager F3 pipe-messagefilter-mutt-thread id /tmp/mutt-search-500enter\ # enter-commandsource /tmp/mutt-search-500enter Collate entire thread by message id # # macro index,pager F4 pipe-messagefilter-mutt-thread subject /tmp/mutt-search-500enter\ # enter-commandsource /tmp/mutt-search-500enter Collate entire thread by subject # set -o xtrace # leave tmp file management to caller # TMPFILE=$(mktemp --tmpdir=/tmp mutt-search-$UID-) declare query=$1 hdr regex match case $query in id) hdr=Message-ID ;; subject) hdr=Subject ;; *) echo Unknown option exit -1 esac match=$(formail -z -x $hdr | tr -d '') echo push 'vfolder-from-query ${query}:\$match\type=threadsenter' %global git 51a28736
Re: [O] A mail client that is org-mode compatible
Am Thu, Jan 10, 2013 at 02:47:17PM +0100, Suvayu Ali wrote: Sorry for the late response, I was on holidays. thanks a lot for your informative answer! Very interesting! -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido :::: pgptIYO3avkVk.pgp Description: PGP signature
Re: [O] A mail client that is org-mode compatible
thanks, very informative! Suvayu Ali wrote: Sorry for the late response, I was on holidays.
Re: [O] A mail client that is org-mode compatible
On Wed, Jan 02, 2013 at 01:07:20PM -0600, Robert Goldman wrote: I use multiple devices, so I need to have an IMAP server that really is an IMAP server, instead of something the just serves up messages to be downloaded. I have multiple folders, and I read messages from different clients. I have a similar requirement. My setup consists of mutt together with imapfilter for sorting and filtering of e-mail on the IMAP server and offlineimap to hold a copy of all mails on the IMAP server locally. For the integration into the org-mode workflow, I have defined a [[mutt: ]] link and installed a script to capture a mail from mutt. To show a mail in Emacs, I use notmuch. It works very well for me. Although I have to say that I'm coming from the Vi world and using mutt since many years. So this cumbersome setup was my concession to keep my familiar e-mail client. The following link may help with a similar (but probably easier) setup with wanderlust that provides better and easier integration into Emacs. http://emacs-fu.blogspot.de/search/label/wanderlust Regards -- Michael Strey www.strey.biz
Re: [O] A mail client that is org-mode compatible
On Thu, 3 Jan 2013 13:11:26 +0100 Stelian Iancu li...@siancu.net wrote: You guys might want to check out mu4e as well: http://www.djcbsoftware.nl/code/mu/mu4e.html It's quite young but shows a lot of promise. Looks interesting, but it lacks support for nntp and all the mailing lists I follow (except one) are via Gmane. :-/ Sincerely, Gour -- Whenever and wherever there is a decline in religious practice, O descendant of Bharata, and a predominant rise of irreligion — at that time I descend Myself. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Re: [O] A mail client that is org-mode compatible
On 1/3/13 Jan 3 -4:17 AM, Daniel Clemente wrote: El Wed, 02 Jan 2013 13:07:20 -0600 Robert Goldman va escriure: Thunderbird, which I have been using, doesn't support links to messages. OTOH, it has the best IMAP client I have found, so I keep coming back to it. Gnus: I regret to say that despite having tried it at least three times, I have never managed to wrap my head around the gnus doctrine that mail is just news, so I cannot use it. Wanderlust speaks IMAP natively and works in a similar way to Thunderbird. It does not store e-mails locally, although it uses some caché. Probably others too. Thank you so much. I recall trying to install Wanderlust in the past and getting tripped up by the need to install SEMI, APEL and FLIM, which didn't successfully build for me (Aquamacs). Wanderlust still seems pretty difficult to set up: The INSTALL instructions for Wanderlust (on github) have not been updated in 2 years. They give instructions for up-to-date Emacs versions like 20.4 and they are unclear about whether to use FLIM or CLIME, or where to get the latter. Also, currently, the FAQ at the Wanderlust homepage points to dead FTP URLs for SEMI, APEL, and FLIM packages. If you don't grok el-get, or have prepackaged (e.g., Debian) versions of Wanderlust, this beast seems like a huge chore to install. Sigh.
Re: [O] A mail client that is org-mode compatible
On Tue, 01 Jan 2013 13:36:16 +0100 Daniel Clemente n142...@gmail.com wrote: I used gnus from 2008 to 2010 but could not make it work as I wanted. It seemed to value some things that I didn't (e.g. scoring, splitting, NNTP-style everywhere) whereas it didn't shine in other areas I needed (e.g. multiple SMTP servers, usability). Wanderlust was working perfectly since the first moment, and didn't require hacking, just configuration. Thank you. I'll give it a try. Sincerely, Gour -- There is no possibility of one's becoming a yogī, O Arjuna, if one eats too much or eats too little, sleeps too much or does not sleep enough. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 signature.asc Description: PGP signature
Re: [O] A mail client that is org-mode compatible
On Tue, 01 Jan 2013 18:57:46 +0100 Alan Schmitt alan.schm...@polytechnique.org wrote: I use mu4e, and what I really like about it is that the links are stable, even when moving mail from outside (like a web mail app or a mobile device). I could never get the registry to work well with gnus to solve this. That's very cool feature, but lack of nntp is problem 'cause out of 24 mailing lists which I follow, 23 are followed via gmane, so mu4e cannot provide complete solution for me. Sincerely, Gour -- The intricacies of action are very hard to understand. Therefore one should know properly what action is, what forbidden action is, and what inaction is. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 signature.asc Description: PGP signature
Re: [O] A mail client that is org-mode compatible
On Mon, Dec 31, 2012 at 08:29:12AM +0100, Gour wrote: I'd also like to use Notmuch for quick searching and would fetch mail via getmail and use locally running dovecot for serving IMAP... I use notmuch for indexing only, and read and send emails from mutt. Although I do not use gnus, I do use emacs as my editor (hence message-mode) to compose emails; there I find Org is supported rather well. For linking to emails, I have been using org-notmuch quite successfully for the last year now. If you are interested, feel free to ask I can share more details. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] A mail client that is org-mode compatible
Am Wed, Jan 02, 2013 at 08:57:14AM +, Suvayu Ali wrote: I use notmuch for indexing only, and read and send emails from mutt. Although I do not use gnus, I do use emacs as my editor (hence message-mode) to compose emails; there I find Org is supported rather well. For linking to emails, I have been using org-notmuch quite successfully for the last year now. If you are interested, feel free to ask I can share more details. I also would be interested in your orgmode + notmuch config... thanks in advance! -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido :::: pgpd6ybfSq_1F.pgp Description: PGP signature
Re: [O] A mail client that is org-mode compatible
Hi, Suvayu Ali wrote: On Mon, Dec 31, 2012 at 08:29:12AM +0100, Gour wrote: I use notmuch for indexing only, and read and send emails from mutt. Although I do not use gnus, I do use emacs as my editor (hence message-mode) to compose emails; there I find Org is supported rather well. For linking to emails, I have been using org-notmuch quite successfully for the last year now. If you are interested, feel free to ask I can share more details. I'm interested in your mutt+notmuch setup. Happy new year! Cheers, Viktor
Re: [O] A mail client that is org-mode compatible
I have a closely related question: I use multiple devices, so I need to have an IMAP server that really is an IMAP server, instead of something the just serves up messages to be downloaded. I have multiple folders, and I read messages from different clients. I haven't been able to figure out an org-mode compatible mail reader that doesn't seem to want me to pull down all the messages to a local server. [I'm ok if it doesn't read nntp.] Thunderbird, which I have been using, doesn't support links to messages. OTOH, it has the best IMAP client I have found, so I keep coming back to it. Gnus: I regret to say that despite having tried it at least three times, I have never managed to wrap my head around the gnus doctrine that mail is just news, so I cannot use it. VM: I used to use VM, but at least when I was using it, it demanded local storage, and did not include a full-fledged IMAP client. any other suggestions? Maybe this could go onto worg
Re: [O] A mail client that is org-mode compatible
I use Wanderlust and can make links from org just fine. I used gnus from 2008 to 2010 but could not make it work as I wanted. It seemed to value some things that I didn't (e.g. scoring, splitting, NNTP-style everywhere) whereas it didn't shine in other areas I needed (e.g. multiple SMTP servers, usability). Wanderlust was working perfectly since the first moment, and didn't require hacking, just configuration. Wanderlust is primarily an e-mail reader (IMAP, POP, Maildir, MH, …) but it can read NNTP natively, and some people also read RSS with it: http://www.emacswiki.org/emacs/HOWTOReadFeedsInEmacsViaEmail So that's my bet. Daniel El Mon, 31 Dec 2012 08:29:12 +0100 Gour va escriure: […] Afaict, there is no support in orgmode for Claws mailer which I use for regular email, mailing lists (mostly via gmane) as well as rss reader. is Gnus the only Emacs-based client which has good support for all of these as well as good support for orgmode? I'd also like to use Notmuch for quick searching and would fetch mail via getmail and use locally running dovecot for serving IMAP... Yesterday I read a bit about mu(4e), but it seems it handles only email and not nntp? Any hint? Sincerely, Gour -- The embodied soul may be restricted from sense enjoyment, though the taste for sense objects remains. But, ceasing such engagements by experiencing a higher taste, he is fixed in consciousness. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Re: [O] A mail client that is org-mode compatible
Gour writes: Yesterday I read a bit about mu(4e), but it seems it handles only email and not nntp? I use mu4e, and what I really like about it is that the links are stable, even when moving mail from outside (like a web mail app or a mobile device). I could never get the registry to work well with gnus to solve this. Alan
Re: [O] A mail client that is org-mode compatible
Hi Gour VM, too, cooperates just fine with org. I use orgstruct- and orgtbl-mode in mail-mode and linking and capturing work like a charm. Salome I use Wanderlust and can make links from org just fine. I used gnus from 2008 to 2010 but could not make it work as I wanted. It seemed to value some things that I didn't (e.g. scoring, splitting, NNTP-style everywhere) whereas it didn't shine in other areas I needed (e.g. multiple SMTP servers, usability). Wanderlust was working perfectly since the first moment, and didn't require hacking, just configuration. Wanderlust is primarily an e-mail reader (IMAP, POP, Maildir, MH, ?) but it can read NNTP natively, and some people also read RSS with it: http://www.emacswiki.org/emacs/HOWTOReadFeedsInEmacsViaEmail So that's my bet. Daniel El Mon, 31 Dec 2012 08:29:12 +0100 Gour va escriure: [?] Afaict, there is no support in orgmode for Claws mailer which I use for regular email, mailing lists (mostly via gmane) as well as rss reader. is Gnus the only Emacs-based client which has good support for all of these as well as good support for orgmode? I'd also like to use Notmuch for quick searching and would fetch mail via getmail and use locally running dovecot for serving IMAP... Yesterday I read a bit about mu(4e), but it seems it handles only email and not nntp? Any hint? Sincerely, Gour
Re: [O] A mail client that is org-mode compatible
Daniel Clemente n142...@gmail.com writes: I use Wanderlust and can make links from org just fine. I used gnus from 2008 to 2010 but could not make it work as I wanted. It seemed to value some things that I didn't (e.g. scoring, splitting, NNTP-style everywhere) whereas it didn't shine in other areas I needed (e.g. multiple SMTP servers, usability). Wanderlust was working perfectly since the first moment, and didn't require hacking, just configuration. Multiple smtp servers are well supported for quite a while now.
Re: [O] A mail client that is org-mode compatible
El Tue, 01 Jan 2013 23:14:19 + Richard Riley va escriure: (gnus) Multiple smtp servers are well supported for quite a while now. Yes, I used it, but it was not an elegant solution. Just look at how much information you need to make it work; it's frightening: http://emacswiki.org/emacs/MultipleSMTPAccounts If there's a new way to do it, the wiki can be updated.
Re: [O] A mail client that is org-mode compatible
Hi Gour, Gour g...@atmarama.net writes: Afaict, there is no support in orgmode for Claws mailer which I use for regular email, mailing lists (mostly via gmane) as well as rss reader. But you're not alone in the Org/Claws desert: http://lists.gnu.org/archive/html/emacs-orgmode/2010-10/msg00539.html The function quote in the mail above could easily be enhanced to call Claws asynchronously. is Gnus the only Emacs-based client which has good support for all of these as well as good support for orgmode? AFAIK yes. You can create tasks from Mew/WL/MH-E/Rmail but Gnus is the only one to support org+nntp+rss. I'd also like to use Notmuch for quick searching and would fetch mail via getmail and use locally running dovecot for serving IMAP... Yesterday I read a bit about mu(4e), but it seems it handles only email and not nntp? Yes. HTH, -- Bastien
Re: [O] A mail client that is org-mode compatible
On Mon, 31 Dec 2012 10:19:58 +0100 Bastien b...@altern.org wrote: But you're not alone in the Org/Claws desert: http://lists.gnu.org/archive/html/emacs-orgmode/2010-10/msg00539.html Yeah, I saw it, but not much afterwards. AFAIK yes. You can create tasks from Mew/WL/MH-E/Rmail but Gnus is the only one to support org+nntp+rss. I used Gnus in the past but had some rss parsing-related problems. Otoh, this might be good opportunity to return to Gnus and just keep some simple mailer for my other family members to access their mail. Yesterday I read a bit about mu(4e), but it seems it handles only email and not nntp? Yes. Then the Gnus is without competition. HTH, Yes. Thank you for your reply and taking care about orgmode. ;) Sincerely, Gour -- Many, many births both you and I have passed. I can remember all of them, but you cannot, O subduer of the enemy! http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 signature.asc Description: PGP signature
Re: [O] A mail client that is org-mode compatible
On Wed, 23 Feb 2011 07:26:00 + Eric S Fraga e.fr...@ucl.ac.uk wrote: For the OP, gnus is definitely the way to go as far as I am concerned. With the development version of gnus, org integration, including fontification of source code blocks and links, is excellent. Due to OCaml, I'm returning back to Emacs/Orgmode and would like to take advantage of orgmode's capabilities to link to email messages. Afaict, there is no support in orgmode for Claws mailer which I use for regular email, mailing lists (mostly via gmane) as well as rss reader. is Gnus the only Emacs-based client which has good support for all of these as well as good support for orgmode? I'd also like to use Notmuch for quick searching and would fetch mail via getmail and use locally running dovecot for serving IMAP... Yesterday I read a bit about mu(4e), but it seems it handles only email and not nntp? Any hint? Sincerely, Gour -- The embodied soul may be restricted from sense enjoyment, though the taste for sense objects remains. But, ceasing such engagements by experiencing a higher taste, he is fixed in consciousness. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810