summaryrefslogtreecommitdiffabout
path: root/sieve
authorSergey Poznyakoff <gray@gnu.org.ua>2004-01-05 18:09:32 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2004-01-05 18:09:32 (GMT)
commite8548a14f1268da5cefe45656c7518148a504c75 (patch) (side-by-side diff)
treed0419987bba42bbc5ad51e4caa0337c73723ff21 /sieve
parentd12f61a65fbd800b1b74b7ee1d1bd8bbf9950cc7 (diff)
downloadmailutils-e8548a14f1268da5cefe45656c7518148a504c75.tar.gz
mailutils-e8548a14f1268da5cefe45656c7518148a504c75.tar.bz2
Use mu_true_answer_p()
Diffstat (limited to 'sieve') (more/less context) (ignore whitespace changes)
-rw-r--r--sieve/sieve.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sieve/sieve.c b/sieve/sieve.c
index 72b6a7e..9287272 100644
--- a/sieve/sieve.c
+++ b/sieve/sieve.c
@@ -117,16 +117,12 @@ static int sieve_print_locus = 1; /* Should the log messages include the
static int
is_true_p (char *p)
{
+ int rc;
if (!p)
return 1;
- /* TRANSLATORS: This is the list of characters meaning 'Yes'. Please,
- preserve yY in your translation, e.g., for German:
-
- msgstr "yYjJ";
- */
- if (strchr (_("yY"), *p))
- return 1;
- return 0;
+ if ((rc = mu_true_answer_p (p)) == -1)
+ return 0;
+ return rc;
}
static error_t

Return to:

Send suggestions and report system problems to the System administrator.