aboutsummaryrefslogtreecommitdiff
path: root/src/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail.c')
-rw-r--r--src/mail.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mail.c b/src/mail.c
index 7987819..ea74b8c 100644
--- a/src/mail.c
+++ b/src/mail.c
@@ -104,7 +104,10 @@ void
mail_finish ()
{
if (mailer_opened)
- mu_mailer_close (mailer);
+ {
+ mu_mailer_close (mailer);
+ mailer_opened = 0;
+ }
}
@@ -269,14 +272,14 @@ get_recipient (struct access_method *method, struct file_triplet *trp,
if (method->type == method_none)
{
- *errp = "access method is not configured";
+ *errp = N_("access method is not configured");
return NULL;
}
md = method_open (method);
if (!md)
{
- *errp = "failed to open access method";
+ *errp = N_("failed to open access method");
return NULL;
}
@@ -289,7 +292,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp,
free (text);
if (rc)
{
- *errp = "cannot obtain recipient emails";
+ *errp = N_("cannot obtain recipient emails");
method_close (method, md);
return NULL;
}
@@ -299,7 +302,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp,
if (nrows == 0)
{
- *errp = "cannot obtain recipient emails";
+ *errp = N_("cannot obtain recipient emails");
return NULL;
}
@@ -350,7 +353,7 @@ do_notify (struct file_triplet *trp, enum notification_event ev,
logmsg (LOG_ERR, _("not notifying %s (project %s) about %s: %s"),
notification_target_str (ntf->tgt),
trp->project,
- notification_event_str (ev), errp);
+ notification_event_str (ev), gettext (errp));
return;
}

Return to:

Send suggestions and report system problems to the System administrator.