Fix for missing address from long Origin lines

This commit is contained in:
Michiel Broek 2004-09-12 12:52:38 +00:00
parent 40be790b4d
commit 2aeb07fd7a
2 changed files with 141 additions and 145 deletions

View File

@ -44,6 +44,9 @@ v0.61.4 11-Aug-2004
The postemail and scanemail functions are changed so that
Outlook email addresses are parsed so that we can reply via
smtp.
During scan the Msg_Read function is now called with a width
of 79 characters instead of 78. This fixes the missing address
on Origin lines of 79 characters long.
mbfile:
The html index now uses html named character entities on the

View File

@ -360,7 +360,6 @@ void ScanOne(char *path, unsigned long MsgNum)
Msg_WriteHeader(MsgNum);
Msg_UnLock();
}
}
Msg_Close();
} else {
@ -416,13 +415,9 @@ void ScanOne(char *path, unsigned long MsgNum)
echo_in++;
fill_list(&sbl, aka2str(msgs.Aka), NULL);
for (i = 0; i < 40; i++) {
if (CFG.akavalid[i] &&
(msgs.Aka.zone == CFG.aka[i].zone) &&
(CFG.aka[i].point == 0) &&
!((msgs.Aka.net == CFG.aka[i].net) &&
(msgs.Aka.node == CFG.aka[i].node))) {
sprintf(sbe, "%u/%u", CFG.aka[i].net,
CFG.aka[i].node);
if (CFG.akavalid[i] && (msgs.Aka.zone == CFG.aka[i].zone) && (CFG.aka[i].point == 0) &&
!((msgs.Aka.net == CFG.aka[i].net) && (msgs.Aka.node == CFG.aka[i].node))) {
sprintf(sbe, "%u/%u", CFG.aka[i].net, CFG.aka[i].node);
fill_list(&sbl, sbe, NULL);
}
}
@ -463,10 +458,8 @@ void ScanOne(char *path, unsigned long MsgNum)
Msg_UnLock();
}
}
}
}
Msg_Close();
}
} else {
@ -624,7 +617,7 @@ void ExportEcho(sysconnect L, unsigned long MsgNum, fa_list **sbl)
fprintf(qp, "AREA:%s\r", msgs.Tag);
if (Msg_Read(MsgNum, 78)) {
if (Msg_Read(MsgNum, 79)) {
if ((p = (char *)MsgText_First()) != NULL) {
do {
if (kludges && (p[0] != '\001')) {
@ -708,7 +701,7 @@ void ExportNews(unsigned long MsgNum, fa_list **sbl)
fprintf(qp, "AREA:%s\n", msgs.Tag);
Syslog('m', "AREA:%s", msgs.Tag);
if (Msg_Read(MsgNum, 78)) {
if (Msg_Read(MsgNum, 79)) {
if ((p = (char *)MsgText_First()) != NULL) {
do {
if (kludges) {
@ -798,7 +791,7 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
* and check if we need them. If they are missing they are inserted.
* GoldED doesn't insert them but MBSE does.
*/
if (Msg_Read(MsgNum, 78)) {
if (Msg_Read(MsgNum, 79)) {
if ((p = (char *)MsgText_First()) != NULL) {
do {
if (strncmp(p, "\001FMPT", 5) == 0)
@ -831,7 +824,7 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
fromname[i] = '_';
sprintf(MailFrom, "%s@%s", fromname, ascinode(from, 0x2f));
if (Msg_Read(MsgNum, 78)) {
if (Msg_Read(MsgNum, 79)) {
if ((p = (char *)MsgText_First()) != NULL) {
do {
if (strncmp(p, "To: ", 4) == 0) {
@ -868,7 +861,7 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
if (msgs.Aka.point && !is_fmpt)
fprintf(fp, "X-FTN-FMPT: %d\n", msgs.Aka.point);
if (Msg_Read(MsgNum, 78)) {
if (Msg_Read(MsgNum, 79)) {
if ((p = (char *)MsgText_First()) != NULL) {
do {
if (p[0] == '\001') {
@ -881,7 +874,7 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
}
}
if (Msg_Read(MsgNum, 78)) {
if (Msg_Read(MsgNum, 79)) {
if ((p = (char *)MsgText_First()) != NULL) {
do {
if (p[0] != '\001') {
@ -1019,7 +1012,7 @@ void ExportNet(unsigned long MsgNum, int UUCPgate)
fprintf(qp, "\001INTL %d:%d/%d %d:%d/%d\r", Dest.zone, Dest.net, Dest.node,
msgs.Aka.zone, msgs.Aka.net, msgs.Aka.node);
if (Msg_Read(MsgNum, 78)) {
if (Msg_Read(MsgNum, 79)) {
first = TRUE;
if ((p = (char *)MsgText_First()) != NULL) {
do {
@ -1113,7 +1106,7 @@ void ExportEmail(unsigned long MsgNum)
flags |= (Msg.ConfirmRequest) ? M_AUDIT : 0;
Syslog('m', "------------ Scanned message start");
if (Msg_Read(MsgNum, 78)) {
if (Msg_Read(MsgNum, 79)) {
if ((p = (char *)MsgText_First()) != NULL) {
do {
Syslog('m', "%s", printable(p, 0));