diff options
-rw-r--r-- | frm/frm.c | 26 | ||||
-rw-r--r-- | from/from.c | 2 |
2 files changed, 16 insertions, 12 deletions
@@ -250,2 +250,3 @@ action (observer_t o, size_t type) static int counter; + int status; @@ -298,4 +299,4 @@ action (observer_t o, size_t type) char hfield[256]; - int status = header_get_value_unfold (hdr, show_field, hfield, - sizeof (hfield), NULL); + status = header_get_value_unfold (hdr, show_field, hfield, + sizeof (hfield), NULL); if (status == 0) @@ -307,3 +308,4 @@ action (observer_t o, size_t type) char hto[16]; - int status = get_personal (hdr, MU_HEADER_TO, hto, sizeof (hto)); + status = get_personal (hdr, MU_HEADER_TO, hto, sizeof (hto)); + if (status == 0) @@ -317,4 +319,4 @@ action (observer_t o, size_t type) char hfrom[32]; - int status = get_personal (hdr, MU_HEADER_FROM, hfrom, - sizeof (hfrom)); + status = get_personal (hdr, MU_HEADER_FROM, hfrom, + sizeof (hfrom)); if (status == 0) @@ -328,8 +330,10 @@ action (observer_t o, size_t type) char hsubject[64]; - int status = header_get_value_unfold (hdr, MU_HEADER_SUBJECT, - hsubject, - sizeof (hsubject), NULL); - frm_rfc2047_decode (hsubject, sizeof (hsubject)); - if(status == 0) - printf ("%s", hsubject); + status = header_get_value_unfold (hdr, MU_HEADER_SUBJECT, + hsubject, + sizeof (hsubject), NULL); + if (status == 0) + { + frm_rfc2047_decode (hsubject, sizeof (hsubject)); + printf ("%s", hsubject); + } } diff --git a/from/from.c b/from/from.c index 3579b3d58..bf5376e70 100644 --- a/from/from.c +++ b/from/from.c @@ -199,3 +199,3 @@ main (int argc, char **argv) { - mu_error (_("msg %d : %s\n"), i, mu_strerror (status)); + mu_error (_("msg %d : %s"), i, mu_strerror (status)); exit (2); |