diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-10-04 11:28:45 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-10-04 11:28:45 +0000 |
commit | 520ee3e69ef03af0af163da6a5e2e1d086317c49 (patch) | |
tree | 29840089e0a098c4e2789a427305f9168e6338eb /libsieve | |
parent | 052decebd8f8e5f3973b18ccf5c22fb920c79968 (diff) | |
download | mailutils-520ee3e69ef03af0af163da6a5e2e1d086317c49.tar.gz mailutils-520ee3e69ef03af0af163da6a5e2e1d086317c49.tar.bz2 |
(vacation_subject): Improve yesterday's fix, following Kostas' suggestion.
Diffstat (limited to 'libsieve')
-rw-r--r-- | libsieve/extensions/vacation.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libsieve/extensions/vacation.c b/libsieve/extensions/vacation.c index 267ee9c49..c07cc1b5f 100644 --- a/libsieve/extensions/vacation.c +++ b/libsieve/extensions/vacation.c @@ -400,14 +400,11 @@ vacation_subject (mu_sieve_machine_t mach, mu_list_t tags, mu_sieve_value_t *arg; char *value; char *subject; - int subject_allocated; + int subject_allocated = 0; mu_header_t hdr; if (mu_sieve_tag_lookup (tags, "subject", &arg)) - { - subject = arg->v.string; - subject_allocated = 0; - } + subject = arg->v.string; else if (mu_message_get_header (msg, &hdr) == 0 && mu_header_aget_value_unfold (hdr, MU_HEADER_SUBJECT, &value) == 0) { @@ -449,7 +446,7 @@ vacation_subject (mu_sieve_machine_t mach, mu_list_t tags, free (value); } else - subject = "Re:"; + subject = "Re: Your mail"; if (mu_rfc2047_encode (MU_SIEVE_CHARSET, "quoted-printable", subject, &value)) |