Package: maildir-utils
Version: 0.7-1
Severity: normal
Tags: upstream patch

That's for maintaining maildir-utils. I maintain mairix (apparently a
"competiting" system) and this mu seems interesting! 

To reproduce the bug, try to output the message-id for any message in
the system using the field option to 'mu find' like:

  mu find -f i EXAMPLE

The result will not shown any message-ids but will just repeat the
letter "i". The problem seems to be that that message-id is being stored
as a Xapian term but not as a value. As a result, it can be searched
for, but not displayed.

I'm attaching a patch that solves the problem on my system. I don't know
the codebase well enough to know if I've fixed in this in "the right
way."

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to 
en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages maildir-utils depends on:
ii  libc6                      2.11.2-6      Embedded GNU C Library: Shared lib
ii  libgcc1                    1:4.4.5-2     GCC support library
ii  libglib2.0-0               2.24.2-1      The GLib library of C routines
ii  libgmime-2.4-2             2.4.14-1+nmu1 MIME message parser and creator li
ii  libstdc++6                 4.4.5-2       The GNU Standard C++ Library v3
ii  libxapian22                1.2.3-2       Search engine library

maildir-utils recommends no packages.

maildir-utils suggests no packages.

-- no debconf information
diff -u -r maildir-utils-0.7/src/mu-msg-fields.c maildir-utils-0.7-mako/src/mu-msg-fields.c
--- maildir-utils-0.7/src/mu-msg-fields.c	2010-02-09 05:54:42.000000000 -0500
+++ maildir-utils-0.7-mako/src/mu-msg-fields.c	2010-10-21 13:48:19.000000000 -0400
@@ -130,7 +130,7 @@
 		MU_MSG_FIELD_ID_MSGID,
 		MU_MSG_FIELD_TYPE_STRING,
 		"msgid", "i", "I",  /* 'i' for Id */
-		FLAG_GMIME | FLAG_XAPIAN_TERM
+		FLAG_GMIME | FLAG_XAPIAN_TERM | FLAG_XAPIAN_VALUE
 	},
 	
 	{ 

Reply via email to