Show
Ignore:
Timestamp:
07/09/07 10:02:18 (2 years ago)
Author:
daboo
Message:

Some 4.1 changes. Mostly vCard/CardDAV and CalDAV scheduling support.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/v4.1d1/Sources_Common/Mail/URLs/CURL.cp

    r19 r86  
    155155 
    156156        // Strip off main scheme 
    157         if (temp.compare_start(cURLMainScheme)) 
     157        if (temp.compare_start(cURLMainScheme, true)) 
    158158                temp.erase(0, ::strlen(cURLMainScheme)); 
    159159 
    160160        // Only handle HTTP, HTTPS & Webcal right now 
    161161        uint32_t punt_size = 0; 
    162         if (temp.compare_start(cHTTPURLScheme)) 
     162        if (temp.compare_start(cHTTPURLScheme, true)) 
    163163        { 
    164164                mSchemeType = eHTTP; 
    165165                punt_size = ::strlen(cHTTPURLScheme); 
    166166        } 
    167         else if (temp.compare_start(cHTTPSURLScheme)) 
     167        else if (temp.compare_start(cHTTPSURLScheme, true)) 
    168168        { 
    169169                mSchemeType = eHTTPS; 
    170170                punt_size = ::strlen(cHTTPSURLScheme); 
    171171        } 
    172         else if (temp.compare_start(cWEBCALURLScheme)) 
     172        else if (temp.compare_start(cWEBCALURLScheme, true)) 
    173173        { 
    174174                mSchemeType = eWebcal; 
    175175                punt_size = ::strlen(cWEBCALURLScheme); 
     176        } 
     177        else if (temp.compare_start(cMailtoURLScheme, true)) 
     178        { 
     179                mSchemeType = eMailto; 
     180                punt_size = ::strlen(cMailtoURLScheme); 
    176181        } 
    177182         
     
    221226                break; 
    222227        } 
     228        case eMailto: 
     229        { 
     230                if (punt_size != 0) 
     231                { 
     232                        mScheme.assign(temp, 0, punt_size); 
     233                        temp.erase(0, punt_size); 
     234                } 
     235                 
     236                // Look for server 
     237                mServer = temp; 
     238                break; 
     239        } 
     240                 
    223241        default:; 
    224242        }