commit-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mailutils branch, master, updated. mu-1-2-90-separate-argp-cfg


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. mu-1-2-90-separate-argp-cfg-313-g6e40542
Date: Mon, 10 Aug 2009 09:28:55 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".

http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=6e40542e56205ebcaa607db2092076db8287292a

The branch, master has been updated
       via  6e40542e56205ebcaa607db2092076db8287292a (commit)
      from  29b6ab7a115af00e066803ab6fac400bccbcad5f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6e40542e56205ebcaa607db2092076db8287292a
Author: Sergey Poznyakoff <address@hidden>
Date:   Mon Aug 10 12:28:36 2009 +0300

    Minor fixes.
    
    * examples/argcv.c (main): Use fgest instead of getline.
    * mail/decode.c (mime_descend): Use util_get_hdr_value
    which does not cut off the additional arguments after
    the ';'.

-----------------------------------------------------------------------

Summary of changes:
 examples/argcv.c |    7 +++----
 mail/decode.c    |    4 +++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/examples/argcv.c b/examples/argcv.c
index be37e2b..007f62f 100644
--- a/examples/argcv.c
+++ b/examples/argcv.c
@@ -1,5 +1,5 @@
 /* GNU Mailutils -- a suite of utilities for electronic mail
-   Copyright (C) 2005, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc.
 
    GNU Mailutils is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -32,10 +32,10 @@ main(int argc, char **argv)
 {
   char *delim = "";
   char *comment = "#";
-  char *buf = NULL;
+  char buf[512];
   size_t n = 0;
   
-  while (getline (&buf, &n, stdin) > 0)
+  while (fgets (buf, sizeof buf, stdin))
     {
       int status, c;
       char **v;
@@ -57,6 +57,5 @@ main(int argc, char **argv)
        }
       mu_argcv_free (c, v);
     } 
-  free (buf);
   exit (0);
 }
diff --git a/mail/decode.c b/mail/decode.c
index 1b951fb..5de847c 100644
--- a/mail/decode.c
+++ b/mail/decode.c
@@ -173,7 +173,9 @@ mime_descend (struct mime_descend_closure *closure,
   struct mime_descend_closure subclosure;
 
   mu_message_get_header (closure->message, &hdr);
-  util_get_content_type (hdr, &type, NULL);
+  util_get_hdr_value (hdr, MU_HEADER_CONTENT_TYPE, &type);
+  if (type == NULL)
+    type = xstrdup ("text/plain");
   get_content_encoding (hdr, &encoding);
 
   closure->type = type;


hooks/post-receive
-- 
GNU Mailutils




reply via email to

[Prev in Thread] Current Thread [Next in Thread]