#include <libmail/mail.H>
#include <libmail/logininfo.H>
mail::loginInfo urlInfo;
std::string method=urlInfo.method;
std::string server=urlInfo.server;
std::string uid=urlInfo.uid;
std::string pwd=urlInfo.pwd;
std::map<std::string, std::string>::iterator
optionBegin=urlInfo.options.begin(),
optionEnd=urlInfo.options.end();
This function does the opposite of mail::account::loginUrlEncode(3x); a mail account URL string is broken down into its components:
The protocol name.
The name of the mail account's server
The mail account login ID.
The mail account's password, if specified by the URL.
This map lists any additional options specified by the URL (all "/name=value" options are placed into this map).
This function returns true if urlInfo (a reference to a mail::loginInfo object) was initialized from the contents of a valid URL, or false if the URL was not valid.
<<< Previous | Home | Next >>> |
mail::account::loginUrlEncode | Up | mail::folder Native API reference |