1MAIL::LOGINURLDECODE(3x)Cone: COnsole Newsreader And EMAIL::LOGINURLDECODE(3x)
2
3
4

NAME

6       mail::loginUrlDecode - Decode a mail account URL
7

SYNOPSIS

9       #include <libmail/mail.H>
10
11       #include <libmail/logininfo.H>
12
13       mail::loginInfo urlInfo;
14
15       bool ok=mail::account::loginDecode(std::string url, urlInfo);
16
17                                          std::string method=urlInfo.method;
18                                          std::string server=urlInfo.server;
19                                          std::string uid=urlInfo.uid;
20                                          std::string pwd=urlInfo.pwd;
21                                          std::map<std::string, std::string>::iterator
22                                              optionBegin=urlInfo.options.begin(),
23                                              optionEnd=urlInfo.options.end();
24

USAGE

26       This function does the opposite of mail::loginUrlEncode(3x); a mail
27       account URL string is broken down into its components:
28
29       method
30           The protocol name.
31
32       server
33           The name of the mail account´s server
34
35       uid
36           The mail account login ID.
37
38       pwd
39           The mail account´s password, if specified by the URL.
40
41       options
42           This map lists any additional options specified by the URL (all
43           “/name=value” options are placed into this map).
44

RETURN CODES

46       This function returns true if urlInfo (a reference to a mail::loginInfo
47       object) was initialized from the contents of a valid URL, or false if
48       the URL was not valid.
49

SEE ALSO

51       mail::loginUrlEncode(3x).
52
53
54
55[FIXME: source]                   05/08/2010          MAIL::LOGINURLDECODE(3x)
Impressum