(retrieve_header): Unfold the header, use header_aget_field_value_unfold().
Showing
1 changed file
with
3 additions
and
2 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2002, 2003, |
3 | 2004 Free Software Foundation, Inc. | ||
3 | 4 | ||
4 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 6 | 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) | ... | @@ -166,7 +167,7 @@ retrieve_header (void *item, void *data, int idx, char **pval) |
166 | int i = hc->index++; | 167 | int i = hc->index++; |
167 | if (strcasecmp (buf, (char*)item) == 0) | 168 | if (strcasecmp (buf, (char*)item) == 0) |
168 | { | 169 | { |
169 | if (header_aget_field_value (hc->header, i, pval)) | 170 | if (header_aget_field_value_unfold (hc->header, i, pval)) |
170 | return 1; | 171 | return 1; |
171 | return 0; | 172 | return 0; |
172 | } | 173 | } | ... | ... |
-
Please register or sign in to post a comment