1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/*
* email-service
*
* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/******************************************************************************
* File : email-core-imap-mailbox.h
* Desc : Mail IMAP mailbox Header
*
* Auth :
*
* History :
* 2006.08.01 : created
*****************************************************************************/
#ifndef __EMAIL_CORE_IMAP_MAILBOX_H__
#define __EMAIL_CORE_IMAP_MAILBOX_H__
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
INTERNAL_FUNC int emcore_check_sync_imap_mailbox(email_mailbox_t *mailbox, int *synchronous, int *err_code);
/**
* Get mailbox list from imap server.
*
* @param[in] account_id Specifies the account ID.
* @param[in] mailbox Specifies the target mailbox. if NULL, get all mailbox.
* @param[in] callback Specifies the callback function for retrieving mailbox list.
* @param[out] err_code Specifies the error code returned.
* @remarks N/A
* @return This function returns true on success or false on failure.
*/
INTERNAL_FUNC int emcore_sync_mailbox_list(int account_id, char *mailbox, int *err_code);
/**
* Download mailbox list from imap server.
*
* @param[in] stream Specifies the internal mail stream.
* @param[in] mailbox Specifies the target mailbox. if NULL, get all mailbox.
* @param[out] mailbox_list The returned mailbox are saved here.
* @param[out] count The count of mailbox is saved here.
* @param[out] err_code Specifies the error code returned.
* @remarks N/A
* @return This function returns true on success or false on failure.
*/
INTERNAL_FUNC int emcore_download_mailbox_list(void *mail_stream, char *mailbox, email_internal_mailbox_t **mailbox_list, int *count, int *err_code);
INTERNAL_FUNC int emcore_delete_imap_mailbox(int input_mailbox_id, int *err_code);
INTERNAL_FUNC int emcore_create_imap_mailbox(email_mailbox_t *mailbox, int *err_code);
INTERNAL_FUNC int emcore_move_mailbox_on_imap_server(int input_account_id, char *input_old_mailbox_path, char *input_new_mailbox_path);
INTERNAL_FUNC int emcore_set_sync_imap_mailbox(email_internal_mailbox_t *mailbox, int synchronous, int *err_code);
INTERNAL_FUNC int emcore_set_mail_slot_size(int account_id, int mailbox_id, int new_slot_size, int *err_code);
INTERNAL_FUNC int emcore_remove_overflowed_mails(emstorage_mailbox_tbl_t *intput_mailbox_tbl, int *err_code);
INTERNAL_FUNC int emcore_get_default_mail_slot_count(int *output_count, int *err_code);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
|