diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-21 13:30:51 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-21 13:31:26 +0200 |
commit | 1213cf065e9b3a5fb45d00276b3d168462838c17 (patch) | |
tree | 8d8f3cb7617465139f0051c10ef80fa9c2c91369 /src/mail.c | |
parent | 5bfe69d55cff8940fd3a84ff479e6e8308b164f4 (diff) | |
download | wydawca-1213cf065e9b3a5fb45d00276b3d168462838c17.tar.gz wydawca-1213cf065e9b3a5fb45d00276b3d168462838c17.tar.bz2 |
Remove trailing whitespace
Diffstat (limited to 'src/mail.c')
-rw-r--r-- | src/mail.c | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -69,7 +69,7 @@ mail_send_message (mu_address_t rcpt, const char *text) | |||
69 | 69 | ||
70 | mu_header_set_value (hdr, "To", buf, 1); | 70 | mu_header_set_value (hdr, "To", buf, 1); |
71 | free (buf); | 71 | free (buf); |
72 | 72 | ||
73 | if (debug_level > 1) | 73 | if (debug_level > 1) |
74 | { | 74 | { |
75 | mu_debug_t debug; | 75 | mu_debug_t debug; |
@@ -92,7 +92,7 @@ mail_send_message (mu_address_t rcpt, const char *text) | |||
92 | } | 92 | } |
93 | mailer_opened = 1; | 93 | mailer_opened = 1; |
94 | } | 94 | } |
95 | 95 | ||
96 | rc = mu_mailer_send_message (mailer, msg, from_address, rcpt); | 96 | rc = mu_mailer_send_message (mailer, msg, from_address, rcpt); |
97 | if (rc) | 97 | if (rc) |
98 | logmsg (LOG_CRIT, "cannot send message: %s", mu_strerror (rc)); | 98 | logmsg (LOG_CRIT, "cannot send message: %s", mu_strerror (rc)); |
@@ -105,7 +105,7 @@ mail_finish () | |||
105 | { | 105 | { |
106 | if (mailer_opened) | 106 | if (mailer_opened) |
107 | mu_mailer_close (mailer); | 107 | mu_mailer_close (mailer); |
108 | } | 108 | } |
109 | 109 | ||
110 | 110 | ||
111 | struct message_template | 111 | struct message_template |
@@ -206,7 +206,7 @@ mail_stats () | |||
206 | time_t t; | 206 | time_t t; |
207 | const char *tmpl; | 207 | const char *tmpl; |
208 | char *text; | 208 | char *text; |
209 | 209 | ||
210 | if (!admin_stat_message || !stat_mask_p (mail_admin_mask) || !mailer) | 210 | if (!admin_stat_message || !stat_mask_p (mail_admin_mask) || !mailer) |
211 | return; | 211 | return; |
212 | 212 | ||
@@ -215,7 +215,7 @@ mail_stats () | |||
215 | logmsg (LOG_ERR, "Cannot mail statistics: admin-address not defined"); | 215 | logmsg (LOG_ERR, "Cannot mail statistics: admin-address not defined"); |
216 | return; | 216 | return; |
217 | } | 217 | } |
218 | 218 | ||
219 | if (debug_level) | 219 | if (debug_level) |
220 | { | 220 | { |
221 | size_t size; | 221 | size_t size; |
@@ -226,7 +226,7 @@ mail_stats () | |||
226 | logmsg (LOG_DEBUG, "Sending stats to %s", buf); | 226 | logmsg (LOG_DEBUG, "Sending stats to %s", buf); |
227 | free (buf); | 227 | free (buf); |
228 | } | 228 | } |
229 | 229 | ||
230 | if (dry_run_mode) | 230 | if (dry_run_mode) |
231 | return; | 231 | return; |
232 | 232 | ||
@@ -235,7 +235,7 @@ mail_stats () | |||
235 | exp[0].kw = "date"; | 235 | exp[0].kw = "date"; |
236 | exp[0].value = exp[0].storage = xstrdup (ctime (&t)); | 236 | exp[0].value = exp[0].storage = xstrdup (ctime (&t)); |
237 | exp[0].value [strlen (exp[0].value) - 1] = 0; | 237 | exp[0].value [strlen (exp[0].value) - 1] = 0; |
238 | 238 | ||
239 | make_stat_expansion (exp + 1); | 239 | make_stat_expansion (exp + 1); |
240 | 240 | ||
241 | tmpl = resolve_message_template (admin_stat_message); | 241 | tmpl = resolve_message_template (admin_stat_message); |
@@ -263,7 +263,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp, | |||
263 | char *text; | 263 | char *text; |
264 | int rc; | 264 | int rc; |
265 | void *md; | 265 | void *md; |
266 | 266 | ||
267 | if (method->type == method_none) | 267 | if (method->type == method_none) |
268 | { | 268 | { |
269 | *errp = "access method is not configured"; | 269 | *errp = "access method is not configured"; |
@@ -281,7 +281,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp, | |||
281 | meta_escape (method, md, def); | 281 | meta_escape (method, md, def); |
282 | text = meta_expand_string (method->query, def, NULL); | 282 | text = meta_expand_string (method->query, def, NULL); |
283 | meta_free (def); | 283 | meta_free (def); |
284 | 284 | ||
285 | rc = method_run (method, md, text); | 285 | rc = method_run (method, md, text); |
286 | free (text); | 286 | free (text); |
287 | if (rc) | 287 | if (rc) |
@@ -290,7 +290,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp, | |||
290 | method_close (method, md); | 290 | method_close (method, md); |
291 | return NULL; | 291 | return NULL; |
292 | } | 292 | } |
293 | 293 | ||
294 | nrows = method_num_rows (method); | 294 | nrows = method_num_rows (method); |
295 | ncols = method_num_cols (method); | 295 | ncols = method_num_cols (method); |
296 | 296 | ||
@@ -299,7 +299,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp, | |||
299 | *errp = "cannot obtain recipient emails"; | 299 | *errp = "cannot obtain recipient emails"; |
300 | return NULL; | 300 | return NULL; |
301 | } | 301 | } |
302 | 302 | ||
303 | for (i = 0; i < nrows; i++) | 303 | for (i = 0; i < nrows; i++) |
304 | { | 304 | { |
305 | mu_address_t addr; | 305 | mu_address_t addr; |
@@ -331,12 +331,12 @@ do_notify (struct file_triplet *trp, enum notification_event ev, | |||
331 | case notify_admin: | 331 | case notify_admin: |
332 | rcpt = admin_address; | 332 | rcpt = admin_address; |
333 | break; | 333 | break; |
334 | 334 | ||
335 | case notify_user: | 335 | case notify_user: |
336 | rcpt = get_recipient (trp->dpair->access_method[user_data_method], | 336 | rcpt = get_recipient (trp->dpair->access_method[user_data_method], |
337 | trp, &errp); | 337 | trp, &errp); |
338 | break; | 338 | break; |
339 | 339 | ||
340 | case notify_owner: | 340 | case notify_owner: |
341 | rcpt = get_recipient (trp->dpair->access_method[project_owner_method], | 341 | rcpt = get_recipient (trp->dpair->access_method[project_owner_method], |
342 | trp, &errp); | 342 | trp, &errp); |
@@ -375,7 +375,7 @@ do_notify (struct file_triplet *trp, enum notification_event ev, | |||
375 | free (text); | 375 | free (text); |
376 | } | 376 | } |
377 | } | 377 | } |
378 | 378 | ||
379 | mu_address_destroy (&rcpt); | 379 | mu_address_destroy (&rcpt); |
380 | } | 380 | } |
381 | 381 | ||
@@ -384,7 +384,7 @@ notify (struct notification *notification_list, | |||
384 | struct file_triplet *trp, enum notification_event ev) | 384 | struct file_triplet *trp, enum notification_event ev) |
385 | { | 385 | { |
386 | struct notification *p; | 386 | struct notification *p; |
387 | 387 | ||
388 | fill_project_name (trp); | 388 | fill_project_name (trp); |
389 | for (p = notification_list; p; p = p->next) | 389 | for (p = notification_list; p; p = p->next) |
390 | if (p->ev == ev) | 390 | if (p->ev == ev) |