Minor changes
* NEWS: Reword some passages. * mail/mail.c: Fix indentation. * mailbox/folder.c (mu_folder_create): Return meaningful error code.
Showing
3 changed files
with
11 additions
and
12 deletions
1 | GNU mailutils NEWS -- history of user-visible changes. 2009-07-13 | 1 | GNU mailutils NEWS -- history of user-visible changes. 2009-08-03 |
2 | Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, | 2 | Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, |
3 | 2008, 2009 Free Software Foundation, Inc. | 3 | 2008, 2009 Free Software Foundation, Inc. |
4 | See the end of file for copying conditions. | 4 | See the end of file for copying conditions. |
... | @@ -55,7 +55,7 @@ first recipient) is implemented. | ... | @@ -55,7 +55,7 @@ first recipient) is implemented. |
55 | 55 | ||
56 | ** struct command | 56 | ** struct command |
57 | 57 | ||
58 | The st[ruct] command allows to list message MIME structures, e.g.: | 58 | The st[ruct] command lists MIME structures of the message or messages, e.g.: |
59 | 59 | ||
60 | & struct 2 | 60 | & struct 2 |
61 | 2[1] text/plain 513 | 61 | 2[1] text/plain 513 | ... | ... |
... | @@ -330,7 +330,7 @@ main (int argc, char **argv) | ... | @@ -330,7 +330,7 @@ main (int argc, char **argv) |
330 | /* Register the desired formats. */ | 330 | /* Register the desired formats. */ |
331 | mu_register_all_formats (); | 331 | mu_register_all_formats (); |
332 | 332 | ||
333 | interactive = isatty (fileno(stdin)); | 333 | interactive = isatty (fileno (stdin)); |
334 | #ifdef HAVE_SIGACTION | 334 | #ifdef HAVE_SIGACTION |
335 | { | 335 | { |
336 | struct sigaction act; | 336 | struct sigaction act; |
... | @@ -351,11 +351,11 @@ main (int argc, char **argv) | ... | @@ -351,11 +351,11 @@ main (int argc, char **argv) |
351 | } | 351 | } |
352 | 352 | ||
353 | /* Set up the default environment */ | 353 | /* Set up the default environment */ |
354 | setenv ("DEAD", util_fullpath("~/dead.letter"), 0); | 354 | setenv ("DEAD", util_fullpath ("~/dead.letter"), 0); |
355 | setenv ("EDITOR", "ed", 0); | 355 | setenv ("EDITOR", "ed", 0); |
356 | setenv ("LISTER", "ls", 0); | 356 | setenv ("LISTER", "ls", 0); |
357 | setenv ("MAILRC", util_fullpath("~/.mailrc"), 0); | 357 | setenv ("MAILRC", util_fullpath ("~/.mailrc"), 0); |
358 | setenv ("MBOX", util_fullpath("~/mbox"), 0); | 358 | setenv ("MBOX", util_fullpath ("~/mbox"), 0); |
359 | setenv ("PAGER", "more", 0); | 359 | setenv ("PAGER", "more", 0); |
360 | setenv ("SHELL", "sh", 0); | 360 | setenv ("SHELL", "sh", 0); |
361 | setenv ("VISUAL", "vi", 0); | 361 | setenv ("VISUAL", "vi", 0); |
... | @@ -363,7 +363,7 @@ main (int argc, char **argv) | ... | @@ -363,7 +363,7 @@ main (int argc, char **argv) |
363 | setenv ("LINES", "24", 0); | 363 | setenv ("LINES", "24", 0); |
364 | 364 | ||
365 | /* set defaults for execution */ | 365 | /* set defaults for execution */ |
366 | for (i = 0; i < sizeof(default_setup)/sizeof(default_setup[0]); i++) | 366 | for (i = 0; i < sizeof (default_setup)/sizeof (default_setup[0]); i++) |
367 | util_do_command (default_setup[i]); | 367 | util_do_command (default_setup[i]); |
368 | util_do_command ("set screen=%d", util_getlines ()); | 368 | util_do_command ("set screen=%d", util_getlines ()); |
369 | util_do_command ("set columns=%d", util_getcols ()); | 369 | util_do_command ("set columns=%d", util_getcols ()); |
... | @@ -425,7 +425,6 @@ main (int argc, char **argv) | ... | @@ -425,7 +425,6 @@ main (int argc, char **argv) |
425 | /* Mode is just sending */ | 425 | /* Mode is just sending */ |
426 | if (strcmp (mode, "send") == 0) | 426 | if (strcmp (mode, "send") == 0) |
427 | { | 427 | { |
428 | /* FIXME: set cmd to "mail [add1...]" */ | ||
429 | char *buf = NULL; | 428 | char *buf = NULL; |
430 | int rc; | 429 | int rc; |
431 | 430 | ||
... | @@ -477,7 +476,7 @@ main (int argc, char **argv) | ... | @@ -477,7 +476,7 @@ main (int argc, char **argv) |
477 | return util_do_command ("from *"); | 476 | return util_do_command ("from *"); |
478 | else if (strcmp (mode, "read")) | 477 | else if (strcmp (mode, "read")) |
479 | { | 478 | { |
480 | util_error(_("Unknown mode `%s'"), mode); | 479 | util_error (_("Unknown mode `%s'"), mode); |
481 | util_do_command ("quit"); | 480 | util_do_command ("quit"); |
482 | return 1; | 481 | return 1; |
483 | } | 482 | } |
... | @@ -519,7 +518,7 @@ mail_mainloop (char *(*input) (void *, int), | ... | @@ -519,7 +518,7 @@ mail_mainloop (char *(*input) (void *, int), |
519 | { | 518 | { |
520 | char *command, *cmd; | 519 | char *command, *cmd; |
521 | 520 | ||
522 | while ((command = (*input)(closure, 0)) != NULL) | 521 | while ((command = (*input) (closure, 0)) != NULL) |
523 | { | 522 | { |
524 | int len = strlen (command); | 523 | int len = strlen (command); |
525 | while (command[len-1] == '\\') | 524 | while (command[len-1] == '\\') |
... | @@ -543,7 +542,7 @@ mail_mainloop (char *(*input) (void *, int), | ... | @@ -543,7 +542,7 @@ mail_mainloop (char *(*input) (void *, int), |
543 | cmd = mu_str_stripws (command); | 542 | cmd = mu_str_stripws (command); |
544 | util_do_command ("%s", cmd); | 543 | util_do_command ("%s", cmd); |
545 | #ifdef WITH_READLINE | 544 | #ifdef WITH_READLINE |
546 | if (do_history && !(mu_isspace(cmd[0]) || cmd[0] == '#')) | 545 | if (do_history && !(mu_isspace (cmd[0]) || cmd[0] == '#')) |
547 | add_history (cmd); | 546 | add_history (cmd); |
548 | #endif | 547 | #endif |
549 | if (command) | 548 | if (command) | ... | ... |
... | @@ -158,7 +158,7 @@ mu_folder_create (mu_folder_t *pfolder, const char *name) | ... | @@ -158,7 +158,7 @@ mu_folder_create (mu_folder_t *pfolder, const char *name) |
158 | rc = mu_folder_create_from_record (pfolder, url, NULL); | 158 | rc = mu_folder_create_from_record (pfolder, url, NULL); |
159 | if (rc) | 159 | if (rc) |
160 | mu_url_destroy (&url); | 160 | mu_url_destroy (&url); |
161 | return 0; | 161 | return rc; |
162 | } | 162 | } |
163 | 163 | ||
164 | /* The folder is destroy if it is the last reference. */ | 164 | /* The folder is destroy if it is the last reference. */ | ... | ... |
-
Please register or sign in to post a comment