recipient address is now constructed using the full
Display Name <user@domain.org> syntax. This is important because
it allows the auto-populated address book to be more coherent.
/* Set the reply-to address to an Internet e-mail address if possible
*/
if (message->email != NULL) if (strlen(message->email) > 0) {
- safestrncpy(reply_to, message->email, sizeof reply_to);
+ if (strlen(message->author) > 0) {
+ snprintf(reply_to, sizeof reply_to, "%s <%s>", message->author, message->email);
+ }
+ else {
+ safestrncpy(reply_to, message->email, sizeof reply_to);
+ }
}
/* But if we can't do that, set it to a Citadel address.