aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
Diffstat (limited to 'filter')
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/filtertypes.xml5
-rw-r--r--filter/libfilter-i18n.h1
3 files changed, 11 insertions, 0 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index fa6ddced4d..868fee9fe9 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-13 Jeffrey Stedfast <fejj@ximian.com>
+
+ * filtertypes.xml: Add a Run Once action to run a command only
+ once rather than for each message that has that action applied.
+
2002-08-08 Not Zed <NotZed@Ximian.com>
* rule-editor.c (add_editor_clicked): Dont allow duplicate names.
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml
index 53e3345327..2a192d1c61 100644
--- a/filter/filtertypes.xml
+++ b/filter/filtertypes.xml
@@ -710,5 +710,10 @@
<code>(shell "/bin/sh" "-c" ${command})</code>
<input type="command" name="command"/>
</part>
+ <part name="run-once">
+ <title>Run Once</title>
+ <code>(only-once (shell "/bin/sh" "-c" ${command}))</code>
+ <input type="command" name="command"/>
+ </part>
</actionset>
</filterdescription>
diff --git a/filter/libfilter-i18n.h b/filter/libfilter-i18n.h
index d965e03184..db73904ce0 100644
--- a/filter/libfilter-i18n.h
+++ b/filter/libfilter-i18n.h
@@ -46,6 +46,7 @@ char *s = N_("Replied to");
char *s = N_("returns");
char *s = N_("returns greater than");
char *s = N_("returns less than");
+char *s = N_("Run Once");
char *s = N_("Score");
char *s = N_("Sender");
char *s = N_("Set Status");