diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-11-22 15:09:21 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-11-22 15:09:21 +0000 |
| commit | 52e35f45b4cfefc21707b42883dd1afa142ac7d4 (patch) | |
| tree | 0a9b58677b2f8dad558593277a547b17c38af976 /MailTCP.c | |
| parent | 453f162d225b192d5da5a843633208f0307e6afc (diff) | |
New upstream version 6.0.25.12+repack
Diffstat (limited to 'MailTCP.c')
| -rw-r--r-- | MailTCP.c | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -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;
|
