Fixed posting local email to SMTP server
This commit is contained in:
parent
bab69f2208
commit
5667926eab
@ -19,6 +19,9 @@ v0.35.05 19-Oct-2002
|
||||
Changed the section about ftp feeds.
|
||||
Added Q&A about failing internet polls.
|
||||
|
||||
mbsebbs:
|
||||
Email posted at the bbs was not signed with the signature.
|
||||
|
||||
mbcico:
|
||||
Fixed crash with incoming YooHoo session with bad password.
|
||||
Still used the phone override fields for hostname override
|
||||
@ -54,6 +57,8 @@ v0.35.05 19-Oct-2002
|
||||
Echomail is now also packed or not according to the packmail
|
||||
switch in mbsetup.
|
||||
Statistics count for exported echomail now works.
|
||||
Email posted in the email box in full domain mode was refused
|
||||
by SMTP servers because of bad address formatting.
|
||||
|
||||
mbtask:
|
||||
Removed debug logging of "does" info.
|
||||
|
@ -1111,9 +1111,8 @@ void ExportEmail(unsigned long MsgNum)
|
||||
{
|
||||
char *p;
|
||||
FILE *qp;
|
||||
int retval, flags = 0;
|
||||
int retval, flags = 0, kludges = TRUE;
|
||||
faddr *from, *too;
|
||||
int kludges = TRUE;
|
||||
|
||||
Syslog('m', "Export email to %s", Msg.To);
|
||||
Syslog('m', " from %s", Msg.From);
|
||||
@ -1171,7 +1170,25 @@ void ExportEmail(unsigned long MsgNum)
|
||||
if (CFG.EmailMode != E_NOISP) {
|
||||
/*
|
||||
* Dialup or direct internet connection, send message via MTA.
|
||||
* First check if the From and To addresses contain spaces, if
|
||||
* so everything after the space is removed.
|
||||
*/
|
||||
p = Msg.From;
|
||||
while (*p) {
|
||||
if (*p == ' ') {
|
||||
*p = '\0';
|
||||
break;
|
||||
}
|
||||
p++;
|
||||
}
|
||||
p = Msg.To;
|
||||
while (*p) {
|
||||
if (*p == ' ') {
|
||||
*p = '\0';
|
||||
break;
|
||||
}
|
||||
p++;
|
||||
}
|
||||
retval = postemail(qp, Msg.From, Msg.To);
|
||||
} else {
|
||||
/*
|
||||
|
@ -297,12 +297,8 @@ int Save_Email(int IsReply)
|
||||
sprintf(p, "<%08lx@%s>", id, CFG.sysdomain);
|
||||
sprintf(temp, "\001Message-id: %s", p);
|
||||
MsgText_Add2(temp);
|
||||
// sprintf(temp, "\001MSGID: %s %08lx", aka2str(CFG.EmailFidoAka), id);
|
||||
// MsgText_Add2(temp);
|
||||
Msg.MsgIdCRC = upd_crc32(temp, crc, strlen(temp));
|
||||
free(p);
|
||||
// sprintf(temp, "\001PID: MBSE-BBS %s", VERSION);
|
||||
// MsgText_Add2(temp);
|
||||
|
||||
if (IsReply) {
|
||||
sprintf(temp, "\001In-reply-to: %s", Msg.Replyid);
|
||||
@ -318,6 +314,21 @@ int Save_Email(int IsReply)
|
||||
for (i = 1; i < Line; i++) {
|
||||
MsgText_Add2(Message[i]);
|
||||
}
|
||||
|
||||
/*
|
||||
* Add signature.
|
||||
*/
|
||||
sprintf(temp, "%s/%s/.signature", CFG.bbs_usersdir, exitinfo.Name);
|
||||
if ((fp = fopen(temp, "r"))) {
|
||||
Syslog('m', " Add .signature");
|
||||
MsgText_Add2((char *)"");
|
||||
while (fgets(temp, 80, fp)) {
|
||||
Striplf(temp);
|
||||
MsgText_Add2(temp);
|
||||
}
|
||||
fclose(fp);
|
||||
MsgText_Add2((char *)"");
|
||||
}
|
||||
MsgText_Add2(TearLine());
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user