Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imap: Move struct imap_sync_context to imap-sync-private.h
- Loading branch information
Showing
3 changed files
with
38 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef IMAP_SYNC_PRIVATE_H | ||
#define IMAP_SYNC_PRIVATE_H | ||
|
||
#include "imap-sync.h" | ||
|
||
struct imap_sync_context { | ||
struct client *client; | ||
struct mailbox *box; | ||
enum imap_sync_flags imap_flags; | ||
|
||
struct mailbox_transaction_context *t; | ||
struct mailbox_sync_context *sync_ctx; | ||
struct mail *mail; | ||
|
||
struct mailbox_status status; | ||
struct mailbox_sync_status sync_status; | ||
|
||
struct mailbox_sync_rec sync_rec; | ||
ARRAY_TYPE(keywords) tmp_keywords; | ||
ARRAY_TYPE(seq_range) expunges; | ||
uint32_t seq; | ||
|
||
ARRAY_TYPE(seq_range) search_adds, search_removes; | ||
unsigned int search_update_idx; | ||
|
||
unsigned int messages_count; | ||
|
||
unsigned int failed:1; | ||
unsigned int finished:1; | ||
unsigned int no_newmail:1; | ||
unsigned int have_new_mails:1; | ||
unsigned int search_update_notifying:1; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters