emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: mh-e, mairix and org-mode
       [not found] ` <5544.1196844416@olgas.newt.com>
@ 2008-05-15  3:02   ` Nick Dokos
  2008-05-17 21:38     ` Bill Wohler
  2008-05-19  2:00     ` Bill Wohler
  0 siblings, 2 replies; 3+ messages in thread
From: Nick Dokos @ 2008-05-15  3:02 UTC (permalink / raw)
  To: Bill Wohler; +Cc: mh-e-users, emacs-orgmode

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 ""))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mh-e, mairix and org-mode
  2008-05-15  3:02   ` mh-e, mairix and org-mode Nick Dokos
@ 2008-05-17 21:38     ` Bill Wohler
  2008-05-19  2:00     ` Bill Wohler
  1 sibling, 0 replies; 3+ messages in thread
From: Bill Wohler @ 2008-05-17 21:38 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: mh-e-users, emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> wrote:

> 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.

Hi Pete,

Please confirm that you've been running with Nick's patch and I'll patch
MH-E with it. Thanks to you both.

-- 
Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mh-e, mairix and org-mode
  2008-05-15  3:02   ` mh-e, mairix and org-mode Nick Dokos
  2008-05-17 21:38     ` Bill Wohler
@ 2008-05-19  2:00     ` Bill Wohler
  1 sibling, 0 replies; 3+ messages in thread
From: Bill Wohler @ 2008-05-19  2:00 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: mh-e-users, emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> wrote:

> 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

Thanks for the patch, Nick. Thanks also to Pete for testing (since I
don't use mairix). Your patch has been applied to CVS.

-- 
Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-19  2:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <18867.1196806703@localhost>
     [not found] ` <5544.1196844416@olgas.newt.com>
2008-05-15  3:02   ` mh-e, mairix and org-mode Nick Dokos
2008-05-17 21:38     ` Bill Wohler
2008-05-19  2:00     ` Bill Wohler

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).