diff options
Diffstat (limited to 'src/mail.c')
-rw-r--r-- | src/mail.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -249,7 +249,7 @@ mail_stats () admin_stat_message); return; } - text = meta_expand_string (tmpl, exp, NULL); + text = meta_expand_string (tmpl, exp, NULL, NULL, NULL); mail_send_message (admin_address, text); @@ -264,7 +264,6 @@ get_recipient (struct access_method *method, struct file_triplet *trp, char **errp) { unsigned nrows, ncols, i; - struct metadef def[5]; mu_address_t rcpt = NULL; char *text; int rc; @@ -283,10 +282,7 @@ get_recipient (struct access_method *method, struct file_triplet *trp, return NULL; } - make_default_meta (def, trp->user, trp->project); - meta_escape (method, md, def); - text = meta_expand_string (method->query, def, NULL); - meta_free (def); + text = triplet_expand_method_query (method, md, trp); rc = method_run (method, md, text); free (text); |