[sup-devel] [issue122] editing labels in thread view mode messes up labels of all messages in thread, even after undo

2010-09-29 Thread Sascha Silbe
New submission from Sascha Silbe : When changing labels in thread view mode (and probably also in thread index / inbox mode), labels for _all_ messages of the thread are set to be exactly the same. Apart from not being what the user expects, it also messes up special labels like :attachment. E

[sup-devel] [PATCH] fix searching for non-lowercase labels

2010-09-29 Thread Sascha Silbe
Case is preserved when marshalling labels (stored as document data), but label terms are stored lowercase. build_xapian_query uses mkterm and thus already converts labels to lowercase when searching. parse_query accepts a Xapian query string from the user and needs to explicitly convert labels to l

[sup-devel] [PATCH] add sendmail hook

2010-09-29 Thread Sascha Silbe
Add a hook that is run in place of the sendmail command. This allows last-minute adjustments including sending a separate copy to each recipient and setting the envelope sender, i.e. VERP (variable envelope return path). Signed-off-by: Sascha Silbe --- lib/sup/modes/edit-message-mode.rb | 25 +

[sup-devel] [PATCH] fix handling of multiple label: terms in search

2010-09-29 Thread Sascha Silbe
By default Xapian will join query terms with the same prefix with OR instead of AND, so searching for multiple labels doesn't return the expected results. By making use of a parameter to add_boolean_prefix (added in Xapian 1.2) we can tell Xapian to use OR only for the search terms that are guarant

Re: [sup-devel] [PATCH] fix handling of multiple label: terms in search

2010-09-29 Thread Edward Z. Yang
Excerpts from Sascha Silbe's message of Wed Sep 29 10:16:02 -0400 2010: > By default Xapian will join query terms with the same prefix with OR instead > of AND, so searching for multiple labels doesn't return the expected results. > By making use of a parameter to add_boolean_prefix (added in Xapia

Re: [sup-devel] [PATCH] add sendmail hook

2010-09-29 Thread Ben Walton
Excerpts from Sascha Silbe's message of Wed Sep 29 10:13:00 -0400 2010: > Add a hook that is run in place of the sendmail command. This allows > last-minute adjustments including sending a separate copy to each > recipient and setting the envelope sender, i.e. VERP (variable > envelope return path