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;