summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-08-04 18:20:53 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2009-08-04 18:20:53 +0300
commit9cd3a9ff906b510d1d1f54e013a45fc8974c9a81 (patch)
treeb869ddfaf31d9933b6d4fd6706e68ee72b291467
parent7fb746b5ac15d43e071944c1503dea43ef24d732 (diff)
downloadmailutils-9cd3a9ff906b510d1d1f54e013a45fc8974c9a81.tar.gz
mailutils-9cd3a9ff906b510d1d1f54e013a45fc8974c9a81.tar.bz2
Minor changes
* NEWS: Reword some passages. * mail/mail.c: Fix indentation. * mailbox/folder.c (mu_folder_create): Return meaningful error code.
-rw-r--r--NEWS4
-rw-r--r--mail/mail.c17
-rw-r--r--mailbox/folder.c2
3 files changed, 11 insertions, 12 deletions
diff --git a/NEWS b/NEWS
index 82514b75b..07bbfefa8 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 0d95323df..d633b035a 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 1247fc3d2..d685733fc 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. */

Return to:

Send suggestions and report system problems to the System administrator.