mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core:/POP3: destructor now calls LogOff
git-svn-id: svn://ultimatepp.org/upp/trunk@7100 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0d8a792952
commit
157c25b9d6
2 changed files with 10 additions and 6 deletions
|
|
@ -219,7 +219,8 @@ bool Pop3::Logout()
|
|||
if(IsOnline())
|
||||
PutGet("QUIT\r\n");
|
||||
LLOG(Format(t_("Closing connection to %s:%d."), host, port));
|
||||
Close();
|
||||
if(IsOpen())
|
||||
Close();
|
||||
online = false;
|
||||
return true;
|
||||
}
|
||||
|
|
@ -233,6 +234,5 @@ Pop3::Pop3()
|
|||
|
||||
Pop3::~Pop3()
|
||||
{
|
||||
if(IsOpen())
|
||||
Close();
|
||||
Logout();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,7 +118,8 @@ Returns true on success.&]
|
|||
[s5;:Pop3`:`:Logout`(`): [@(0.0.255) bool]_[* Logout]()&]
|
||||
[s2;%% Logout of and disconnect from the POP3 server. Messages marked
|
||||
for deletion will be permanently deleted from the server after
|
||||
a successful logout. Returns true on success.&]
|
||||
a successful logout. Returns true on success. Calling Logout
|
||||
on mailbox that is not online does nothing.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:Pop3`:`:IsOnline`(`)const: [@(0.0.255) bool]_[* IsOnline]()_[@(0.0.255) const]&]
|
||||
|
|
@ -133,9 +134,12 @@ a successful logout. Returns true on success.&]
|
|||
[*@3 b]_`=_[@(0.0.255) true])&]
|
||||
[s2;%% Activates logging of POP3.&]
|
||||
[s3;%% &]
|
||||
[ {{10000F(128)G(128)@1 [s0;%% [* Constructor detail]]}}&]
|
||||
[s0; &]
|
||||
[s4; &]
|
||||
[s5;:Pop3`:`:Pop3`(`): [* Pop3]()&]
|
||||
[s2;%% Default constructor.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:Pop3`:`:`~Pop3`(`): [@(0.0.255) `~][* Pop3]()&]
|
||||
[s2;%% Destructor calls Logout.&]
|
||||
[s3; &]
|
||||
[s0;%% ]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue