From ceefc912fb1f7f4e9052ea73964f170058cd100f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 12 Jun 2020 13:43:54 +0200 Subject: pith/reply.c: use hostname in message id only if userdomain is not available --- pith/reply.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pith/reply.c b/pith/reply.c index ab4e97c..d7bdc91 100644 --- a/pith/reply.c +++ b/pith/reply.c @@ -3369,13 +3369,17 @@ generate_message_id(void) get_alpine_revision_number(revisionbuf, sizeof(revisionbuf)); if(F_ON(F_ROT13_MESSAGE_ID, ps_global)){ - hostpart = rot13(ps_global->hostname); + hostpart = rot13(ps_global->userdomain + ? ps_global->userdomain + : ps_global->hostname); alpine_name = rot13("alpine"); alpine_version = rot5n(ALPINE_VERSION); system_os = rot13(SYSTYPE); revision = rot5n(revisionbuf); } else { - hostpart = cpystr(ps_global->hostname); + hostpart = cpystr(ps_global->userdomain + ? ps_global->userdomain + : ps_global->hostname); alpine_name = cpystr("alpine"); alpine_version = cpystr(ALPINE_VERSION); system_os = cpystr(SYSTYPE); -- cgit v1.2.3-54-g00ecf