Commit b944f483 b944f483f908502d74f6444326ba480a9b30ffbe by Wojciech Polak

Added NLS (guimb/imap4d/mailutils-config/sieve)

1 parent 50f245bf
1 2002-12-24 Wojciech Polak <polak@gnu.org>
2
3 * po/POTFILES.in: Updated.
4 * imap4d/*: Added NLS.
5 * guimb/*: Likewise.
6 * sieve/sieve.c: Likewise.
7
1 2002-12-23 Wojciech Polak <polak@gnu.org> 8 2002-12-23 Wojciech Polak <polak@gnu.org>
2 9
3 * po/: New directory. 10 * po/: New directory.
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #include "guimb.h" 18 #include "guimb.h"
...@@ -31,14 +31,14 @@ collect_open_default () ...@@ -31,14 +31,14 @@ collect_open_default ()
31 asprintf (&default_mailbox, "%s%s", mu_path_maildir, user_name); 31 asprintf (&default_mailbox, "%s%s", mu_path_maildir, user_name);
32 if (!default_mailbox) 32 if (!default_mailbox)
33 { 33 {
34 util_error ("not enough memory"); 34 util_error (_("not enough memory"));
35 exit (1); 35 exit (1);
36 } 36 }
37 } 37 }
38 if (mailbox_create (&mbox, default_mailbox) != 0 38 if (mailbox_create (&mbox, default_mailbox) != 0
39 || mailbox_open (mbox, MU_STREAM_RDWR) != 0) 39 || mailbox_open (mbox, MU_STREAM_RDWR) != 0)
40 { 40 {
41 util_error ("can't open default mailbox %s: %s", 41 util_error (_("can't open default mailbox %s: %s"),
42 default_mailbox, mu_errstring (errno)); 42 default_mailbox, mu_errstring (errno));
43 exit (1); 43 exit (1);
44 } 44 }
...@@ -82,7 +82,7 @@ collect_append_file (char *name) ...@@ -82,7 +82,7 @@ collect_append_file (char *name)
82 fp = fopen (name, "r"); 82 fp = fopen (name, "r");
83 if (!fp) 83 if (!fp)
84 { 84 {
85 util_error ("can't open input file %s: %s", name, strerror (errno)); 85 util_error (_("can't open input file %s: %s"), name, strerror (errno));
86 return -1; 86 return -1;
87 } 87 }
88 } 88 }
...@@ -110,7 +110,7 @@ collect_create_mailbox () ...@@ -110,7 +110,7 @@ collect_create_mailbox ()
110 if (mailbox_create (&mbox, temp_filename) != 0 110 if (mailbox_create (&mbox, temp_filename) != 0
111 || mailbox_open (mbox, MU_STREAM_READ) != 0) 111 || mailbox_open (mbox, MU_STREAM_READ) != 0)
112 { 112 {
113 util_error ("can't create temp mailbox %s: %s", 113 util_error (_("can't create temp mailbox %s: %s"),
114 temp_filename, strerror (errno)); 114 temp_filename, strerror (errno));
115 unlink (temp_filename); 115 unlink (temp_filename);
116 exit (1); 116 exit (1);
...@@ -121,7 +121,7 @@ collect_create_mailbox () ...@@ -121,7 +121,7 @@ collect_create_mailbox ()
121 121
122 if (nmesg == 0) 122 if (nmesg == 0)
123 { 123 {
124 util_error ("input format not recognized"); 124 util_error (_("input format not recognized"));
125 exit (1); 125 exit (1);
126 } 126 }
127 } 127 }
...@@ -146,7 +146,7 @@ collect_output () ...@@ -146,7 +146,7 @@ collect_output ()
146 || mailbox_open (outbox, MU_STREAM_RDWR|MU_STREAM_CREAT) != 0) 146 || mailbox_open (outbox, MU_STREAM_RDWR|MU_STREAM_CREAT) != 0)
147 { 147 {
148 mailbox_destroy (&outbox); 148 mailbox_destroy (&outbox);
149 fprintf (stderr, "guimb: can't open output mailbox %s: %s\n", 149 fprintf (stderr, _("guimb: can't open output mailbox %s: %s\n"),
150 default_mailbox, strerror (errno)); 150 default_mailbox, strerror (errno));
151 return 1; 151 return 1;
152 } 152 }
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #if defined(HAVE_CONFIG_H) 18 #if defined(HAVE_CONFIG_H)
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
35 #include <mailutils/error.h> 35 #include <mailutils/error.h>
36 #include <mailutils/address.h> 36 #include <mailutils/address.h>
37 #include <mailutils/registrar.h> 37 #include <mailutils/registrar.h>
38 #include <mailutils/nls.h>
38 #include <mu_asprintf.h> 39 #include <mu_asprintf.h>
39 40
40 #include <libguile.h> 41 #include <libguile.h>
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #include "guimb.h" 18 #include "guimb.h"
...@@ -42,7 +42,7 @@ append_arg (char *arg) ...@@ -42,7 +42,7 @@ append_arg (char *arg)
42 g_argv = realloc (g_argv, g_size * sizeof (g_argv[0])); 42 g_argv = realloc (g_argv, g_size * sizeof (g_argv[0]));
43 if (!g_argv) 43 if (!g_argv)
44 { 44 {
45 util_error ("not enough memory"); 45 util_error (_("not enough memory"));
46 exit (1); 46 exit (1);
47 } 47 }
48 } 48 }
...@@ -51,23 +51,23 @@ append_arg (char *arg) ...@@ -51,23 +51,23 @@ append_arg (char *arg)
51 51
52 static struct argp_option options[] = { 52 static struct argp_option options[] = {
53 {NULL, 0, NULL, 0, 53 {NULL, 0, NULL, 0,
54 "The following switches stop argument processing, and pass all\n" 54 N_("The following switches stop argument processing, and pass all\n"
55 "remaining arguments as the value of (command-line):", 1}, 55 "remaining arguments as the value of (command-line):"), 1},
56 {"code", 'c', "EXPR", 0, "Execute given scheme expression.", 1}, 56 {"code", 'c', "EXPR", 0, N_("Execute given scheme expression."), 1},
57 {"source", 's', "PROGFILE", 0, 57 {"source", 's', "PROGFILE", 0,
58 "Load Scheme source code from PROGFILE, and exit", 1}, 58 N_("Load Scheme source code from PROGFILE, and exit"), 1},
59 {NULL, 0, NULL, 0, 59 {NULL, 0, NULL, 0,
60 "The following options do not change the order of options parsing:", 2}, 60 N_("The following options do not change the order of options parsing:"), 2},
61 {"expression", 'e', "EXPR", 0, "Execute given scheme expression.", 2}, 61 {"expression", 'e', "EXPR", 0, N_("Execute given scheme expression."), 2},
62 {"file", 'f', "PROGFILE", 0, 62 {"file", 'f', "PROGFILE", 0,
63 "Load Scheme source code from PROGFILE, and exit", 2}, 63 N_("Load Scheme source code from PROGFILE, and exit"), 2},
64 {NULL, 0, NULL, 0, "Other options:", 3}, 64 {NULL, 0, NULL, 0, N_("Other options:"), 3},
65 {"debug", 'd', NULL, 0, "Start with debugging evaluator and backtraces.", 3}, 65 {"debug", 'd', NULL, 0, N_("Start with debugging evaluator and backtraces."), 3},
66 {"guile-arg", 'g', "ARG", 0, 66 {"guile-arg", 'g', "ARG", 0,
67 "Append ARG to the command line passed to Guile", 3}, 67 N_("Append ARG to the command line passed to Guile"), 3},
68 {"mailbox", 'M', "NAME", 0, "Set default mailbox name", 3}, 68 {"mailbox", 'M', "NAME", 0, N_("Set default mailbox name"), 3},
69 {"user", 'u', "NAME", OPTION_ARG_OPTIONAL, 69 {"user", 'u', "NAME", OPTION_ARG_OPTIONAL,
70 "Act as local MDA for user NAME", 3}, 70 N_("Act as local MDA for user NAME"), 3},
71 {0, 0, 0, 0} 71 {0, 0, 0, 0}
72 }; 72 };
73 73
...@@ -120,9 +120,9 @@ parse_opt (int key, char *arg, struct argp_state *state) ...@@ -120,9 +120,9 @@ parse_opt (int key, char *arg, struct argp_state *state)
120 120
121 const char *argp_program_version = "guimb (" PACKAGE_STRING ")"; 121 const char *argp_program_version = "guimb (" PACKAGE_STRING ")";
122 static char doc[] = 122 static char doc[] =
123 "GNU guimb -- Process the contents of the specified mailboxes\n" 123 N_("GNU guimb -- Process the contents of the specified mailboxes\n"
124 "using a Scheme program or expression."; 124 "using a Scheme program or expression.");
125 static char args_doc[] = "[mailbox...]"; 125 static char args_doc[] = N_("[mailbox...]");
126 126
127 static struct argp argp = { 127 static struct argp argp = {
128 options, 128 options,
...@@ -147,6 +147,9 @@ main (int argc, char *argv[]) ...@@ -147,6 +147,9 @@ main (int argc, char *argv[])
147 guimb_param_t param; 147 guimb_param_t param;
148 struct guimb_data gd; 148 struct guimb_data gd;
149 149
150 /* Native Language Support */
151 mu_init_nls ();
152
150 append_arg (""); 153 append_arg ("");
151 mu_argp_parse (&argp, &argc, &argv, 0, guimb_argp_capa, NULL, &c); 154 mu_argp_parse (&argp, &argc, &argv, 0, guimb_argp_capa, NULL, &c);
152 155
...@@ -160,7 +163,7 @@ main (int argc, char *argv[]) ...@@ -160,7 +163,7 @@ main (int argc, char *argv[])
160 g_argv[0] = program_file; 163 g_argv[0] = program_file;
161 else if (!program_expr) 164 else if (!program_expr)
162 { 165 {
163 mu_error ("At least one of -fecs must be used. Try guimb --help for more info"); 166 mu_error (_("At least one of -fecs must be used. Try guimb --help for more info."));
164 exit (0); 167 exit (0);
165 } 168 }
166 169
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #include "guimb.h" 18 #include "guimb.h"
...@@ -47,14 +47,14 @@ util_get_sender (int msgno) ...@@ -47,14 +47,14 @@ util_get_sender (int msgno)
47 if (envelope_sender (env, buffer, sizeof (buffer), NULL) 47 if (envelope_sender (env, buffer, sizeof (buffer), NULL)
48 || address_create (&addr, buffer)) 48 || address_create (&addr, buffer))
49 { 49 {
50 util_error ("can't determine sender name (msg %d)", msgno); 50 util_error (_("can't determine sender name (msg %d)"), msgno);
51 return NULL; 51 return NULL;
52 } 52 }
53 } 53 }
54 54
55 if (address_get_email (addr, 1, buffer, sizeof (buffer), NULL)) 55 if (address_get_email (addr, 1, buffer, sizeof (buffer), NULL))
56 { 56 {
57 util_error ("can't determine sender name (msg %d)", msgno); 57 util_error (_("can't determine sender name (msg %d)"), msgno);
58 address_destroy (&addr); 58 address_destroy (&addr);
59 return NULL; 59 return NULL;
60 } 60 }
...@@ -62,3 +62,4 @@ util_get_sender (int msgno) ...@@ -62,3 +62,4 @@ util_get_sender (int msgno)
62 address_destroy (&addr); 62 address_destroy (&addr);
63 return strdup (buffer); 63 return strdup (buffer);
64 } 64 }
65
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 /* GSSAPI authentication for imap (rfc 1731). 18 /* GSSAPI authentication for imap (rfc 1731).
...@@ -49,7 +49,7 @@ display_status_1 (char *m, OM_uint32 code, int type) ...@@ -49,7 +49,7 @@ display_status_1 (char *m, OM_uint32 code, int type)
49 type, GSS_C_NULL_OID, 49 type, GSS_C_NULL_OID,
50 &msg_ctx, &msg); 50 &msg_ctx, &msg);
51 syslog (LOG_ERR, 51 syslog (LOG_ERR,
52 "GSS-API error %s: %s\n", m, 52 _("GSS-API error %s: %s\n"), m,
53 (char *)msg.value); 53 (char *)msg.value);
54 gss_release_buffer (&min_stat, &msg); 54 gss_release_buffer (&min_stat, &msg);
55 } 55 }
...@@ -220,7 +220,7 @@ auth_gssapi (struct imap4d_command *command, char **username) ...@@ -220,7 +220,7 @@ auth_gssapi (struct imap4d_command *command, char **username)
220 if ((mech & SUPPORTED_P_MECH) == 0) 220 if ((mech & SUPPORTED_P_MECH) == 0)
221 { 221 {
222 syslog (LOG_NOTICE, 222 syslog (LOG_NOTICE,
223 "client requested unsupported protection mechanism (%d)", 223 _("client requested unsupported protection mechanism (%d)"),
224 mech); 224 mech);
225 gss_release_buffer (&min_stat, &outbuf); 225 gss_release_buffer (&min_stat, &outbuf);
226 maj_stat = gss_delete_sec_context (&min_stat, &context, &outbuf); 226 maj_stat = gss_delete_sec_context (&min_stat, &context, &outbuf);
...@@ -250,7 +250,7 @@ auth_gssapi (struct imap4d_command *command, char **username) ...@@ -250,7 +250,7 @@ auth_gssapi (struct imap4d_command *command, char **username)
250 250
251 if (imap4d_gss_userok (&client_name, *username)) 251 if (imap4d_gss_userok (&client_name, *username))
252 { 252 {
253 syslog (LOG_NOTICE, "GSSAPI user %s is NOT authorized as %s", 253 syslog (LOG_NOTICE, _("GSSAPI user %s is NOT authorized as %s"),
254 (char *) client_name.value, *username); 254 (char *) client_name.value, *username);
255 util_finish (command, RESP_NO, 255 util_finish (command, RESP_NO,
256 "GSSAPI user %s is NOT authorized as %s", 256 "GSSAPI user %s is NOT authorized as %s",
...@@ -263,7 +263,7 @@ auth_gssapi (struct imap4d_command *command, char **username) ...@@ -263,7 +263,7 @@ auth_gssapi (struct imap4d_command *command, char **username)
263 } 263 }
264 else 264 else
265 { 265 {
266 syslog (LOG_NOTICE, "GSSAPI user %s is authorized as %s", 266 syslog (LOG_NOTICE, _("GSSAPI user %s is authorized as %s"),
267 (char *) client_name.value, *username); 267 (char *) client_name.value, *username);
268 } 268 }
269 269
......
...@@ -71,7 +71,7 @@ imap4d_authenticate (struct imap4d_command *command, char *arg) ...@@ -71,7 +71,7 @@ imap4d_authenticate (struct imap4d_command *command, char *arg)
71 /* FIXME: Check for errors. */ 71 /* FIXME: Check for errors. */
72 chdir (homedir); 72 chdir (homedir);
73 namespace_init (homedir); 73 namespace_init (homedir);
74 syslog (LOG_INFO, "User '%s' logged in", username); 74 syslog (LOG_INFO, _("User '%s' logged in"), username);
75 return 0; 75 return 0;
76 } 76 }
77 77
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 18
...@@ -40,39 +40,39 @@ imap4d_bye0 (int reason, struct imap4d_command *command) ...@@ -40,39 +40,39 @@ imap4d_bye0 (int reason, struct imap4d_command *command)
40 { 40 {
41 case ERR_NO_MEM: 41 case ERR_NO_MEM:
42 util_out (RESP_BYE, "Server terminating no more resources."); 42 util_out (RESP_BYE, "Server terminating no more resources.");
43 syslog (LOG_ERR, "Out of memory"); 43 syslog (LOG_ERR, _("Out of memory"));
44 break; 44 break;
45 45
46 case ERR_SIGNAL: 46 case ERR_SIGNAL:
47 if (ofile) 47 if (ofile)
48 util_out (RESP_BYE, "Quitting on signal"); 48 util_out (RESP_BYE, "Quitting on signal");
49 syslog (LOG_ERR, "Quitting on signal"); 49 syslog (LOG_ERR, _("Quitting on signal"));
50 break; 50 break;
51 51
52 case ERR_TIMEOUT: 52 case ERR_TIMEOUT:
53 util_out (RESP_BYE, "Session timed out"); 53 util_out (RESP_BYE, "Session timed out");
54 if (state == STATE_NONAUTH) 54 if (state == STATE_NONAUTH)
55 syslog (LOG_INFO, "Session timed out for no user"); 55 syslog (LOG_INFO, _("Session timed out for no user"));
56 else 56 else
57 syslog (LOG_INFO, "Session timed out for user: %s", auth_data->name); 57 syslog (LOG_INFO, _("Session timed out for user: %s"), auth_data->name);
58 break; 58 break;
59 59
60 case ERR_NO_OFILE: 60 case ERR_NO_OFILE:
61 syslog (LOG_INFO, "No socket to send to"); 61 syslog (LOG_INFO, _("No socket to send to"));
62 break; 62 break;
63 63
64 case OK: 64 case OK:
65 util_out (RESP_BYE, "Session terminating."); 65 util_out (RESP_BYE, "Session terminating.");
66 if (state == STATE_NONAUTH) 66 if (state == STATE_NONAUTH)
67 syslog (LOG_INFO, "Session terminating"); 67 syslog (LOG_INFO, _("Session terminating"));
68 else 68 else
69 syslog (LOG_INFO, "Session terminating for user: %s", auth_data->name); 69 syslog (LOG_INFO, _("Session terminating for user: %s"), auth_data->name);
70 status = EXIT_SUCCESS; 70 status = EXIT_SUCCESS;
71 break; 71 break;
72 72
73 default: 73 default:
74 util_out (RESP_BYE, "Quitting (reason unknown)"); 74 util_out (RESP_BYE, "Quitting (reason unknown)");
75 syslog (LOG_ERR, "Unknown quit"); 75 syslog (LOG_ERR, _("Unknown quit"));
76 break; 76 break;
77 } 77 }
78 78
...@@ -82,4 +82,3 @@ imap4d_bye0 (int reason, struct imap4d_command *command) ...@@ -82,4 +82,3 @@ imap4d_bye0 (int reason, struct imap4d_command *command)
82 exit (status); 82 exit (status);
83 } 83 }
84 84
85
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #include "imap4d.h" 18 #include "imap4d.h"
...@@ -37,14 +37,14 @@ struct daemon_param daemon_param = { ...@@ -37,14 +37,14 @@ struct daemon_param daemon_param = {
37 volatile size_t children; 37 volatile size_t children;
38 38
39 const char *argp_program_version = "imap4d (" PACKAGE_STRING ")"; 39 const char *argp_program_version = "imap4d (" PACKAGE_STRING ")";
40 static char doc[] = "GNU imap4d -- the IMAP4D daemon"; 40 static char doc[] = N_("GNU imap4d -- the IMAP4D daemon");
41 41
42 static struct argp_option options[] = 42 static struct argp_option options[] =
43 { 43 {
44 {"other-namespace", 'O', "PATHLIST", 0, 44 {"other-namespace", 'O', "PATHLIST", 0,
45 "set the `other' namespace", 0}, 45 N_("set the `other' namespace"), 0},
46 {"shared-namespace", 'S', "PATHLIST", 0, 46 {"shared-namespace", 'S', "PATHLIST", 0,
47 "set the `shared' namespace", 0}, 47 N_("set the `shared' namespace"), 0},
48 { NULL, 0, NULL, 0, NULL, 0 } 48 { NULL, 0, NULL, 0, NULL, 0 }
49 }; 49 };
50 50
...@@ -103,6 +103,9 @@ main (int argc, char **argv) ...@@ -103,6 +103,9 @@ main (int argc, char **argv)
103 struct group *gr; 103 struct group *gr;
104 int status = EXIT_SUCCESS; 104 int status = EXIT_SUCCESS;
105 105
106 /* Native Language Support */
107 mu_init_nls ();
108
106 state = STATE_NONAUTH; /* Starting state in non-auth. */ 109 state = STATE_NONAUTH; /* Starting state in non-auth. */
107 110
108 MU_AUTH_REGISTER_ALL_MODULES(); 111 MU_AUTH_REGISTER_ALL_MODULES();
...@@ -125,13 +128,13 @@ main (int argc, char **argv) ...@@ -125,13 +128,13 @@ main (int argc, char **argv)
125 gr = getgrnam ("mail"); 128 gr = getgrnam ("mail");
126 if (gr == NULL) 129 if (gr == NULL)
127 { 130 {
128 perror ("Error getting mail group"); 131 perror (_("Error getting mail group"));
129 exit (1); 132 exit (1);
130 } 133 }
131 134
132 if (setgid (gr->gr_gid) == -1) 135 if (setgid (gr->gr_gid) == -1)
133 { 136 {
134 perror ("Error setting mail group"); 137 perror (_("Error setting mail group"));
135 exit (1); 138 exit (1);
136 } 139 }
137 } 140 }
...@@ -210,17 +213,17 @@ imap4d_mainloop (int infile, int outfile) ...@@ -210,17 +213,17 @@ imap4d_mainloop (int infile, int outfile)
210 struct sockaddr_in cs; 213 struct sockaddr_in cs;
211 int len = sizeof cs; 214 int len = sizeof cs;
212 215
213 syslog (LOG_INFO, "Incoming connection opened"); 216 syslog (LOG_INFO, _("Incoming connection opened"));
214 if (getpeername (infile, (struct sockaddr*)&cs, &len) < 0) 217 if (getpeername (infile, (struct sockaddr*)&cs, &len) < 0)
215 syslog (LOG_ERR, "can't obtain IP address of client: %s", 218 syslog (LOG_ERR, _("can't obtain IP address of client: %s"),
216 strerror (errno)); 219 strerror (errno));
217 else 220 else
218 syslog (LOG_INFO, "connect from %s", inet_ntoa(cs.sin_addr)); 221 syslog (LOG_INFO, _("connect from %s"), inet_ntoa(cs.sin_addr));
219 text = "IMAP4rev1"; 222 text = "IMAP4rev1";
220 } 223 }
221 else 224 else
222 { 225 {
223 syslog (LOG_INFO, "Started in debugging mode"); 226 syslog (LOG_INFO, _("Started in debugging mode"));
224 text = "IMAP4rev1 Debugging mode"; 227 text = "IMAP4rev1 Debugging mode";
225 } 228 }
226 229
...@@ -253,7 +256,7 @@ imap4d_daemon_init (void) ...@@ -253,7 +256,7 @@ imap4d_daemon_init (void)
253 first three one, in, out, err */ 256 first three one, in, out, err */
254 if (daemon (0, 0) < 0) 257 if (daemon (0, 0) < 0)
255 { 258 {
256 perror("fork failed:"); 259 perror(_("fork failed:"));
257 exit (1); 260 exit (1);
258 } 261 }
259 262
...@@ -313,7 +316,7 @@ imap4d_daemon (unsigned int maxchildren, unsigned int port) ...@@ -313,7 +316,7 @@ imap4d_daemon (unsigned int maxchildren, unsigned int port)
313 { 316 {
314 if (children > maxchildren) 317 if (children > maxchildren)
315 { 318 {
316 syslog (LOG_ERR, "too many children (%lu)", 319 syslog (LOG_ERR, _("too many children (%lu)"),
317 (unsigned long) children); 320 (unsigned long) children);
318 pause (); 321 pause ();
319 continue; 322 continue;
...@@ -347,5 +350,3 @@ imap4d_daemon (unsigned int maxchildren, unsigned int port) ...@@ -347,5 +350,3 @@ imap4d_daemon (unsigned int maxchildren, unsigned int port)
347 } 350 }
348 } 351 }
349 352
350
351
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifndef _IMAP4D_H 18 #ifndef _IMAP4D_H
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
87 #include <mailutils/stream.h> 87 #include <mailutils/stream.h>
88 #include <mailutils/mu_auth.h> 88 #include <mailutils/mu_auth.h>
89 #include <mailutils/url.h> 89 #include <mailutils/url.h>
90 #include <mailutils/nls.h>
90 91
91 #ifdef __cplusplus 92 #ifdef __cplusplus
92 extern "C" { 93 extern "C" {
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #include "imap4d.h" 18 #include "imap4d.h"
...@@ -243,7 +243,7 @@ list_file (const char *cwd, const char *ref, const char *pattern, ...@@ -243,7 +243,7 @@ list_file (const char *cwd, const char *ref, const char *pattern,
243 243
244 if (stat (entry, &st)) 244 if (stat (entry, &st))
245 { 245 {
246 mu_error ("can't stat %s: %s", 246 mu_error (_("can't stat %s: %s"),
247 entry, strerror (errno)); 247 entry, strerror (errno));
248 continue; 248 continue;
249 } 249 }
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #include "imap4d.h" 18 #include "imap4d.h"
...@@ -39,7 +39,7 @@ imap4d_login (struct imap4d_command *command, char *arg) ...@@ -39,7 +39,7 @@ imap4d_login (struct imap4d_command *command, char *arg)
39 39
40 if (auth_data == NULL) 40 if (auth_data == NULL)
41 { 41 {
42 syslog (LOG_INFO, "User '%s': nonexistent", arg); 42 syslog (LOG_INFO, _("User '%s': nonexistent"), arg);
43 return util_finish (command, RESP_NO, "User name or passwd rejected"); 43 return util_finish (command, RESP_NO, "User name or passwd rejected");
44 } 44 }
45 45
...@@ -47,7 +47,7 @@ imap4d_login (struct imap4d_command *command, char *arg) ...@@ -47,7 +47,7 @@ imap4d_login (struct imap4d_command *command, char *arg)
47 openlog ("gnu-imap4d", LOG_PID, log_facility); 47 openlog ("gnu-imap4d", LOG_PID, log_facility);
48 if (rc) 48 if (rc)
49 { 49 {
50 syslog (LOG_INFO, "Login failed: %s", arg); 50 syslog (LOG_INFO, _("Login failed: %s"), arg);
51 return util_finish (command, RESP_NO, "User name or passwd rejected"); 51 return util_finish (command, RESP_NO, "User name or passwd rejected");
52 } 52 }
53 53
...@@ -57,7 +57,7 @@ imap4d_login (struct imap4d_command *command, char *arg) ...@@ -57,7 +57,7 @@ imap4d_login (struct imap4d_command *command, char *arg)
57 homedir = mu_normalize_path (strdup (auth_data->dir), "/"); 57 homedir = mu_normalize_path (strdup (auth_data->dir), "/");
58 chdir (homedir); 58 chdir (homedir);
59 namespace_init (homedir); 59 namespace_init (homedir);
60 syslog (LOG_INFO, "User '%s' logged in", username); 60 syslog (LOG_INFO, _("User '%s' logged in"), username);
61 return util_finish (command, RESP_OK, "Completed"); 61 return util_finish (command, RESP_OK, "Completed");
62 } 62 }
63 63
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #include "imap4d.h" 18 #include "imap4d.h"
...@@ -481,7 +481,7 @@ parse_equiv_key (struct parsebuf *pb) ...@@ -481,7 +481,7 @@ parse_equiv_key (struct parsebuf *pb)
481 if (parse_search_key_list (pb)) 481 if (parse_search_key_list (pb))
482 { 482 {
483 /* shouldn't happen */ 483 /* shouldn't happen */
484 syslog(LOG_CRIT, "%s:%d: INTERNAL ERROR", __FILE__, __LINE__); 484 syslog(LOG_CRIT, _("%s:%d: INTERNAL ERROR"), __FILE__, __LINE__);
485 abort (); 485 abort ();
486 } 486 }
487 487
...@@ -568,7 +568,7 @@ parse_simple_key (struct parsebuf *pb) ...@@ -568,7 +568,7 @@ parse_simple_key (struct parsebuf *pb)
568 put_code (pb, (inst_t) parse_regmem (pb, set)); 568 put_code (pb, (inst_t) parse_regmem (pb, set));
569 break; 569 break;
570 default: 570 default:
571 syslog(LOG_CRIT, "%s:%d: INTERNAL ERROR", __FILE__, __LINE__); 571 syslog(LOG_CRIT, _("%s:%d: INTERNAL ERROR"), __FILE__, __LINE__);
572 abort (); /* should never happen */ 572 abort (); /* should never happen */
573 } 573 }
574 } 574 }
...@@ -635,7 +635,7 @@ _search_pop (struct parsebuf *pb) ...@@ -635,7 +635,7 @@ _search_pop (struct parsebuf *pb)
635 { 635 {
636 if (pb->tos == 0) 636 if (pb->tos == 0)
637 { 637 {
638 syslog(LOG_CRIT, "%s:%d: INTERNAL ERROR", __FILE__, __LINE__); 638 syslog(LOG_CRIT, _("%s:%d: INTERNAL ERROR"), __FILE__, __LINE__);
639 abort (); /* shouldn't happen */ 639 abort (); /* shouldn't happen */
640 } 640 }
641 return pb->stack[--pb->tos]; 641 return pb->stack[--pb->tos];
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 18
...@@ -39,11 +39,11 @@ imap4d_sigchld (int signo) ...@@ -39,11 +39,11 @@ imap4d_sigchld (int signo)
39 RETSIGTYPE 39 RETSIGTYPE
40 imap4d_signal (int signo) 40 imap4d_signal (int signo)
41 { 41 {
42 syslog (LOG_CRIT, "got signal %s", strsignal (signo)); 42 syslog (LOG_CRIT, _("got signal %s"), strsignal (signo));
43 /* Master process. */ 43 /* Master process. */
44 if (!ofile) 44 if (!ofile)
45 { 45 {
46 syslog (LOG_CRIT, "MASTER: exiting on signal"); 46 syslog (LOG_CRIT, _("MASTER: exiting on signal"));
47 exit (1); /* abort(); */ 47 exit (1); /* abort(); */
48 } 48 }
49 49
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #include "imap4d.h" 18 #include "imap4d.h"
...@@ -447,9 +447,9 @@ imap4d_readline (FILE *fp) ...@@ -447,9 +447,9 @@ imap4d_readline (FILE *fp)
447 if (fgets (buffer, sizeof (buffer), fp) == NULL) 447 if (fgets (buffer, sizeof (buffer), fp) == NULL)
448 { 448 {
449 if (feof (fp)) 449 if (feof (fp))
450 syslog (LOG_INFO, "unexpected eof on input"); 450 syslog (LOG_INFO, _("unexpected eof on input"));
451 else if (errno) 451 else if (errno)
452 syslog (LOG_INFO, "error reading from input file: %m"); 452 syslog (LOG_INFO, _("error reading from input file: %m"));
453 else 453 else
454 continue; 454 continue;
455 imap4d_bye (ERR_NO_OFILE); 455 imap4d_bye (ERR_NO_OFILE);
...@@ -979,7 +979,7 @@ util_localname () ...@@ -979,7 +979,7 @@ util_localname ()
979 } 979 }
980 if (status) 980 if (status)
981 { 981 {
982 syslog (LOG_CRIT, "Can't find out my own hostname"); 982 syslog (LOG_CRIT, _("Can't find out my own hostname"));
983 exit (1); 983 exit (1);
984 } 984 }
985 985
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -22,22 +22,22 @@ ...@@ -22,22 +22,22 @@
22 #include <mailutils/argp.h> 22 #include <mailutils/argp.h>
23 23
24 const char *argp_program_version = "mailutils-config (" PACKAGE_STRING ")"; 24 const char *argp_program_version = "mailutils-config (" PACKAGE_STRING ")";
25 static char doc[] = "GNU mailutils-config -- Display compiler and loader options needed for building a program with mailutils"; 25 static char doc[] = N_("GNU mailutils-config -- Display compiler and loader options needed for building a program with mailutils");
26 static char args_doc[] = "[arg...]"; 26 static char args_doc[] = N_("[arg...]");
27 27
28 static struct argp_option options[] = { 28 static struct argp_option options[] = {
29 {"compile", 'c', NULL, 0, "print C compiler flags to compile with", 0}, 29 {"compile", 'c', NULL, 0, N_("print C compiler flags to compile with"), 0},
30 {"link", 'l', NULL, 0, 30 {"link", 'l', NULL, 0,
31 "print libraries to link with. Up to two args can be given. Arguments are: " 31 N_("print libraries to link with. Up to two args can be given. Arguments are: "
32 "auth, to display libraries needed for linking against libmuauth, and " 32 "auth, to display libraries needed for linking against libmuauth, and "
33 "guile, to display libraries needed for linking against libmu_scm. " 33 "guile, to display libraries needed for linking against libmu_scm. "
34 "Both can be given simultaneously", 0}, 34 "Both can be given simultaneously"), 0},
35 {"info", 'i', NULL, 0, 35 {"info", 'i', NULL, 0,
36 "print a list of compilation options used to build mailutils. If arguments " 36 N_("print a list of compilation options used to build mailutils. If arguments "
37 "are given, they are interpreted as a list of compilation options to check " 37 "are given, they are interpreted as a list of compilation options to check "
38 "for. In this case the program prints those options from this list that " 38 "for. In this case the program prints those options from this list that "
39 "have been defined. It exits with zero status if all of the " 39 "have been defined. It exits with zero status if all of the "
40 "specified options are defined. Otherwise, the exit status is 1.", 0}, 40 "specified options are defined. Otherwise, the exit status is 1."), 0},
41 {0, 0, 0, 0} 41 {0, 0, 0, 0}
42 }; 42 };
43 43
......
...@@ -9,6 +9,23 @@ comsat/comsat.c ...@@ -9,6 +9,23 @@ comsat/comsat.c
9 9
10 frm/frm.c 10 frm/frm.c
11 11
12 guimb/collect.c
13 guimb/main.c
14 guimb/util.c
15
16 imap4d/auth_gss.c
17 imap4d/authenticate.c
18 imap4d/imap4d.c
19 imap4d/bye.c
20 imap4d/list.c
21 imap4d/login.c
22 imap4d/search.c
23 imap4d/signal.c
24 imap4d/util.c
25
26 lib/getopt.c
27 lib/xmalloc.c
28
12 mail/alias.c 29 mail/alias.c
13 mail/alt.c 30 mail/alt.c
14 mail/copy.c 31 mail/copy.c
...@@ -35,6 +52,7 @@ mail/var.c ...@@ -35,6 +52,7 @@ mail/var.c
35 mail/z.c 52 mail/z.c
36 53
37 mailbox/argp-parse.c 54 mailbox/argp-parse.c
55 mailbox/mailutils-config.c
38 56
39 messages/messages.c 57 messages/messages.c
40 58
...@@ -48,5 +66,7 @@ pop3d/user.c ...@@ -48,5 +66,7 @@ pop3d/user.c
48 66
49 readmsg/readmsg.c 67 readmsg/readmsg.c
50 68
69 sieve/sieve.c
70
51 # EOF 71 # EOF
52 72
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
4 4
5 INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib 5 INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib
6 SUBDIRS = testsuite 6 SUBDIRS = testsuite
7 bin_PROGRAMS = sieve
8 7
8 bin_PROGRAMS = sieve
9 sieve_SOURCES = sieve.c 9 sieve_SOURCES = sieve.c
10 sieve_LDADD = ../libsieve/libsieve.la ../mailbox/libmailbox.la ../lib/libmailutils.la 10 sieve_LDADD = ../libsieve/libsieve.la ../mailbox/libmailbox.la ../lib/libmailutils.la
11 sieve_LDFLAGS = -export-dynamic 11 sieve_LDFLAGS = -export-dynamic
......
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 GNU Mailutils is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by 5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 GNU Mailutils is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details. 12 GNU Library General Public License for more details.
13 13
14 You should have received a copy of the GNU Library General Public License 14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software 15 along with GNU Mailutils; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 17
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
...@@ -41,51 +41,52 @@ ...@@ -41,51 +41,52 @@
41 #include <mailutils/mutil.h> 41 #include <mailutils/mutil.h>
42 #include <mailutils/registrar.h> 42 #include <mailutils/registrar.h>
43 #include <mailutils/stream.h> 43 #include <mailutils/stream.h>
44 #include <mailutils/nls.h>
44 45
45 void mutil_register_all_mbox_formats (void); 46 void mutil_register_all_mbox_formats (void);
46 47
47 const char *argp_program_version = "sieve (" PACKAGE_STRING ")"; 48 const char *argp_program_version = "sieve (" PACKAGE_STRING ")";
48 49
49 static char doc[] = 50 static char doc[] =
50 "GNU sieve -- a mail filtering tool\n" 51 N_("GNU sieve -- a mail filtering tool\n"
51 "\v" 52 "\v"
52 "Debug flags:\n" 53 "Debug flags:\n"
53 " g - main parser traces\n" 54 " g - main parser traces\n"
54 " T - mailutil traces (MU_DEBUG_TRACE)\n" 55 " T - mailutil traces (MU_DEBUG_TRACE)\n"
55 " P - network protocols (MU_DEBUG_PROT)\n" 56 " P - network protocols (MU_DEBUG_PROT)\n"
56 " t - sieve trace (MU_SIEVE_DEBUG_TRACE)\n" 57 " t - sieve trace (MU_SIEVE_DEBUG_TRACE)\n"
57 " i - sieve instructions trace (MU_SIEVE_DEBUG_INSTR)\n"; 58 " i - sieve instructions trace (MU_SIEVE_DEBUG_INSTR)\n");
58 59
59 #define D_DEFAULT "TPt" 60 #define D_DEFAULT "TPt"
60 61
61 static struct argp_option options[] = 62 static struct argp_option options[] =
62 { 63 {
63 {"no-actions", 'n', 0, 0, 64 {"no-actions", 'n', 0, 0,
64 "No actions executed, just print what would be done", 0}, 65 N_("No actions executed, just print what would be done"), 0},
65 66
66 {"keep-going", 'k', 0, 0, 67 {"keep-going", 'k', 0, 0,
67 "Keep on going if execution fails on a message", 0}, 68 N_("Keep on going if execution fails on a message"), 0},
68 69
69 {"compile-only", 'c', 0, 0, 70 {"compile-only", 'c', 0, 0,
70 "Compile script and exit", 0}, 71 N_("Compile script and exit"), 0},
71 72
72 {"dump", 'D', 0, 0, 73 {"dump", 'D', 0, 0,
73 "Compile script, dump disassembled sieve code to terminal and exit", 0 }, 74 N_("Compile script, dump disassembled sieve code to terminal and exit"), 0 },
74 75
75 {"mbox-url", 'f', "MBOX", 0, 76 {"mbox-url", 'f', "MBOX", 0,
76 "Mailbox to sieve (defaults to user's mail spool)", 0}, 77 N_("Mailbox to sieve (defaults to user's mail spool)"), 0},
77 78
78 {"ticket", 't', "TICKET", 0, 79 {"ticket", 't', "TICKET", 0,
79 "Ticket file for mailbox authentication", 0}, 80 N_("Ticket file for mailbox authentication"), 0},
80 81
81 {"debug", 'd', "FLAGS", OPTION_ARG_OPTIONAL, 82 {"debug", 'd', "FLAGS", OPTION_ARG_OPTIONAL,
82 "Debug flags (defaults to \"" D_DEFAULT "\")", 0}, 83 N_("Debug flags (defaults to \"" D_DEFAULT "\")"), 0},
83 84
84 {"verbose", 'v', NULL, 0, 85 {"verbose", 'v', NULL, 0,
85 "Log all actions", 0}, 86 N_("Log all actions"), 0},
86 87
87 {"email", 'e', "ADDRESS", 0, 88 {"email", 'e', "ADDRESS", 0,
88 "Override user email address", 0}, 89 N_("Override user email address"), 0},
89 90
90 {0} 91 {0}
91 }; 92 };
...@@ -120,7 +121,7 @@ parser (int key, char *arg, struct argp_state *state) ...@@ -120,7 +121,7 @@ parser (int key, char *arg, struct argp_state *state)
120 case 'e': 121 case 'e':
121 rc = mu_set_user_email (arg); 122 rc = mu_set_user_email (arg);
122 if (rc) 123 if (rc)
123 argp_error (state, "invalid email: %s", mu_errstring (rc)); 124 argp_error (state, _("invalid email: %s"), mu_errstring (rc));
124 break; 125 break;
125 126
126 case 'n': 127 case 'n':
...@@ -141,7 +142,7 @@ parser (int key, char *arg, struct argp_state *state) ...@@ -141,7 +142,7 @@ parser (int key, char *arg, struct argp_state *state)
141 142
142 case 'f': 143 case 'f':
143 if (opts->mbox) 144 if (opts->mbox)
144 argp_error (state, "only one MBOX can be specified"); 145 argp_error (state, _("only one MBOX can be specified"));
145 opts->mbox = strdup (arg); 146 opts->mbox = strdup (arg);
146 break; 147 break;
147 148
...@@ -178,7 +179,7 @@ parser (int key, char *arg, struct argp_state *state) ...@@ -178,7 +179,7 @@ parser (int key, char *arg, struct argp_state *state)
178 break; 179 break;
179 180
180 default: 181 default:
181 argp_error (state, "%c is not a valid debug flag", *arg); 182 argp_error (state, _("%c is not a valid debug flag"), *arg);
182 break; 183 break;
183 } 184 }
184 } 185 }
...@@ -190,12 +191,12 @@ parser (int key, char *arg, struct argp_state *state) ...@@ -190,12 +191,12 @@ parser (int key, char *arg, struct argp_state *state)
190 191
191 case ARGP_KEY_ARG: 192 case ARGP_KEY_ARG:
192 if (opts->script) 193 if (opts->script)
193 argp_error (state, "only one SCRIPT can be specified"); 194 argp_error (state, _("only one SCRIPT can be specified"));
194 opts->script = mu_tilde_expansion (arg, "/", NULL); 195 opts->script = mu_tilde_expansion (arg, "/", NULL);
195 break; 196 break;
196 197
197 case ARGP_KEY_NO_ARGS: 198 case ARGP_KEY_NO_ARGS:
198 argp_error (state, "SCRIPT must be specified"); 199 argp_error (state, _("SCRIPT must be specified"));
199 200
200 default: 201 default:
201 return ARGP_ERR_UNKNOWN; 202 return ARGP_ERR_UNKNOWN;
...@@ -262,7 +263,7 @@ stdout_action_log (void *unused, ...@@ -262,7 +263,7 @@ stdout_action_log (void *unused,
262 263
263 message_get_uid (msg, &uid); 264 message_get_uid (msg, &uid);
264 265
265 fprintf (stdout, "%s on msg uid %lu", action, (unsigned long) uid); 266 fprintf (stdout, _("%s on msg uid %lu"), action, (unsigned long) uid);
266 if (fmt && strlen (fmt)) 267 if (fmt && strlen (fmt))
267 { 268 {
268 fprintf (stdout, ": "); 269 fprintf (stdout, ": ");
...@@ -281,7 +282,7 @@ syslog_action_log (void *unused, ...@@ -281,7 +282,7 @@ syslog_action_log (void *unused,
281 282
282 message_get_uid (msg, &uid); 283 message_get_uid (msg, &uid);
283 284
284 asprintf (&text, "%s on msg uid %d", action, uid); 285 asprintf (&text, _("%s on msg uid %d"), action, uid);
285 if (fmt && strlen (fmt)) 286 if (fmt && strlen (fmt))
286 { 287 {
287 char *diag = NULL; 288 char *diag = NULL;
...@@ -306,6 +307,9 @@ main (int argc, char *argv[]) ...@@ -306,6 +307,9 @@ main (int argc, char *argv[])
306 struct options opts = {0}; 307 struct options opts = {0};
307 int (*debugfp) __P ((mu_debug_t, size_t level, const char *, va_list)); 308 int (*debugfp) __P ((mu_debug_t, size_t level, const char *, va_list));
308 309
310 /* Native Language Support */
311 /* mu_init_nls (); */
312
309 sieve_argp_init (); 313 sieve_argp_init ();
310 rc = mu_argp_parse (&argp, &argc, &argv, ARGP_IN_ORDER, sieve_argp_capa, 314 rc = mu_argp_parse (&argp, &argc, &argv, ARGP_IN_ORDER, sieve_argp_capa,
311 0, &opts); 315 0, &opts);
...@@ -319,7 +323,7 @@ main (int argc, char *argv[]) ...@@ -319,7 +323,7 @@ main (int argc, char *argv[])
319 rc = sieve_machine_init (&mach, NULL); 323 rc = sieve_machine_init (&mach, NULL);
320 if (rc) 324 if (rc)
321 { 325 {
322 mu_error ("can't initialize sieve machine: %s", mu_errstring (rc)); 326 mu_error (_("can't initialize sieve machine: %s"), mu_errstring (rc));
323 return 1; 327 return 1;
324 } 328 }
325 329
...@@ -357,13 +361,13 @@ main (int argc, char *argv[]) ...@@ -357,13 +361,13 @@ main (int argc, char *argv[])
357 { 361 {
358 if ((rc = wicket_create (&wicket, opts.tickets)) != 0) 362 if ((rc = wicket_create (&wicket, opts.tickets)) != 0)
359 { 363 {
360 mu_error ("wicket create <%s> failed: %s\n", 364 mu_error (_("wicket create <%s> failed: %s\n"),
361 opts.tickets, mu_errstring (rc)); 365 opts.tickets, mu_errstring (rc));
362 goto cleanup; 366 goto cleanup;
363 } 367 }
364 if ((rc = wicket_get_ticket (wicket, &ticket, 0, 0)) != 0) 368 if ((rc = wicket_get_ticket (wicket, &ticket, 0, 0)) != 0)
365 { 369 {
366 mu_error ("ticket get failed: %s\n", mu_errstring (rc)); 370 mu_error (_("ticket get failed: %s\n"), mu_errstring (rc));
367 goto cleanup; 371 goto cleanup;
368 } 372 }
369 sieve_set_ticket (mach, ticket); 373 sieve_set_ticket (mach, ticket);
...@@ -374,18 +378,18 @@ main (int argc, char *argv[]) ...@@ -374,18 +378,18 @@ main (int argc, char *argv[])
374 { 378 {
375 if ((rc = mu_debug_create (&debug, mach))) 379 if ((rc = mu_debug_create (&debug, mach)))
376 { 380 {
377 mu_error ("mu_debug_create failed: %s\n", mu_errstring (rc)); 381 mu_error (_("mu_debug_create failed: %s\n"), mu_errstring (rc));
378 goto cleanup; 382 goto cleanup;
379 } 383 }
380 if ((rc = mu_debug_set_level (debug, opts.debug_level))) 384 if ((rc = mu_debug_set_level (debug, opts.debug_level)))
381 { 385 {
382 mu_error ("mu_debug_set_level failed: %s\n", 386 mu_error (_("mu_debug_set_level failed: %s\n"),
383 mu_errstring (rc)); 387 mu_errstring (rc));
384 goto cleanup; 388 goto cleanup;
385 } 389 }
386 if ((rc = mu_debug_set_print (debug, debugfp, mach))) 390 if ((rc = mu_debug_set_print (debug, debugfp, mach)))
387 { 391 {
388 mu_error ("mu_debug_set_print failed: %s\n", 392 mu_error (_("mu_debug_set_print failed: %s\n"),
389 mu_errstring (rc)); 393 mu_errstring (rc));
390 goto cleanup; 394 goto cleanup;
391 } 395 }
...@@ -396,14 +400,14 @@ main (int argc, char *argv[]) ...@@ -396,14 +400,14 @@ main (int argc, char *argv[])
396 /* Create, give a ticket to, and open the mailbox. */ 400 /* Create, give a ticket to, and open the mailbox. */
397 if ((rc = mailbox_create_default (&mbox, opts.mbox)) != 0) 401 if ((rc = mailbox_create_default (&mbox, opts.mbox)) != 0)
398 { 402 {
399 mu_error ("mailbox create <%s> failed: %s\n", 403 mu_error (_("mailbox create <%s> failed: %s\n"),
400 opts.mbox ? opts.mbox : "default", mu_errstring (rc)); 404 opts.mbox ? opts.mbox : _("default"), mu_errstring (rc));
401 goto cleanup; 405 goto cleanup;
402 } 406 }
403 407
404 if (debug && (rc = mailbox_set_debug (mbox, debug))) 408 if (debug && (rc = mailbox_set_debug (mbox, debug)))
405 { 409 {
406 mu_error ("mailbox_set_debug failed: %s\n", mu_errstring (rc)); 410 mu_error (_("mailbox_set_debug failed: %s\n"), mu_errstring (rc));
407 goto cleanup; 411 goto cleanup;
408 } 412 }
409 413
...@@ -414,14 +418,14 @@ main (int argc, char *argv[]) ...@@ -414,14 +418,14 @@ main (int argc, char *argv[])
414 418
415 if ((rc = mailbox_get_folder (mbox, &folder))) 419 if ((rc = mailbox_get_folder (mbox, &folder)))
416 { 420 {
417 mu_error ("mailbox_get_folder failed: %s", 421 mu_error (_("mailbox_get_folder failed: %s"),
418 mu_errstring (rc)); 422 mu_errstring (rc));
419 goto cleanup; 423 goto cleanup;
420 } 424 }
421 425
422 if ((rc = folder_get_authority (folder, &auth))) 426 if ((rc = folder_get_authority (folder, &auth)))
423 { 427 {
424 mu_error ("folder_get_authority failed: %s", 428 mu_error (_("folder_get_authority failed: %s"),
425 mu_errstring (rc)); 429 mu_errstring (rc));
426 goto cleanup; 430 goto cleanup;
427 } 431 }
...@@ -429,7 +433,7 @@ main (int argc, char *argv[]) ...@@ -429,7 +433,7 @@ main (int argc, char *argv[])
429 /* Authentication-less folders don't have authorities. */ 433 /* Authentication-less folders don't have authorities. */
430 if (auth && (rc = authority_set_ticket (auth, ticket))) 434 if (auth && (rc = authority_set_ticket (auth, ticket)))
431 { 435 {
432 mu_error ("authority_set_ticket failed: %s", 436 mu_error (_("authority_set_ticket failed: %s"),
433 mu_errstring (rc)); 437 mu_errstring (rc));
434 goto cleanup; 438 goto cleanup;
435 } 439 }
...@@ -443,8 +447,8 @@ main (int argc, char *argv[]) ...@@ -443,8 +447,8 @@ main (int argc, char *argv[])
443 447
444 if (rc != 0) 448 if (rc != 0)
445 { 449 {
446 mu_error ("open on %s failed: %s\n", 450 mu_error (_("open on %s failed: %s\n"),
447 opts.mbox ? opts.mbox : "default", mu_errstring (rc)); 451 opts.mbox ? opts.mbox : _("default"), mu_errstring (rc));
448 goto cleanup; 452 goto cleanup;
449 } 453 }
450 454
...@@ -461,8 +465,8 @@ cleanup: ...@@ -461,8 +465,8 @@ cleanup:
461 any messages that were marked DELETED even if execution failed 465 any messages that were marked DELETED even if execution failed
462 on a later message. */ 466 on a later message. */
463 if ((e = mailbox_expunge (mbox)) != 0) 467 if ((e = mailbox_expunge (mbox)) != 0)
464 mu_error ("expunge on %s failed: %s\n", 468 mu_error (_("expunge on %s failed: %s\n"),
465 opts.mbox ? opts.mbox : "default", mu_errstring (e)); 469 opts.mbox ? opts.mbox : _("default"), mu_errstring (e));
466 470
467 if (e && !rc) 471 if (e && !rc)
468 rc = e; 472 rc = e;
......