1 Cone©
2
3MAIL::LOGINURLDECODE(3x)Cone: COnsole Newsreader And EMAIL::LOGINURLDECODE(3x)
4
5
6
8 mail::loginUrlDecode - Decode a mail account URL
9
11 #include <libmail/mail.H>
12
13 #include <libmail/logininfo.H>
14
15 mail::loginInfo urlInfo;
16
17 bool ok=mail::account::loginDecode(std::string url, urlInfo);
18
19 std::string method=urlInfo.method;
20 std::string server=urlInfo.server;
21 std::string uid=urlInfo.uid;
22 std::string pwd=urlInfo.pwd;
23 std::map<std::string, std::string>::iterator
24 optionBegin=urlInfo.options.begin(),
25 optionEnd=urlInfo.options.end();
26
28 This function does the opposite of mail::loginUrlEncode(3x); a mail
29 account URL string is broken down into its components:
30
31 method
32 The protocol name.
33
34 server
35 The name of the mail account's server
36
37 uid
38 The mail account login ID.
39
40 pwd
41 The mail account's password, if specified by the URL.
42
43 options
44 This map lists any additional options specified by the URL (all
45 “/name=value” options are placed into this map).
46
48 This function returns true if urlInfo (a reference to a mail::loginInfo
49 object) was initialized from the contents of a valid URL, or false if
50 the URL was not valid.
51
53 mail::loginUrlEncode(3x).
54
56 Sam Varshavchik
57
58
59
60Cone© 08/25/2016 MAIL::LOGINURLDECODE(3x)