emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: emacs-orgmode@gnu.org
Subject: Re: Mairix & Mutt
Date: Sat, 27 Sep 2008 07:16:05 -0500	[thread overview]
Message-ID: <20080927121605.GE4134@thinkpad.adamsinfoserv.com> (raw)
In-Reply-To: <20080927111817.GA15675@taupan.ath.cx>

On Sat, Sep 27, 2008 at 01:18:17PM +0200, Friedrich Delgado Friedrichs wrote:
> Hi!
> 
> I was thinking about how to interface mutt and org-mode for quite some
> time now but didn't really get around to it.
> 
> I've tried to use many emacs MUAs for this purpose (mh-e, wanderlust,
> mew and finally the great scary GNUs) but they're not quite to my
> taste.

Mutt is my preferred client as well.

> Your proposal gave me the necessary hacktivation energy to come up
> with my version of this prototype. I also borrowed some of your code,
> but backported it to perl 5.8.

Hacker twin powers activate!

> 
> Russell Adams schrieb:
> > The workflow goes like this:
> >
> >  - Reading email in Mutt, in index or pager
> >  - Trigger script via M-o in Mutt
> >  - Middle-click into my org-mode buffer pasting the link
> >  - Later visit the link and execute mairix to find message by ID
> >  - In current Mutt session, use M-` to jump to search folder and read
> >    message
> ---Zitatende---
> 
> Those are a few steps too many for me. I wanted to press <f9>t in the
> index or pager and then pop up an emacs window with remember.

I typically have mutt & emacs/org open at the same time in separate
windows. I don't do "popup" anything. ;]

> As org-annotation-helper.el does this already, I decided to use it.
> 
> Also mutt is able to search its own mailboxes, not as flexible as
> mairix, because it can only search a single folder, but I only really
> want to link back to a certain mail for now.

I use Maildir style directories and a lovely script which
auto-archives anything older than 2 weeks that isn't flagged.

Due to the automated movement, search via mairix is a must for me.

> I also had a long conversation with pdmef on channel #mutt on
> freenode.net, who gave me the two crucial ideas how to configure this
> in mutt.
> 
> The main idea is to use the path-type variable record to get the name
> of the current folder and store it in the two keyboard macros. The
> keyboard macros change every time you change a folder in mutt.
> 
> This is a rough prototype still. I'd like to get rid of the (y/n)
> prompt and therefore I'd like to have a link-type "mutt:" in org,
> which means some of the functionality of the perl-script would have to
> get implemented in emacs-lisp. But that would give me the benefit of a
> customisable terminal and maybe get everything a bit less hairy...
> 
> You'll notice that calling mutt with a mail is not very straight
> forward. In theory,
> 
> mutt -f $mailbox -e "push <search>~i$msgid<enter><display-message>"
> 
> should be sufficient. However if it's started via xterm -e, the
> keystrokes don't arrive, maybe because xterm does some terminal
> initialisations after mutt has started (or my window manager sends a
> resize signal a bit too late, something like that). That's why I'm
> writing the keystrokes to a temporary file. Not elegant, but does the
> job.
> 

Thats why my workflow just had mairix update the search folder, and
since Mutt was already open I just press a key to jump to my search folder.

Glad to see you're able to adapt it to your needs.


------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

  reply	other threads:[~2008-09-27 12:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-21  4:58 Mairix & Mutt Russell Adams
2008-09-21  8:24 ` [AvataR]
2008-09-21 14:22   ` Russell Adams
2008-09-27 11:18 ` Friedrich Delgado Friedrichs
2008-09-27 12:16   ` Russell Adams [this message]
2008-09-27 13:02     ` Friedrich Delgado Friedrichs

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=20080927121605.GE4134@thinkpad.adamsinfoserv.com \
    --to=rladams@adamsinfoserv.com \
    --cc=emacs-orgmode@gnu.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.
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).