summaryrefslogtreecommitdiff
path: root/MailTCP.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-11-09 22:34:23 +0000
committerDave Hibberd <hibby@debian.org>2025-11-09 22:34:23 +0000
commit3c2c1cf9f880267b8006b87fbe84cd73a645be38 (patch)
tree8dd6026fe09e80dbc5f0ce12c67a08ce8df75ad4 /MailTCP.c
parente569b24f9aea7eacce84d6caa646eacd452bea5f (diff)
parent367ab8fb01191ec54c91810b1896c41fdf7de911 (diff)
Update upstream source from tag 'upstream/6.0.25.9+repack'
Update to upstream version '6.0.25.9+repack' with Debian dir 15e3115d6f28e4fa9b1c62d4e3c93da6570dc7bc
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;