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-302-g9cd3a9f
Date: Tue, 04 Aug 2009 15:21:03 +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=9cd3a9ff906b510d1d1f54e013a45fc8974c9a81

The branch, master has been updated
       via  9cd3a9ff906b510d1d1f54e013a45fc8974c9a81 (commit)
      from  7fb746b5ac15d43e071944c1503dea43ef24d732 (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 9cd3a9ff906b510d1d1f54e013a45fc8974c9a81
Author: Sergey Poznyakoff <address@hidden>
Date:   Tue Aug 4 18:20:53 2009 +0300

    Minor changes
    
    * NEWS: Reword some passages.
    * mail/mail.c: Fix indentation.
    * mailbox/folder.c (mu_folder_create): Return meaningful error code.

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

Summary of changes:
 NEWS             |    4 ++--
 mail/mail.c      |   17 ++++++++---------
 mailbox/folder.c |    2 +-
 3 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/NEWS b/NEWS
index 82514b7..07bbfef 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU mailutils NEWS -- history of user-visible changes. 2009-07-13
+GNU mailutils NEWS -- history of user-visible changes. 2009-08-03
 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 
 2008, 2009 Free Software Foundation, Inc.
 See the end of file for copying conditions.
@@ -55,7 +55,7 @@ first recipient) is implemented.
 
 ** struct command
 
-The st[ruct] command allows to list message MIME structures, e.g.:
+The st[ruct] command lists MIME structures of the message or messages, e.g.:
 
 & struct 2
 2[1]  text/plain                 513
diff --git a/mail/mail.c b/mail/mail.c
index 0d95323..d633b03 100644
--- a/mail/mail.c
+++ b/mail/mail.c
@@ -330,7 +330,7 @@ main (int argc, char **argv)
   /* Register the desired formats.  */
   mu_register_all_formats ();
 
-  interactive = isatty (fileno(stdin));
+  interactive = isatty (fileno (stdin));
 #ifdef HAVE_SIGACTION
   {
     struct sigaction act;
@@ -351,11 +351,11 @@ main (int argc, char **argv)
     }
 
   /* Set up the default environment */
-  setenv ("DEAD", util_fullpath("~/dead.letter"), 0);
+  setenv ("DEAD", util_fullpath ("~/dead.letter"), 0);
   setenv ("EDITOR", "ed", 0);
   setenv ("LISTER", "ls", 0);
-  setenv ("MAILRC", util_fullpath("~/.mailrc"), 0);
-  setenv ("MBOX", util_fullpath("~/mbox"), 0);
+  setenv ("MAILRC", util_fullpath ("~/.mailrc"), 0);
+  setenv ("MBOX", util_fullpath ("~/mbox"), 0);
   setenv ("PAGER", "more", 0);
   setenv ("SHELL", "sh", 0);
   setenv ("VISUAL", "vi", 0);
@@ -363,7 +363,7 @@ main (int argc, char **argv)
   setenv ("LINES", "24", 0);
 
   /* set defaults for execution */
-  for (i = 0; i < sizeof(default_setup)/sizeof(default_setup[0]); i++)
+  for (i = 0; i < sizeof (default_setup)/sizeof (default_setup[0]); i++)
     util_do_command (default_setup[i]);
   util_do_command ("set screen=%d", util_getlines ());
   util_do_command ("set columns=%d", util_getcols ());
@@ -425,7 +425,6 @@ main (int argc, char **argv)
   /* Mode is just sending */
   if (strcmp (mode, "send") == 0)
     {
-      /* FIXME: set cmd to "mail [add1...]" */
       char *buf = NULL;
       int rc;
 
@@ -477,7 +476,7 @@ main (int argc, char **argv)
            return util_do_command ("from *");
          else if (strcmp (mode, "read"))
            {
-             util_error(_("Unknown mode `%s'"), mode);
+             util_error (_("Unknown mode `%s'"), mode);
              util_do_command ("quit");
              return 1;
            }
@@ -519,7 +518,7 @@ mail_mainloop (char *(*input) (void *, int),
 {
   char *command, *cmd;
 
-  while ((command = (*input)(closure, 0)) != NULL)
+  while ((command = (*input) (closure, 0)) != NULL)
     {
       int len = strlen (command);
       while (command[len-1] == '\\')
@@ -543,7 +542,7 @@ mail_mainloop (char *(*input) (void *, int),
       cmd = mu_str_stripws (command);
       util_do_command ("%s", cmd);
 #ifdef WITH_READLINE
-      if (do_history && !(mu_isspace(cmd[0]) || cmd[0] == '#'))
+      if (do_history && !(mu_isspace (cmd[0]) || cmd[0] == '#'))
        add_history (cmd);
 #endif
       if (command)
diff --git a/mailbox/folder.c b/mailbox/folder.c
index 1247fc3..d685733 100644
--- a/mailbox/folder.c
+++ b/mailbox/folder.c
@@ -158,7 +158,7 @@ mu_folder_create (mu_folder_t *pfolder, const char *name)
     rc = mu_folder_create_from_record (pfolder, url, NULL);
   if (rc)
     mu_url_destroy (&url);
-  return 0;
+  return rc;
 }
 
 /* The folder is destroy if it is the last reference.  */


hooks/post-receive
-- 
GNU Mailutils




reply via email to

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