Diffstat (limited to 'kmicromail/libetpan/generic/mailstorage.c') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libetpan/generic/mailstorage.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kmicromail/libetpan/generic/mailstorage.c b/kmicromail/libetpan/generic/mailstorage.c index 25e561e..dc91744 100644 --- a/kmicromail/libetpan/generic/mailstorage.c +++ b/kmicromail/libetpan/generic/mailstorage.c | |||
@@ -318,16 +318,23 @@ void mailstorage_disconnect(struct mailstorage * storage) | |||
318 | return; | 318 | return; |
319 | 319 | ||
320 | r = mailsession_logout(storage->sto_session); | 320 | r = mailsession_logout(storage->sto_session); |
321 | 321 | ||
322 | mailsession_free(storage->sto_session); | 322 | mailsession_free(storage->sto_session); |
323 | storage->sto_session = NULL; | 323 | storage->sto_session = NULL; |
324 | } | 324 | } |
325 | 325 | ||
326 | |||
327 | int mailstorage_noop(struct mailstorage * storage) | ||
328 | { | ||
329 | return mailsession_noop(storage->sto_session); | ||
330 | } | ||
331 | |||
332 | |||
326 | static int mailstorage_get_folder(struct mailstorage * storage, | 333 | static int mailstorage_get_folder(struct mailstorage * storage, |
327 | char * pathname, mailsession ** result) | 334 | char * pathname, mailsession ** result) |
328 | { | 335 | { |
329 | if (storage->sto_driver->sto_get_folder_session == NULL) | 336 | if (storage->sto_driver->sto_get_folder_session == NULL) |
330 | return MAIL_ERROR_NOT_IMPLEMENTED; | 337 | return MAIL_ERROR_NOT_IMPLEMENTED; |
331 | 338 | ||
332 | return storage->sto_driver->sto_get_folder_session(storage, | 339 | return storage->sto_driver->sto_get_folder_session(storage, |
333 | pathname, result); | 340 | pathname, result); |