Skip to content

Commit

Permalink
lib-sieve: enotify plugin: mailto method: Make sure from header is se…
Browse files Browse the repository at this point in the history
…t to a usable address and not (null).
  • Loading branch information
stephanbosch committed Oct 21, 2017
1 parent 8b5be61 commit 1210d33
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib-sieve/plugins/enotify/mailto/ntfy-mailto.c
Expand Up @@ -501,10 +501,13 @@ static int ntfy_mailto_send
}

/* Determine message from address */
if ( nact->from == NULL ) {
from = t_strdup_printf("<%s>", from_smtp);
} else {
if ( nact->from != NULL ) {
from = nact->from;
} else if ( from_smtp == NULL ) {
from = t_strdup_printf("<%s>",
sieve_get_postmaster_address(senv));
} else {
from = t_strdup_printf("<%s>", from_smtp);
}

/* Determine subject */
Expand Down

0 comments on commit 1210d33

Please sign in to comment.