Changeset 898


Ignore:
Timestamp:
Dec 31, 2007, 1:41:15 AM (18 years ago)
Author:
Gregg Young
Message:

Add option to not use <mailto:> wrapper (it doesn't work with the old pmmail); Cleanup of mailrun code; Replaced dunno.ico with a new version from David

Location:
trunk/dll
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/fm3dlg.h

    r896 r898  
    673673
    674674#define CFGH_FRAME                                                                      25344
     675#define CFGH_NOMAILTOMAILRUN                                                            25345
    675676#define CFGH_HTTPRUN                                                                    25346
    676677#define CFGH_FTPRUN                                                                     25347
  • trunk/dll/fm3dll.h

    r896 r898  
    14151415  fFM2Deletes, fAutoAddAllDirs, fConfirmTarget, fChangeTarget,
    14161416  fFirstTime, fShowTarget, fNoFinger, fDrivebarHelp, fCheckMM,
    1417   fSubjectLengthMax, fNoLargeFileSupport,
     1417  fSubjectLengthMax, fNoLargeFileSupport, fNoMailtoMailRun,
    14181418  fHttpRunWPSDefault, fFtpRunWPSDefault, fLibPathStrictMailRun,
    14191419  fLibPathStrictHttpRun, fLibPathStrictFtpRun;
  • trunk/dll/fm3res.dlg

    r896 r898  
    19621962        AUTOCHECKBOX    "Use WPS default for run ftp",
    19631963                        CFGH_FTPRUNWPSDEFAULT, 4, 110, 156, 10
     1964        AUTOCHECKBOX    "Don't use <mailto> wrapper",
     1965                        CFGH_NOMAILTOMAILRUN, 4, 98, 156, 10
    19641966        AUTOCHECKBOX    "Use LIBPATHSTRICT for run http",
    19651967                        CFGH_LIBPATHSTRICTHTTPRUN, 162, 122, 156, 10
  • trunk/dll/init.c

    r896 r898  
    12061206  PrfQueryProfileData(fmprof, appname, "HttpRunDir", httprundir, &size);
    12071207  size = sizeof(mailrundir);
    1208   PrfQueryProfileData(fmprof, appname, "MailRun", mailrun, &size);
     1208  PrfQueryProfileData(fmprof, appname, "MailRunDir", mailrundir, &size);
    12091209  size = sizeof(lasttoolbox);
    12101210  PrfQueryProfileData(fmprof, FM3Str, "LastToolBox", lasttoolbox,
     
    12181218  size = sizeof(BOOL);
    12191219  PrfQueryProfileData(fmprof, appname, "LibPathStrictMailRun", &fLibPathStrictMailRun,
     1220                      &size);
     1221  size = sizeof(BOOL);
     1222  PrfQueryProfileData(fmprof, appname, "NoMailtoMailRun", &fNoMailtoMailRun,
    12201223                      &size);
    12211224  size = sizeof(BOOL);
  • trunk/dll/newview.c

    r896 r898  
    154154  remove_first_occurence_of_character("\n", pszSrc);
    155155  if (!strstr(pszSrc, " ")){
    156     if (!stristr(pszSrc, "<mailto:")) {
     156    if (!stristr(pszSrc, "<mailto:") && !fNoMailtoMailRun) {
    157157      strip_lead_char("<", pszSrc);
    158158      strip_trail_char(">", pszSrc);
     
    163163    }
    164164    else {
     165      strip_lead_char("<", pszSrc);
     166      strip_trail_char(">", pszSrc);
    165167      return pszSrc;
    166168    }
     
    179181    pszCharCounter++;
    180182  *pszCharCounter = 0;
    181   if (!stristr(pszSrc, "<mailto:")) {
     183  if (!stristr(pszSrc, "<mailto:") && !fNoMailtoMailRun) {
    182184    strip_lead_char("<", pszSrc);
    183185    strip_trail_char(">", pszSrc);
     
    188190    }
    189191  else {
     192    strip_lead_char("<", pszSrc);
     193    strip_trail_char(">", pszSrc);
    190194    return pszSrc;
    191195  }
  • trunk/dll/notebook.c

    r896 r898  
    544544    WinCheckButton(hwnd, CFGH_LIBPATHSTRICTFTPRUN, fLibPathStrictFtpRun);
    545545    WinCheckButton(hwnd, CFGH_LIBPATHSTRICTMAILRUN, fLibPathStrictMailRun);
     546    WinCheckButton(hwnd, CFGH_NOMAILTOMAILRUN, fNoMailtoMailRun);
    546547    return 0;
    547548
     
    702703      PrfWriteProfileData(fmprof, appname, "LibPathStrictMailRun",
    703704                          &fLibPathStrictMailRun, sizeof(BOOL));
     705      fNoMailtoMailRun = WinQueryButtonCheckstate(hwnd, CFGH_NOMAILTOMAILRUN);
     706      PrfWriteProfileData(fmprof, appname, "NoMailtoMailRun",
     707                          &fNoMailtoMailRun, sizeof(BOOL));
    704708      break;
    705709    }
Note: See TracChangeset for help on using the changeset viewer.