Ticket #90: Mulberry.diff
| File Mulberry.diff, 10.2 kB (added by hgd, 1 year ago) |
|---|
-
Mulberry/MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Letter_Panels/CPrefsLetterStyled.cp
21 21 22 22 #include "CAdminLock.h" 23 23 #include "CPreferences.h" 24 #include "CStringUtils.h" 25 #include "CTextDisplay.h" 24 26 25 27 #include <LCheckBox.h> 26 28 #include <LPopupButton.h> … … 69 71 } 70 72 71 73 mFormatFlowed = (LCheckBox*) FindPaneByID(paneid_LSFormatFlowed); 74 mReplyPrefixes = (CTextDisplay*) FindPaneByID(paneid_DQReplyPrefixes); 72 75 } 73 76 74 77 // Set prefs … … 87 90 mHTMLEnriched->SetValue(copyPrefs->htmlMultiAltEnriched.GetValue()); 88 91 } 89 92 mFormatFlowed->SetValue(copyPrefs->mFormatFlowed.GetValue()); 93 94 cdstring replyPrefixes; 95 for(cdstrvect::const_iterator iter = copyPrefs->mRecognizeReplyPrefixes.GetValue().begin(); iter != copyPrefs->mRecognizeReplyPrefixes.GetValue().end(); iter++) 96 { 97 replyPrefixes += *iter; 98 replyPrefixes += os_endl; 99 } 100 mReplyPrefixes->SetText(replyPrefixes); 90 101 } 91 102 92 103 // Force update of prefs … … 105 116 copyPrefs->htmlMultiAltPlain.SetValue((mHTMLPlain->GetValue()==1)); 106 117 } 107 118 copyPrefs->mFormatFlowed.SetValue((mFormatFlowed->GetValue()==1)); 119 120 // Only copy text if dirty 121 if (mReplyPrefixes->IsDirty()) 122 { 123 // Copy handle to text with null terminator 124 cdstring txt; 125 mReplyPrefixes->GetText(txt); 126 127 char* s = ::strtok(txt.c_str_mod(), CR); 128 cdstrvect accumulate; 129 while(s) 130 { 131 cdstring copyStr(s); 132 accumulate.push_back(copyStr); 133 134 s = ::strtok(nil, CR); 135 } 136 copyPrefs->mRecognizeReplyPrefixes.SetValue(accumulate); 137 } 138 108 139 } -
Mulberry/MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Letter_Panels/CPrefsLetterStyled.h
33 33 const PaneIDT paneid_LSHTMLPlain = 'HTPL'; 34 34 const PaneIDT paneid_LSHTMLEnr = 'HTEN'; 35 35 const PaneIDT paneid_LSFormatFlowed = 'FLOW'; 36 const PaneIDT paneid_DQReplyPrefixes = 'REPP'; 36 37 37 38 // Mesages 38 39 … … 41 42 // Classes 42 43 class LCheckBox; 43 44 class LPopupButton; 45 class CTextDisplay; 44 46 45 47 class CPrefsLetterStyled : public CPrefsTabSubPanel 46 48 { … … 51 53 LCheckBox* mHTMLPlain; 52 54 LCheckBox* mHTMLEnriched; 53 55 LCheckBox* mFormatFlowed; 56 CTextDisplay* mReplyPrefixes; 54 57 55 58 public: 56 59 enum { class_ID = 'Lsty' }; -
Mulberry/MacOS/Sources/Application/General/CMulberryApp.cp
18 18 // Source for CMulberryApp class 19 19 20 20 21 #define MAKE_APP 121 #define MAKE_APP 0 22 22 23 23 //#define MEMDEBUG 1 24 24 -
Mulberry/Sources_Common/Automation/CActionManager.cp
985 985 const char* osubject = msgs.front()->GetEnvelope()->GetSubject(); 986 986 if (osubject) 987 987 { 988 if ((( osubject[0]!='R') && (osubject[0]!='r')) ||988 if ((((osubject[0]!='R') && (osubject[0]!='r')) || 989 989 ((osubject[1]!='E') && (osubject[1]!='e')) || 990 (osubject[2]!=':')) 990 (osubject[2]!=':')) && (((osubject[0]!='A') && (osubject[0]!='a')) || 991 ((osubject[1]!='W') && (osubject[1]!='w')) || 992 (osubject[2]!=':'))) 991 993 subject += osubject; 992 994 else 993 995 subject = osubject; -
Mulberry/Sources_Common/Application/Letter/CLetterWindowCommon.cp
403 403 // Set Subject: text 404 404 cdstring theTxt; 405 405 const char* subject = theEnv->GetSubject(); 406 406 407 if (subject) 407 408 { 408 if (((subject[0]!='R') && (subject[0]!='r')) || 409 ((subject[1]!='E') && (subject[1]!='e')) || 410 (subject[2]!=':')) 411 { 412 theTxt = "Re: "; 413 theTxt += subject; 409 410 // Compare to recognized reply prefixes 411 theTxt = "Re: "; 412 theTxt += subject; 413 414 cdstring tmpsubj = subject; 415 416 for(cdstrvect::const_iterator iter = CPreferences::sPrefs->mRecognizeReplyPrefixes.GetValue().begin(); iter != CPreferences::sPrefs->mRecognizeReplyPrefixes.GetValue().end(); iter++) { 417 418 if (tmpsubj.compare_start(*iter, true) == true) 419 theTxt = subject; 414 420 } 415 else 416 theTxt = subject; 421 422 // if ((((subject[0]!='R') && (subject[0]!='r')) || 423 // ((subject[1]!='E') && (subject[1]!='e')) || 424 // (subject[2]!=':')) && (((subject[0]!='A') && (subject[0]!='a')) || 425 // ((subject[1]!='W') && (subject[1]!='w')) || 426 // (subject[2]!=':'))) 427 // { 428 // theTxt = "Re: "; 429 // theTxt += subject; 430 // } 431 // else 432 // theTxt = subject; 417 433 } 418 434 SetSubject(theTxt); 419 435 mReplySubject = theTxt; -
Mulberry/Sources_Common/Application/Preferences/CPreferencesBits.cp
291 291 COPY(mDisplayIdentityFrom) 292 292 COPY(mAutoSaveDrafts) 293 293 COPY(mAutoSaveDraftsInterval) 294 COPY(mRecognizeReplyPrefixes) 294 295 296 295 297 //--------------------Security 296 298 COPY(mPreferredPlugin) 297 299 COPY(mUseMIMESecurity) … … 792 794 NOTEQUAL(mDisplayIdentityFrom) 793 795 NOTEQUAL(mAutoSaveDrafts) 794 796 NOTEQUAL(mAutoSaveDraftsInterval) 797 NOTEQUAL(mRecognizeReplyPrefixes) 795 798 796 799 // Test Formatting Prefs 797 800 NOTEQUAL(mURLStyle) … … 1290 1293 SETDIRTY(mDisplayIdentityFrom) 1291 1294 SETDIRTY(mAutoSaveDrafts) 1292 1295 SETDIRTY(mAutoSaveDraftsInterval) 1296 SETDIRTY(mRecognizeReplyPrefixes) 1293 1297 1294 1298 // Test Formatting Prefs 1295 1299 SETDIRTY(mURLStyle) -
Mulberry/Sources_Common/Application/Preferences/CPreferences.h
208 208 CPreferenceValueMap<CColourList> mQuoteColours; // Multiple colours for quotes 209 209 CPreferenceValueMap<cdstrvect> mRecognizeQuotes; // Quotes to recognize 210 210 CPreferenceValueMap<cdstrvect> mRecognizeURLs; // URLs to recognize 211 CPreferenceValueMap<cdstrvect> mRecognizeReplyPrefixes; // Reply prefixes to recognize 211 212 212 213 #if __dest_os == __linux_os 213 214 CPreferenceValueMap<RGBColor> mSelectionColour; // Colour for selections -
Mulberry/Sources_Common/Application/Preferences/CPreferenceKeys.h
227 227 extern const char* cRecognizeQuotesKey_2_0; // New in v2.0b6 228 228 extern const char* cRecognizeURLsKey_1_4; // Deprecated format as of v2.0b6 229 229 extern const char* cRecognizeURLsKey_2_0; // New in v2.0b6 230 extern const char* cRecognizeReplyPrefixesKey; 230 231 #if __dest_os == __linux_os 231 232 extern const char* cSelectionColourKey; // New in v2.0.6b3 232 233 #endif -
Mulberry/Sources_Common/Application/Preferences/CPreferencesXtra.cp
618 618 mDisplayIdentityFrom.mValue = true; 619 619 mAutoSaveDrafts.mValue = true; 620 620 mAutoSaveDraftsInterval.mValue = 60; 621 mRecognizeReplyPrefixes.mValue.push_back("re:"); 622 mRecognizeReplyPrefixes.mValue.push_back("aw:"); 623 mRecognizeReplyPrefixes.mValue.push_back("sv:"); 624 621 625 } 622 626 623 627 void CPreferences::InitSecurityPrefs() -
Mulberry/Sources_Common/Application/Preferences/CPreferencesRW.cp
417 417 WRITETOMAP(mDisplayIdentityFrom, cDisplayIdentityFrom) // >= v4.0b2 418 418 WRITETOMAP(mAutoSaveDrafts, cAutoSaveDraftsKey) // >= v4.0.3 419 419 WRITETOMAP(mAutoSaveDraftsInterval, cAutoSaveDraftsIntervalKey) // >= v4.0.3 420 WRITETOMAP(mRecognizeReplyPrefixes, cRecognizeReplyPrefixesKey) // >= v4.0.9b1 421 420 422 } 421 423 422 424 //--------------------Security Prefs … … 1497 1499 READFROMMAP(mDisplayIdentityFrom, cDisplayIdentityFrom) 1498 1500 READFROMMAP(mAutoSaveDrafts, cAutoSaveDraftsKey) 1499 1501 READFROMMAP(mAutoSaveDraftsInterval, cAutoSaveDraftsIntervalKey) 1502 READFROMMAP(mRecognizeReplyPrefixes, cRecognizeReplyPrefixesKey) 1500 1503 1501 1504 // < v1.4 - convert old fields into new default identity 1502 1505 if (VersionTest(vers_prefs, VERS_1_4_0) < 0) -
Mulberry/Sources_Common/Application/Preferences/CPreferenceKeys.cp
242 242 const char* cRecognizeQuotesKey_2_0 = "Recognized Quotes v2_0"; // New in v2.0b6 243 243 const char* cRecognizeURLsKey_1_4 = "Recognized URLs"; // Deprecated format as of v2.0b6 244 244 const char* cRecognizeURLsKey_2_0 = "Recognized URLs v2_0"; // New in v2.0b6 245 const char* cRecognizeReplyPrefixesKey = "Recognized Reply Prefixes"; 245 246 #if __dest_os == __linux_os 246 247 const char* cSelectionColourKey = "Selection Colour "OS_PART; // New in v2.0.6b3 247 248 #endif