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:
methodThe protocol name.
serverThe name of the mail account's server
uidThe mail account login ID.
pwdThe mail account's password, if specified by the URL.
optionsThis map lists any additional options specified by
the URL (all “/name=value”
options are placed into this map).