diff options
| author | Sam Varshavchik | 2013-08-19 16:39:41 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2013-08-25 14:43:51 -0400 | 
| commit | 9c45d9ad13fdf439d44d7443ae75da15ea0223ed (patch) | |
| tree | 7a81a04cb51efb078ee350859a64be2ebc6b8813 /libmail/misc.H | |
| parent | a9520698b770168d1f33d6301463bb70a19655ec (diff) | |
| download | courier-libs-9c45d9ad13fdf439d44d7443ae75da15ea0223ed.tar.bz2 | |
Initial checkin
Imported from subversion report, converted to git. Updated all paths in
scripts and makefiles, reflecting the new directory hierarchy.
Diffstat (limited to 'libmail/misc.H')
| -rw-r--r-- | libmail/misc.H | 54 | 
1 files changed, 54 insertions, 0 deletions
| diff --git a/libmail/misc.H b/libmail/misc.H new file mode 100644 index 0000000..2f108ba --- /dev/null +++ b/libmail/misc.H @@ -0,0 +1,54 @@ +/* +** Copyright 2003-2004, Double Precision Inc. +** +** See COPYING for distribution information. +*/ +#ifndef libmail_misc_H +#define libmail_misc_H + +#include "libmail_config.h" +#include "namespace.H" + +#include <string> + +LIBMAIL_START + +class loginInfo; + +std::string toutf8(std::string); +std::string fromutf8(std::string); + +std::string hostname(); +	// Return this machine's name + +enum readMode {readHeadersFolded, readContents, readBoth, readHeaders}; + +void upper(std::string &w); +	// +	// Convert the string to uppercase characters using the ISO-8859-1 +	// character set + +std::string homedir(); +	// +	// The home directory of the userid running this application. + +std::string loginUrlEncode(std::string method, +			   std::string server, std::string uid, +			   std::string password); +	// Create a new mail account URL. +	// method - the support method (imap, pop3Account, etc...) +	// server - the name of the mail account's server +	// uid - mail account ID +	// pwd - mail account password + +bool loginUrlDecode(std::string url, class loginInfo &info); +	// Decode a mail account URL +	// +	// url - the URL. +	// +	// info - login information + + +LIBMAIL_END + +#endif | 
