emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Bill Wohler <wohler@newt.com>
Cc: mh-e-users@lists.sourceforge.net, emacs-orgmode@gnu.org
Subject: Re: mh-e, mairix and org-mode
Date: Wed, 14 May 2008 23:02:09 -0400	[thread overview]
Message-ID: <17835.1210820529@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Your message of "Wed, 05 Dec 2007 00:46:56 PST." <5544.1196844416@olgas.newt.com>

Hi Bill,

You have probably forgotten the email that I am replying to (it was
back in December! I found it in the mh-e-users archives at

https://sourceforge.net/mailarchive/forum.php?thread_name=18867.1196806703%40localhost&forum_name=mh-e-users

in case you haven't kept it).

Briefly, Pete Phillips was trying to get org-mode links to email
messages (kept in mh folders) working, but was getting type mismatches.
Bastien Guerry (iirc) had suggested the workaround that Pete included
in his message.

I debugged the problem a bit and I found out that there are problems on
both sides of the fence: mh-e's mairix interface does not handle
message-IDs properly (as Bastien had suggested) and I think org-mode's
handling of mh-e searches (other than the pick case) is wrong.

I am going to send a patch to the org-mode mailing list about the latter
problem in just a little bit, but it depends on the following mh-e
patch, so I'd appreciate it very much if you could apply it: the mh-e
patch extends the capabilities of mh-mairix-regexp-builder to include
several search options (including the message-id "m:" one) that are
supported by the current version (0.21) of mairix. It only affects the
mairix interface, so it's rather unlikely to break anything else and
since it extends the current interface, it should be backwards
compatible as well.

I've been running with this plus the org-mode patch for a couple of
weeks. Thanks to Pete Phillips for taking time out to do some testing as
well.

Thanks very much,
Nick

--- a/lisp/mh-e/mh-search.el	2008-05-04 16:14:30.000000000 -0400
+++ b/lisp/mh-e/mh-search.el	2008-05-04 16:22:31.000000000 -0400
@@ -1090,8 +1090,16 @@
           (cond ((eq (car pair) 'to) "t:")
                 ((eq (car pair) 'from) "f:")
                 ((eq (car pair) 'cc) "c:")
+                ((eq (car pair) 'to-or-cc) "tc:")
+                ((eq (car pair) 'address) "a:")
                 ((eq (car pair) 'subject) "s:")
+                ((eq (car pair) 'subject-or-body) "bs:")
                 ((eq (car pair) 'date) "d:")
+                ((eq (car pair) 'message-id) "m:")
+                ((eq (car pair) 'message-body) "b:")
+                ((eq (car pair) 'message-size) "z:")
+                ((eq (car pair) 'message-attachment-name) "n:")
+                ((eq (car pair) 'message-flags) "F:")
                 (t ""))
           (let ((sop (cdr (mh-mairix-convert-to-sop* (cdr pair))))
                 (final ""))

       reply	other threads:[~2008-05-15  3:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <18867.1196806703@localhost>
     [not found] ` <5544.1196844416@olgas.newt.com>
2008-05-15  3:02   ` Nick Dokos [this message]
2008-05-17 21:38     ` mh-e, mairix and org-mode Bill Wohler
2008-05-19  2:00     ` Bill Wohler

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=17835.1210820529@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mh-e-users@lists.sourceforge.net \
    --cc=wohler@newt.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).