From f635c0855cbcfe454be68bb7a16dc880bc5f0e7d Mon Sep 17 00:00:00 2001 From: geby Date: Mon, 16 Feb 2015 13:54:14 +0000 Subject: [PATCH] TIMAPSend.AuthLogin - set AuthDone (Dirk Jansen) git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@199 7c85be65-684b-0410-a082-b2ed4fbef004 --- imapsend.pas | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/imapsend.pas b/imapsend.pas index 85ac3fa..08a51e3 100644 --- a/imapsend.pas +++ b/imapsend.pas @@ -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;