summaryrefslogtreecommitdiffabout
path: root/src/mail.c
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-21 11:30:51 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2009-02-21 11:31:26 (GMT)
commit1213cf065e9b3a5fb45d00276b3d168462838c17 (patch) (side-by-side diff)
tree8d8f3cb7617465139f0051c10ef80fa9c2c91369 /src/mail.c
parent5bfe69d55cff8940fd3a84ff479e6e8308b164f4 (diff)
downloadwydawca-1213cf065e9b3a5fb45d00276b3d168462838c17.tar.gz
wydawca-1213cf065e9b3a5fb45d00276b3d168462838c17.tar.bz2
Remove trailing whitespace
Diffstat (limited to 'src/mail.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/mail.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mail.c b/src/mail.c
index 196d517..37bb493 100644
--- a/src/mail.c
+++ b/src/mail.c
@@ -69,7 +69,7 @@ mail_send_message (mu_address_t rcpt, const char *text)
mu_header_set_value (hdr, "To", buf, 1);
free (buf);
-
+
if (debug_level > 1)
{
mu_debug_t debug;
@@ -92,7 +92,7 @@ mail_send_message (mu_address_t rcpt, const char *text)
}
mailer_opened = 1;
}
-
+
rc = mu_mailer_send_message (mailer, msg, from_address, rcpt);
if (rc)
logmsg (LOG_CRIT, "cannot send message: %s", mu_strerror (rc));
@@ -105,7 +105,7 @@ mail_finish ()
{
if (mailer_opened)
mu_mailer_close (mailer);
-}
+}
struct message_template
@@ -206,7 +206,7 @@ mail_stats ()
time_t t;
const char *tmpl;
char *text;
-
+
if (!admin_stat_message || !stat_mask_p (mail_admin_mask) || !mailer)
return;
@@ -215,7 +215,7 @@ mail_stats ()
logmsg (LOG_ERR, "Cannot mail statistics: admin-address not defined");
return;
}
-
+
if (debug_level)
{
size_t size;
@@ -226,7 +226,7 @@ mail_stats ()
logmsg (LOG_DEBUG, "Sending stats to %s", buf);
free (buf);
}
-
+
if (dry_run_mode)
return;
@@ -235,7 +235,7 @@ mail_stats ()
exp[0].kw = "date";
exp[0].value = exp[0].storage = xstrdup (ctime (&t));
exp[0].value [strlen (exp[0].value) - 1] = 0;
-
+
make_stat_expansion (exp + 1);
tmpl = resolve_message_template (admin_stat_message);
@@ -263,7 +263,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp,
char *text;
int rc;
void *md;
-
+
if (method->type == method_none)
{
*errp = "access method is not configured";
@@ -281,7 +281,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp,
meta_escape (method, md, def);
text = meta_expand_string (method->query, def, NULL);
meta_free (def);
-
+
rc = method_run (method, md, text);
free (text);
if (rc)
@@ -290,7 +290,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp,
method_close (method, md);
return NULL;
}
-
+
nrows = method_num_rows (method);
ncols = method_num_cols (method);
@@ -299,7 +299,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp,
*errp = "cannot obtain recipient emails";
return NULL;
}
-
+
for (i = 0; i < nrows; i++)
{
mu_address_t addr;
@@ -331,12 +331,12 @@ do_notify (struct file_triplet *trp, enum notification_event ev,
case notify_admin:
rcpt = admin_address;
break;
-
+
case notify_user:
rcpt = get_recipient (trp->dpair->access_method[user_data_method],
trp, &errp);
break;
-
+
case notify_owner:
rcpt = get_recipient (trp->dpair->access_method[project_owner_method],
trp, &errp);
@@ -375,7 +375,7 @@ do_notify (struct file_triplet *trp, enum notification_event ev,
free (text);
}
}
-
+
mu_address_destroy (&rcpt);
}
@@ -384,7 +384,7 @@ notify (struct notification *notification_list,
struct file_triplet *trp, enum notification_event ev)
{
struct notification *p;
-
+
fill_project_name (trp);
for (p = notification_list; p; p = p->next)
if (p->ev == ev)

Return to:

Send suggestions and report system problems to the System administrator.