recoding fixes

This commit is contained in:
Alexander S. Aganichev 2001-03-05 05:27:01 +00:00
parent fc8735b3a1
commit eb281a259f
3 changed files with 8 additions and 5 deletions

View File

@ -12,6 +12,9 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, March xx 2001 Notes for GoldED+ 1.1.5, March xx 2001
______________________________________________________________________ ______________________________________________________________________
- Fixed double recoding of header during forward, quote-reply, and
change.
+ Added new keyword WRITETEMPLATE which defines template to be used on + Added new keyword WRITETEMPLATE which defines template to be used on
saving messages. Could be used in Random System Groups or globally. saving messages. Could be used in Random System Groups or globally.

View File

@ -762,7 +762,7 @@ void MakeMsg(int mode, GMsg* omsg, bool ignore_replyto) {
msg->inreplyto = NULL; msg->inreplyto = NULL;
msg->references = NULL; msg->references = NULL;
msg->attr.tou0(); msg->attr.tou0();
msg->TextToLines(CFG->dispmargin-1); msg->TextToLines(CFG->dispmargin-1, false);
*msg->iorig = NUL; *msg->iorig = NUL;
*msg->idest = NUL; *msg->idest = NUL;
*msg->ireplyto = NUL; *msg->ireplyto = NUL;
@ -788,7 +788,7 @@ void MakeMsg(int mode, GMsg* omsg, bool ignore_replyto) {
msg->inreplyto = NULL; msg->inreplyto = NULL;
msg->references = NULL; msg->references = NULL;
msg->attr.tou0(); msg->attr.tou0();
msg->TextToLines(CFG->dispmargin-1); msg->TextToLines(CFG->dispmargin-1, false);
break; break;
case MODE_NEW: case MODE_NEW:
wfill(MINROW, 0, MAXROW-2, MAXCOL-1, ' ', C_READW); wfill(MINROW, 0, MAXROW-2, MAXCOL-1, ' ', C_READW);
@ -830,7 +830,7 @@ void MakeMsg(int mode, GMsg* omsg, bool ignore_replyto) {
case MODE_QUOTE: case MODE_QUOTE:
case MODE_REPLYCOMMENT: case MODE_REPLYCOMMENT:
omsg->attr.tou0(); omsg->attr.tou0();
omsg->TextToLines(-CFG->quotemargin); omsg->TextToLines(-CFG->quotemargin, false);
if(ignore_replyto) if(ignore_replyto)
*omsg->ireplyto = NUL; *omsg->ireplyto = NUL;
if(omsg->attr.rot()) if(omsg->attr.rot())

View File

@ -210,11 +210,11 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
fputs("@header= @oecho (@caddr) @align{79}{=}\n", fp); fputs("@header= @oecho (@caddr) @align{79}{=}\n", fp);
fputs("@header Msg : @msgno of @msgs@align{44}@attr\n", fp); fputs("@header Msg : @msgno of @msgs@align{44}@attr\n", fp);
if(AA->isinternet()) { if(AA->isinternet()) {
fputs("@header From : @ofrom@align{64}@odtime\n", fp); fputs("@header From : @ofrom@align{60}@odtime\n", fp);
fputs("@header From : @oto\n", fp); fputs("@header From : @oto\n", fp);
} }
else { else {
fputs("@header From : @oname@align{44}@oaddr@align{64}@odtime\n", fp); fputs("@header From : @oname@align{44}@oaddr@align{60}@odtime\n", fp);
fputs("@header To : @dname\n", fp); fputs("@header To : @dname\n", fp);
} }
fputs("@header Subj : @subject\n", fp); fputs("@header Subj : @subject\n", fp);