summaryrefslogtreecommitdiff
path: root/libsieve
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-10-23 22:48:39 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-10-23 22:48:39 +0000
commit887d5d3f4426883a200e530a890588b29ce4a2e5 (patch)
tree669b01331c4b38526803c1df256ffeb4c8e764d3 /libsieve
parentcd3010fc6d05da8a4fa5cfacf13e14b923976620 (diff)
downloadmailutils-887d5d3f4426883a200e530a890588b29ce4a2e5.tar.gz
mailutils-887d5d3f4426883a200e530a890588b29ce4a2e5.tar.bz2
Fix handling of stdin stream (in particular, in sieve).
* libsieve/extensions/spamd.c (spamd_test): Fix typo. * mailbox/file_stream.c (struct _file_stream): New members size and size_computed. (_stdin_file_read, _stdin_file_readline): Fix types of fs_offset. (_stdin_file_size): New function. (_stdout_file_write): Register _stdin_file_size as stream_size method if seekable flag is set. * mailbox/message_stream.c (struct _mu_rfc822_message): Remove unused member. * sieve/sieve.c (sieve_message): Create a seekable stream.
Diffstat (limited to 'libsieve')
-rw-r--r--libsieve/extensions/spamd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsieve/extensions/spamd.c b/libsieve/extensions/spamd.c
index 571c56f42..bfd42835b 100644
--- a/libsieve/extensions/spamd.c
+++ b/libsieve/extensions/spamd.c
@@ -368,7 +368,7 @@ spamd_test (mu_sieve_machine_t mach, mu_list_t args, mu_list_t tags)
decode_float (&limit, arg->v.string, 3);
result = score >= limit;
}
- else if (mu_sieve_tag_lookup (tags, "over", &arg))
+ else if (mu_sieve_tag_lookup (tags, "under", &arg))
{
decode_float (&limit, arg->v.string, 3);
result = score <= limit;

Return to:

Send suggestions and report system problems to the System administrator.