summaryrefslogtreecommitdiff
path: root/frm
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 /frm
parent7f2b2ef2e58660dac58860e2bc4f85fa9ce3be83 (diff)
downloadmailutils-1eb15fd2069ed8df6590263ba3e86c79cd99eb85.tar.gz
mailutils-1eb15fd2069ed8df6590263ba3e86c79cd99eb85.tar.bz2
use header_get_value_unfold
Diffstat (limited to 'frm')
-rw-r--r--frm/frm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/frm/frm.c b/frm/frm.c
index f009d989a..904dce9be 100644
--- a/frm/frm.c
+++ b/frm/frm.c
@@ -174,7 +174,7 @@ get_personal (header_t hdr, const char *field, char *personal, size_t buflen)
174 /* Empty string. */ 174 /* Empty string. */
175 *hfield = '\0'; 175 *hfield = '\0';
176 176
177 status = header_get_value (hdr, field, hfield, sizeof (hfield), NULL); 177 status = header_get_value_unfold (hdr, field, hfield, sizeof (hfield), NULL);
178 if (status == 0) 178 if (status == 0)
179 { 179 {
180 address_t address = NULL; 180 address_t address = NULL;
@@ -242,8 +242,8 @@ action (observer_t o, size_t type)
242 if (show_field) 242 if (show_field)
243 { 243 {
244 char hfield[256]; 244 char hfield[256];
245 int status = header_get_value (hdr, show_field, hfield, 245 int status = header_get_value_unfold (hdr, show_field, hfield,
246 sizeof (hfield), NULL); 246 sizeof (hfield), NULL);
247 if (status == 0) 247 if (status == 0)
248 printf ("%s", hfield); 248 printf ("%s", hfield);
249 } 249 }
@@ -272,8 +272,9 @@ action (observer_t o, size_t type)
272 if (show_subject) 272 if (show_subject)
273 { 273 {
274 char hsubject[64]; 274 char hsubject[64];
275 int status = header_get_value (hdr, MU_HEADER_SUBJECT, hsubject, 275 int status = header_get_value_unfold (hdr, MU_HEADER_SUBJECT,
276 sizeof (hsubject), NULL); 276 hsubject,
277 sizeof (hsubject), NULL);
277 if(status == 0) 278 if(status == 0)
278 printf("%s", hsubject); 279 printf("%s", hsubject);
279 } 280 }

Return to:

Send suggestions and report system problems to the System administrator.