diff options
author | Milan Crha <mcrha@redhat.com> | 2012-08-06 22:10:09 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-08-06 22:10:09 +0800 |
commit | 304a2c1c91bd21b362090a4368fb460bc697d9b0 (patch) | |
tree | 5851085a290617813fe15268444d726da9b79ce6 /mail | |
parent | 82b67c38f4a54ad10cce86bc541c5608374a20a1 (diff) | |
download | gsoc2013-evolution-304a2c1c91bd21b362090a4368fb460bc697d9b0.tar.gz gsoc2013-evolution-304a2c1c91bd21b362090a4368fb460bc697d9b0.tar.zst gsoc2013-evolution-304a2c1c91bd21b362090a4368fb460bc697d9b0.zip |
Bug #246530 - Rules editor lacks "Label is (not) 'None'"
Diffstat (limited to 'mail')
-rw-r--r-- | mail/filtertypes.xml | 10 | ||||
-rw-r--r-- | mail/searchtypes.xml | 10 | ||||
-rw-r--r-- | mail/vfoldertypes.xml | 8 |
3 files changed, 8 insertions, 20 deletions
diff --git a/mail/filtertypes.xml b/mail/filtertypes.xml index c655c32cb8..02bea7fadd 100644 --- a/mail/filtertypes.xml +++ b/mail/filtertypes.xml @@ -648,15 +648,11 @@ <input type="optionlist" name="label-type"> <option value="is"> <title>is</title> - <code> - (match-all (or (= (user-tag "label") ${versus}) (user-flag (+ "$Label" ${versus})) (user-flag ${versus}))) - </code> + <code func="e_mail_labels_get_filter_code"/> </option> <option value="is-not"> <title>is not</title> - <code> - (match-all (not (or (= (user-tag "label") ${versus}) (user-flag (+ "$Label" ${versus})) (user-flag ${versus})))) - </code> + <code func="e_mail_labels_get_filter_code"/> </option> </input> <input type="optionlist" name="versus"> @@ -947,7 +943,7 @@ <title>Set Label</title> <code>(set-label ${label})</code> <input type="optionlist" name="label"> - <dynamic func="e_mail_labels_get_filter_options"/> + <dynamic func="e_mail_labels_get_filter_options_without_none"/> </input> </part> <part name="colour"> diff --git a/mail/searchtypes.xml b/mail/searchtypes.xml index 0173066aa2..bf933d8342 100644 --- a/mail/searchtypes.xml +++ b/mail/searchtypes.xml @@ -644,16 +644,12 @@ <input type="optionlist" name="label-type"> <option value="is"> <title>is</title> - <code> - (match-all (or (= (user-tag "label") ${versus}) (user-flag (+ "$Label" ${versus})) (user-flag ${versus}))) - </code> + <code func="e_mail_labels_get_filter_code"/> </option> <option value="is-not"> <title>is not</title> - <code> - (match-all (not (or (= (user-tag "label") ${versus}) (user-flag (+ "$Label" ${versus})) (user-flag ${versus})))) - </code> - </option> + <code func="e_mail_labels_get_filter_code"/> + </option> </input> <input type="optionlist" name="versus"> <dynamic func="e_mail_labels_get_filter_options"/> diff --git a/mail/vfoldertypes.xml b/mail/vfoldertypes.xml index 5f8bbd19a4..9195271c9c 100644 --- a/mail/vfoldertypes.xml +++ b/mail/vfoldertypes.xml @@ -640,15 +640,11 @@ <input type="optionlist" name="label-type"> <option value="is"> <title>is</title> - <code> - (match-all (or (= (user-tag "label") ${versus}) (user-flag (+ "$Label" ${versus})) (user-flag ${versus}))) - </code> + <code func="e_mail_labels_get_filter_code"/> </option> <option value="is-not"> <title>is not</title> - <code> - (match-all (not (or (= (user-tag "label") ${versus}) (user-flag (+ "$Label" ${versus})) (user-flag ${versus})))) - </code> + <code func="e_mail_labels_get_filter_code"/> </option> </input> <input type="optionlist" name="versus"> |