1mail::loginUrlDecode(3x) Miscellaneous functions mail::loginUrlDecode(3x)
2
3
4
6 mail::loginUrlDecode - Decode a mail account URL
7
9 #include <libmail/mail.H>
10
11 #include <libmail/logininfo.H>
12
13 mail::loginInfo urlInfo;
14
15
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 The protocol name.
32
33 server The name of the mail account's server
34
35 uid The mail account login ID.
36
37 pwd The mail account's password, if specified by the URL.
38
39 options
40 This map lists any additional options specified by the URL (all
41 ``/name=value'' options are placed into this map).
42
44 This function returns true if urlInfo (a reference to a mail::loginInfo
45 object) was initialized from the contents of a valid URL, or false if
46 the URL was not valid.
47
49 mail::loginUrlEncode(3x).
50
51
52
53 10 April 2006 mail::loginUrlDecode(3x)