From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: mh-e, mairix and org-mode Date: Wed, 14 May 2008 23:02:09 -0400 Message-ID: <17835.1210820529@gamaville.dokosmarshall.org> References: <18867.1196806703@localhost> <5544.1196844416@olgas.newt.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwTmH-00005I-Q5 for emacs-orgmode@gnu.org; Wed, 14 May 2008 23:05:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwTmG-0008WU-Tz for emacs-orgmode@gnu.org; Wed, 14 May 2008 23:05:09 -0400 Received: from [199.232.76.173] (port=36645 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwTmG-0008WR-OZ for emacs-orgmode@gnu.org; Wed, 14 May 2008 23:05:08 -0400 Received: from mx20.gnu.org ([199.232.41.8]:18670) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JwTmG-0004IA-Ih for emacs-orgmode@gnu.org; Wed, 14 May 2008 23:05:08 -0400 Received: from qmta08.westchester.pa.mail.comcast.net ([76.96.62.80]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwTka-00081t-HP for emacs-orgmode@gnu.org; Wed, 14 May 2008 23:03:24 -0400 In-Reply-To: Your message of "Wed, 05 Dec 2007 00:46:56 PST." <5544.1196844416@olgas.newt.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bill Wohler Cc: mh-e-users@lists.sourceforge.net, emacs-orgmode@gnu.org 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 ""))