diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-08-04 18:20:53 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-08-04 18:20:53 +0300 |
commit | 9cd3a9ff906b510d1d1f54e013a45fc8974c9a81 (patch) | |
tree | b869ddfaf31d9933b6d4fd6706e68ee72b291467 /mail | |
parent | 7fb746b5ac15d43e071944c1503dea43ef24d732 (diff) | |
download | mailutils-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.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mail.c | 17 |
1 files changed, 8 insertions, 9 deletions
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) |