aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filtertypes.xml
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-21 10:51:38 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-21 10:51:38 +0800
commit6d74595779416412b478dd4ae3d38dffd3f4baae (patch)
treef5793662a36daff8df54de77077193920fb5acc3 /filter/filtertypes.xml
parent3d17cca7ed57dcde3c6649e15d4ac7fe30174776 (diff)
downloadgsoc2013-evolution-6d74595779416412b478dd4ae3d38dffd3f4baae.tar
gsoc2013-evolution-6d74595779416412b478dd4ae3d38dffd3f4baae.tar.gz
gsoc2013-evolution-6d74595779416412b478dd4ae3d38dffd3f4baae.tar.bz2
gsoc2013-evolution-6d74595779416412b478dd4ae3d38dffd3f4baae.tar.lz
gsoc2013-evolution-6d74595779416412b478dd4ae3d38dffd3f4baae.tar.xz
gsoc2013-evolution-6d74595779416412b478dd4ae3d38dffd3f4baae.tar.zst
gsoc2013-evolution-6d74595779416412b478dd4ae3d38dffd3f4baae.zip
Added filter-url.[c,h].
2000-10-20 Jeffrey Stedfast <fejj@helixcode.com> * Makefile.am: Added filter-url.[c,h]. * filter-message-search.c (get_source): New callback to get the source url of the message being filtered. (filter_message_search): Now takes a source argument. * filter-element.c (filter_element_new_type_name): Added code to handle URL types. * filter-url.[c,h]: New filter object to handle URLs (ie in the case of filtering on source url). FIXME: find a way to populate the source combo box (including mail-config.h breaks the build in the addressbook - how does including mail-tools.h not break the build???) * filtertypes.xml: Added the source filter type and added the move-to action. * filter-driver.c (do_move): New callback, a "Copy" action should just copy the message to another location while a Move should both copy the message to a new location and delete it from the source location. (do_delete): Set the deleted flag on the message info. (filter_driver_filter_message): Now returns void as we don't care if it was copied or not in the caller functions. Also check the CamelMessageInfo being passed in - if the message has been marked as deleted prior to being filtered, then return immediately as we don't want to apply filter actions to deleted messages. svn path=/trunk/; revision=6094
Diffstat (limited to 'filter/filtertypes.xml')
-rw-r--r--filter/filtertypes.xml29
1 files changed, 27 insertions, 2 deletions
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml
index 43a6043124..1b869bd577 100644
--- a/filter/filtertypes.xml
+++ b/filter/filtertypes.xml
@@ -197,6 +197,26 @@
</input>
</part>
+ <part name="source">
+ <title>Source</title>
+ <input type="optionlist" name="url-type">
+ <option value="is">
+ <title>is</title>
+ <code>
+ (match-all (= (get-source) ${source}))
+ </code>
+ </option>
+ <option value="is-not">
+ <title>is not</title>
+ <code>
+ (match-all (not (= (get-source) ${source})))
+ </code>
+ </option>
+ </input>
+ <input type="url" name="source">
+ </input>
+ </part>
+
</partset>
@@ -206,8 +226,13 @@
<code>(copy-to ${folder})</code>
<input type="folder" name="folder"/>
</part>
+ <part name="move-to-folder">
+ <title>Move to Folder</title>
+ <code>(move-to ${folder})</code>
+ <input type="folder" name="folder"/>
+ </part>
<part name="forward-to">
- <title>Forward to address</title>
+ <title>Forward to Address</title>
<code>(forward-to ${address})</code>
<input type="address" name="address"/>
</part>
@@ -216,7 +241,7 @@
<code>(delete)</code>
</part>
<part name="stop">
- <title>Stop processing</title>
+ <title>Stop Processing</title>
<code>(stop)</code>
</part>
<part name="colour">