From 63b3085f8b37634f39301f8a2e4e911cefceff72 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Sat, 27 Oct 2001 06:31:02 +0000 Subject: [PATCH] more accurate uudecode --- golded3/geread2.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/golded3/geread2.cpp b/golded3/geread2.cpp index 1eda636..fdea4a3 100644 --- a/golded3/geread2.cpp +++ b/golded3/geread2.cpp @@ -630,6 +630,9 @@ void UUDecode(GMsg* msg) { if(source == WRITE_QUIT) return; + bool old_quotespacing = CFG->switches.get(quotespacing); + CFG->switches.set(quotespacing, false); + if(source == WRITE_MARKED) { for(uint n=0; nMark.Count(); n++) { if(overwrite and n) @@ -641,8 +644,12 @@ void UUDecode(GMsg* msg) { if(AA->Mark.Count()) w_progress(MODE_QUIT, 0, 0, 0, NULL); } - else if(source == WRITE_CURRENT) + else if(source == WRITE_CURRENT) { + AA->LoadMsg(msg, msg->msgno, 79); SaveLines(MODE_WRITE, infile, msg, 79); + } + + CFG->switches.set(quotespacing, old_quotespacing); uulist* item; int i, res;