mail::loginUrlDecode — Decode a mail account URL
#include <libmail/mail.H>
#include <libmail/logininfo.H>
mail::loginInfo urlInfo;
bool
ok=mail::account::loginDecode( |
std::string url, |
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::loginUrlEncode(3x); a mail account URL string is broken down into its components:
method
The protocol name.
server
The name of the mail account's server
uid
The mail account login ID.
pwd
The mail account's password, if specified by the URL.
options
This map lists any additional options specified by
the URL (all “/name
=value
”
options are placed into this map).