Fixed email replies
This commit is contained in:
parent
f0ef1980e5
commit
4c0908b0e5
@ -38,6 +38,9 @@ v0.61.1 20-Jun-2004.
|
|||||||
If pop3 login fails, the bbs won't hang.
|
If pop3 login fails, the bbs won't hang.
|
||||||
If a users homedirectory doesn't exist, a correct error message
|
If a users homedirectory doesn't exist, a correct error message
|
||||||
is displayed and logged.
|
is displayed and logged.
|
||||||
|
If a user replied to a email and the system was in Own
|
||||||
|
maildomain mode, the From address was changed to the Fidonet
|
||||||
|
style address instead of Unix address.
|
||||||
|
|
||||||
mbsetup:
|
mbsetup:
|
||||||
Added user@domain login for pop3 servers in screen 1.12.
|
Added user@domain login for pop3 servers in screen 1.12.
|
||||||
|
@ -651,14 +651,7 @@ void Read_Email(void)
|
|||||||
void Reply_Email(int IsReply)
|
void Reply_Email(int IsReply)
|
||||||
{
|
{
|
||||||
int i, j, x;
|
int i, j, x;
|
||||||
char to[65];
|
char to[65], from[65], subj[72], msgid[81], replyto[81], replyaddr[81], *tmp, *buf, qin[9];
|
||||||
char from[65];
|
|
||||||
char subj[72];
|
|
||||||
char msgid[81];
|
|
||||||
char replyto[81];
|
|
||||||
char replyaddr[81];
|
|
||||||
char *tmp, *buf;
|
|
||||||
char qin[9];
|
|
||||||
faddr *Dest = NULL;
|
faddr *Dest = NULL;
|
||||||
|
|
||||||
sprintf(from, "%s", Msg.To);
|
sprintf(from, "%s", Msg.To);
|
||||||
@ -704,8 +697,9 @@ void Reply_Email(int IsReply)
|
|||||||
*/
|
*/
|
||||||
Dest = fido2faddr(CFG.EmailFidoAka);
|
Dest = fido2faddr(CFG.EmailFidoAka);
|
||||||
sprintf(Msg.From, "%s@%s (%s)", exitinfo.sUserName, ascinode(Dest, 0x2f), exitinfo.sUserName);
|
sprintf(Msg.From, "%s@%s (%s)", exitinfo.sUserName, ascinode(Dest, 0x2f), exitinfo.sUserName);
|
||||||
} else
|
} else {
|
||||||
sprintf(Msg.From, "%s@%s (%s)", exitinfo.sUserName, CFG.sysdomain, exitinfo.sUserName);
|
sprintf(Msg.From, "%s@%s (%s)", exitinfo.Name, CFG.sysdomain, exitinfo.sUserName);
|
||||||
|
}
|
||||||
for (i = 0; i < strlen(Msg.From); i++) {
|
for (i = 0; i < strlen(Msg.From); i++) {
|
||||||
if (Msg.From[i] == ' ')
|
if (Msg.From[i] == ' ')
|
||||||
Msg.From[i] = '_';
|
Msg.From[i] = '_';
|
||||||
|
Reference in New Issue
Block a user