Commit 4ff4ca46 4ff4ca4662a0c2d9c51b6223348b547974085aab by Wojciech Polak

(retrieve_header): Unfold the header, use header_aget_field_value_unfold().

1 parent 9136e985
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 }
......