Commit 9cd3a9ff 9cd3a9ff906b510d1d1f54e013a45fc8974c9a81 by Sergey Poznyakoff

Minor changes

* NEWS: Reword some passages.
* mail/mail.c: Fix indentation.
* mailbox/folder.c (mu_folder_create): Return meaningful error code.
1 parent 7fb746b5
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
......
......@@ -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)
......
......@@ -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. */
......