diff options
author | Wojciech Polak <polak@gnu.org> | 2004-01-19 11:30:00 +0000 |
---|---|---|
committer | Wojciech Polak <polak@gnu.org> | 2004-01-19 11:30:00 +0000 |
commit | 4ff4ca4662a0c2d9c51b6223348b547974085aab (patch) | |
tree | b8b2a9b6a86286422bb2b7d7b7c314fd17e6bebb /libsieve/tests.c | |
parent | 9136e985d138e95ee5a908534dba4bee29e9d65f (diff) | |
download | mailutils-4ff4ca4662a0c2d9c51b6223348b547974085aab.tar.gz mailutils-4ff4ca4662a0c2d9c51b6223348b547974085aab.tar.bz2 |
(retrieve_header): Unfold the header, use header_aget_field_value_unfold().
Diffstat (limited to 'libsieve/tests.c')
-rw-r--r-- | libsieve/tests.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsieve/tests.c b/libsieve/tests.c index 981f3aeb8..7ce6b3065 100644 --- a/libsieve/tests.c +++ b/libsieve/tests.c @@ -1,5 +1,6 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002, 2003, + 2004 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -166,7 +167,7 @@ retrieve_header (void *item, void *data, int idx, char **pval) int i = hc->index++; if (strcasecmp (buf, (char*)item) == 0) { - if (header_aget_field_value (hc->header, i, pval)) + if (header_aget_field_value_unfold (hc->header, i, pval)) return 1; return 0; } |