summaryrefslogtreecommitdiff
path: root/MailTCP.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-11-22 15:09:21 +0000
committerDave Hibberd <hibby@debian.org>2025-11-22 15:09:21 +0000
commit52e35f45b4cfefc21707b42883dd1afa142ac7d4 (patch)
tree0a9b58677b2f8dad558593277a547b17c38af976 /MailTCP.c
parent453f162d225b192d5da5a843633208f0307e6afc (diff)
New upstream version 6.0.25.12+repack
Diffstat (limited to 'MailTCP.c')
-rw-r--r--MailTCP.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/MailTCP.c b/MailTCP.c
index 289fb62..37c7cf9 100644
--- a/MailTCP.c
+++ b/MailTCP.c
@@ -2092,20 +2092,19 @@ int CreateSMTPMessage(SocketConn * sockptr, int i, char * MsgTitle, time_t Date,
struct tm * tm;
tm = gmtime(&Date);
-
+
sprintf(DateString, "%04d/%02d/%02d %02d:%02d",
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min);
if (strcmp(Msg->to, "RMS") == 0) // Address is in via
- strcpy(B2To, Msg->via);
- else
- if (Msg->via[0])
- sprintf(B2To, "%s@%s", Msg->to, Msg->via);
+ strcpy(B2To, Msg->via);
else
- strcpy(B2To, Msg->to);
+ if (Msg->via[0])
+ sprintf(B2To, "%s@%s", Msg->to, Msg->via);
+ else
+ strcpy(B2To, Msg->to);
-
Msg->B2Flags = B2Msg | Attachments;
if (Msg->type == 'P')
@@ -3934,12 +3933,12 @@ int CreatePOP3Message(char * From, char * To, char * MsgTitle, time_t Date, char
if (strcmp(Msg->to, "RMS") == 0) // Address is in via
- strcpy(B2To, Msg->via);
- else
- if (Msg->via[0])
- sprintf(B2To, "%s@%s", Msg->to, Msg->via);
+ strcpy(B2To, Msg->via);
else
- strcpy(B2To, Msg->to);
+ if (Msg->via[0])
+ sprintf(B2To, "%s@%s", Msg->to, Msg->via);
+ else
+ strcpy(B2To, Msg->to);
Msg->B2Flags = B2Msg | Attachments;