TIMAPSend.AuthLogin - set AuthDone (Dirk Jansen)

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@199 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2015-02-16 13:54:14 +00:00
parent 15f28e452c
commit f635c0855c

View File

@ -1,9 +1,9 @@
{==============================================================================|
| Project : Ararat Synapse | 002.005.003 |
| Project : Ararat Synapse | 002.005.004 |
|==============================================================================|
| Content: IMAP4rev1 client |
|==============================================================================|
| Copyright (c)1999-2012, Lukas Gebauer |
| Copyright (c)1999-2015, Lukas Gebauer |
| All rights reserved. |
| |
| Redistribution and use in source and binary forms, with or without |
@ -33,7 +33,7 @@
| DAMAGE. |
|==============================================================================|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
| Portions created by Lukas Gebauer are Copyright (c)2001-2012. |
| Portions created by Lukas Gebauer are Copyright (c)2001-2015. |
| All Rights Reserved. |
|==============================================================================|
| Contributor(s): |
@ -501,6 +501,8 @@ end;
function TIMAPSend.AuthLogin: Boolean;
begin
Result := IMAPcommand('LOGIN "' + FUsername + '" "' + FPassword + '"') = 'OK';
if Result then
FAuthDone := True;
end;
function TIMAPSend.Connect: Boolean;