Fixed Internet gated message replying, changed layout for kludges in JAM

This commit is contained in:
Alexander S. Aganichev 2000-11-11 08:59:31 +00:00
parent cc6d38a548
commit 8a3bb64045
4 changed files with 28 additions and 9 deletions

View File

@ -1,5 +1,5 @@
GoldED+ compilation how to GoldED+ compilation howto
by Alexander Aganichev, 2:5020/201.58 <aaganichev@netscape.net> by Alexander Aganichev, 2:5020/201.58 <aaganichev@netscape.net>
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
@ -11,10 +11,9 @@ To compile GoldED+ and utilities you'll need:
- vi, emacs, or any other editor you like - vi, emacs, or any other editor you like
- beer or bear on your choice ;-) - beer or bear on your choice ;-)
--- MINGW32 ONLY --- --- MINGW ONLY ---
Remove alloc.h from the $(include)/mingw32 to avoid unpredictable problems. Please consult this howto on installing MinGW over Cygwin:
Change arguments to sopen (to be `const char *' instead of `char *') and http://www.xraylith.wisc.edu/~khan/software/gnu-win32/mno-cygwin-howto.txt
atexit (to be `void (func *)(void)' instead of `void (func *)()').
------ COMMON ------ ------ COMMON ------
First, edit GNUmakef.def for the preferrable compilation options. First, edit GNUmakef.def for the preferrable compilation options.
@ -23,7 +22,8 @@ Now go to golded3 and copy mygolded.__h to mygolded.h and adjust it for
yourself (put your name, FTN address and e-mail). Goto root again. yourself (put your name, FTN address and e-mail). Goto root again.
Exec 'make' (or `gmake' on BSD) and drink beer or play with bear until Exec 'make' (or `gmake' on BSD) and drink beer or play with bear until
compilation in progress. compilation in progress. But better - help your wife (if you have one) or
wives (if you have more :)) with home work ;-)
ls bin/ ls bin/

View File

@ -12,6 +12,12 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.4.7, November xx 2000 Notes for GoldED+ 1.1.4.7, November xx 2000
______________________________________________________________________ ______________________________________________________________________
- It was impossible to change To: field when replying to the Internet
gated message when lookup turned off. Fixed.
+ Via, Recd and Forwarded kludges now displayed in the bottom of
message in JAM areas.
- Cut-n-paste Unicode clipboard under Windows NT now properly filled - Cut-n-paste Unicode clipboard under Windows NT now properly filled
with Unicode version of control characters with the exception of CR, with Unicode version of control characters with the exception of CR,
LF, tabulation. It's fun to copy kludges from GoldED+ to WordPad ;-) LF, tabulation. It's fun to copy kludges from GoldED+ to WordPad ;-)

View File

@ -297,7 +297,9 @@ bool GMsgHeaderEdit::validate() {
field* ftoaddr = get_field(id_to_addr); field* ftoaddr = get_field(id_to_addr);
field* fsubj = get_field(id_subject); field* fsubj = get_field(id_subject);
gsetaddr toname, toaddr, fromaddr, subj; gsetaddr toname, toaddr, fromaddr, subj;
string orig_toname;
orig_toname = msg->to;
toname.buf = current->buf; toname.update = false; toname.buf = current->buf; toname.update = false;
toaddr.buf = ftoaddr->buf; toaddr.update = false; toaddr.buf = ftoaddr->buf; toaddr.update = false;
fromaddr.buf = ffromaddr->buf; fromaddr.update = false; fromaddr.buf = ffromaddr->buf; fromaddr.update = false;
@ -311,6 +313,10 @@ bool GMsgHeaderEdit::validate() {
strsetsz(bot2, EDIT->HdrNodeLen()); strsetsz(bot2, EDIT->HdrNodeLen());
window.prints(1, EDIT->HdrNodePos(), C_HEADW, bot2); window.prints(1, EDIT->HdrNodePos(), C_HEADW, bot2);
// once we changed name invalidate realto
if(not strieql(orig_toname.c_str(), toname.buf))
*msg->realto = NUL;
if(toname.update) current->update(); if(toname.update) current->update();
if(toaddr.update) ftoaddr->update(); if(toaddr.update) ftoaddr->update();
if(fromaddr.update) ffromaddr->update(); if(fromaddr.update) ffromaddr->update();
@ -452,8 +458,8 @@ int EditHeaderinfo(int mode, GMsgHeaderView &view) {
if(*AA->Internetgate().name) if(*AA->Internetgate().name)
strcpy(msg->iaddr, to_name.c_str()); strcpy(msg->iaddr, to_name.c_str());
else { else {
if(strlen(to_name.c_str()) > 34) { if(to_name.length() > 34) {
strcpy(msg->to, *AA->Internetgate().name ? AA->Internetgate().name : "UUCP"); strcpy(msg->to, "UUCP");
strcpy(msg->iaddr, to_name.c_str()); strcpy(msg->iaddr, to_name.c_str());
} }
else else

View File

@ -238,7 +238,14 @@ int JamArea::load_message(int __mode, gmsg* __msg, JamHdr& __hdr) {
break; break;
case JAMSUB_FTSKLUDGE: case JAMSUB_FTSKLUDGE:
sprintf(_kludges+strlen(_kludges), "\001%s\r", _buf); {
char *_kludgesx;
if(strneql(_buf, "Via ", 4) or strneql(_buf, "Recd", 4) or strneql(_buf, "Forwarded", 9))
_kludgesx = _kludges2;
else
_kludgesx = _kludges;
sprintf(_kludgesx+strlen(_kludgesx), "\001%s\r", _buf);
}
// Not processed // Not processed
break; break;