From f34f1b7ca509aa7eb6bdd67b9ec0fc37125917b1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 13 Sep 2002 20:20:40 +0000 Subject: Add a Run Once action to run a command only once rather than for each 2002-09-13 Jeffrey Stedfast * filtertypes.xml: Add a Run Once action to run a command only once rather than for each message that has that action applied. svn path=/trunk/; revision=18068 --- filter/ChangeLog | 5 +++++ filter/filtertypes.xml | 5 +++++ filter/libfilter-i18n.h | 1 + 3 files changed, 11 insertions(+) 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 + + * 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 * 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 @@ (shell "/bin/sh" "-c" ${command}) + + Run Once + (only-once (shell "/bin/sh" "-c" ${command})) + + 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"); -- cgit v1.2.3