summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-08-07 08:53:27 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-08-07 08:53:27 +0000
commit1eb15fd2069ed8df6590263ba3e86c79cd99eb85 (patch)
tree8ecf8f23d585e006d282a1f458965f147a8daf72
parent7f2b2ef2e58660dac58860e2bc4f85fa9ce3be83 (diff)
downloadmailutils-1eb15fd2069ed8df6590263ba3e86c79cd99eb85.tar.gz
mailutils-1eb15fd2069ed8df6590263ba3e86c79cd99eb85.tar.bz2
use header_get_value_unfold
-rw-r--r--frm/frm.c11
-rw-r--r--mail/from.c4
2 files changed, 8 insertions, 7 deletions
diff --git a/frm/frm.c b/frm/frm.c
index f009d989a..904dce9be 100644
--- a/frm/frm.c
+++ b/frm/frm.c
@@ -176,3 +176,3 @@ get_personal (header_t hdr, const char *field, char *personal, size_t buflen)
- status = header_get_value (hdr, field, hfield, sizeof (hfield), NULL);
+ status = header_get_value_unfold (hdr, field, hfield, sizeof (hfield), NULL);
if (status == 0)
@@ -244,4 +244,4 @@ action (observer_t o, size_t type)
char hfield[256];
- int status = header_get_value (hdr, show_field, hfield,
- sizeof (hfield), NULL);
+ int status = header_get_value_unfold (hdr, show_field, hfield,
+ sizeof (hfield), NULL);
if (status == 0)
@@ -274,4 +274,5 @@ action (observer_t o, size_t type)
char hsubject[64];
- int status = header_get_value (hdr, MU_HEADER_SUBJECT, hsubject,
- sizeof (hsubject), NULL);
+ int status = header_get_value_unfold (hdr, MU_HEADER_SUBJECT,
+ hsubject,
+ sizeof (hsubject), NULL);
if(status == 0)
diff --git a/mail/from.c b/mail/from.c
index 0e2f6e90e..805b783ed 100644
--- a/mail/from.c
+++ b/mail/from.c
@@ -40,3 +40,3 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data)
message_get_header (msg, &hdr);
- if (header_aget_value (hdr, MU_HEADER_FROM, &from) == 0)
+ if (header_aget_value_unfold (hdr, MU_HEADER_FROM, &from) == 0)
{
@@ -59,3 +59,3 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data)
}
- header_aget_value (hdr, MU_HEADER_SUBJECT, &subj);
+ header_aget_value_unfold (hdr, MU_HEADER_SUBJECT, &subj);

Return to:

Send suggestions and report system problems to the System administrator.