Searched defs:mail (Results 1 - 25 of 108) sorted by relevance

12345

/dovecot/src/imap/
H A Dimap-expunge.c4 #include "mail-storage.h"
5 #include "mail-search-build.h"
13 struct mail *mail; local
35 while (mailbox_search_next(ctx, &mail)) {
37 mail_expunge(mail);
H A Dimap-sync-private.h22 struct mail *mail; member in struct:imap_sync_context
/dovecot/src/lib-storage/index/dbox-single/
H A Dsdbox-mail.c7 #include "index-mail.h"
8 #include "dbox-mail.h"
14 static void sdbox_mail_set_expunged(struct dbox_mail *mail) argument
16 struct mail *_mail = &mail->imail.mail.mail;
28 static int sdbox_mail_file_set(struct dbox_mail *mail) argument
30 struct mail *_mail = &mail
65 struct dbox_mail *mail = DBOX_MAIL(_mail); local
104 sdbox_mail_open(struct dbox_mail *mail, uoff_t *offset_r, struct dbox_file **file_r) argument
[all...]
H A Dsdbox-copy.c10 #include "mail-copy.h"
93 sdbox_copy_hardlink(struct mail_save_context *_ctx, struct mail *mail) argument
102 if (strcmp(mail->box->storage->name, SDBOX_STORAGE_NAME) == 0)
103 src_mbox = SDBOX_MAILBOX(mail->box);
109 src_file = sdbox_file_init(src_mbox, mail->uid);
130 read the file (the mail could still have the
134 mail_set_critical(mail, "link(%s, %s) failed: %m",
153 index_copy_cache_fields(_ctx, mail, ctx->seq);
161 int sdbox_copy(struct mail_save_context *_ctx, struct mail *mai argument
[all...]
/dovecot/src/lib-storage/index/
H A Dindex-pop3-uidl.c5 #include "index-mail.h"
21 bool index_pop3_uidl_can_exist(struct mail *mail) argument
32 saved mail, which isn't worth it. */
33 mail_index_get_header_ext(mail->transaction->view,
34 mail->box->pop3_uidl_hdr_ext_id,
41 return mail->uid <= uidl.max_uid_with_pop3_uidl;
44 void index_pop3_uidl_update_exists(struct mail *mail, bool exists) argument
46 struct mailbox_transaction_context *trans = mail
[all...]
H A Distream-mail.c4 #include "mail-storage-private.h"
6 #include "index-mail.h"
7 #include "istream-mail.h"
12 struct mail *mail; member in struct:mail_istream
20 struct mail *mail = mstream->mail; local
28 mail_storage_last_error_push(mail->box->storage);
29 orig_lookup_abort = mail
149 i_stream_create_mail(struct mail *mail, struct istream *input, bool input_has_body) argument
[all...]
H A Dindex-search-result.c6 #include "mail-search.h"
58 struct mail *mail; local
77 while (mailbox_search_next(search_ctx, &mail)) {
80 if (next_uid != mail->uid) {
85 mail->uid-1);
86 i_assert(next_uid == mail->uid);
97 mailbox_search_result_add(result, mail->uid);
142 struct mail *mail; local
[all...]
H A Dindex-status.c5 #include "mail-cache.h"
6 #include "mail-index-modseq.h"
60 through the shared index and for each existing mail lookup its
61 private flags. if a mail doesn't exist in private index then its
275 struct mail *mail; local
286 mail = mail_alloc(t, 0, NULL);
288 mail_set_seq(mail, seq);
289 if (mail_get_save_date(mail, &metadata_r->first_save_date) == 0) {
298 mail_free(&mail);
[all...]
/dovecot/src/plugins/push-notification/
H A Dpush-notification-event-messageappend.c7 #include "mail-storage.h"
54 struct mail *mail)
74 (mail_get_first_header(mail, "To", &value) >= 0)) {
80 (mail_get_first_header(mail, "From", &value) >= 0)) {
86 (mail_get_first_header(mail, "Subject", &value) >= 0)) {
92 (mail_get_special(mail, MAIL_FETCH_BODY_SNIPPET, &value) >= 0)) {
51 push_notification_event_messageappend_event(struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail) argument
H A Dpush-notification-event-messageread.c4 #include "mail-storage.h"
5 #include "mail-types.h"
26 struct mail *mail,
35 flags = mail_get_flags(mail);
22 push_notification_event_messageread_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, enum mail_flags old_flags) argument
H A Dpush-notification-event-messagetrash.c4 #include "mail-storage.h"
5 #include "mail-types.h"
26 struct mail *mail,
35 flags = mail_get_flags(mail);
22 push_notification_event_messagetrash_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, enum mail_flags old_flags) argument
H A Dpush-notification-event-messagenew.c8 #include "mail-storage.h"
64 struct mail *mail)
88 (mail_get_first_header(mail, "To", &value) >= 0)) {
94 (mail_get_first_header(mail, "From", &value) >= 0)) {
100 (mail_get_first_header(mail, "Subject", &value) >= 0)) {
106 (mail_get_date(mail, &date, &tz) >= 0)) {
113 (mail_get_special(mail, MAIL_FETCH_BODY_SNIPPET, &value) >= 0)) {
61 push_notification_event_messagenew_event(struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail) argument
H A Dpush-notification-event-flagsclear.c5 #include "mail-storage.h"
6 #include "mail-types.h"
83 struct mail *mail,
100 flags = mail_get_flags(mail);
118 struct mail *mail,
127 keywords = mail_get_keywords(mail);
79 push_notification_event_flagsclear_flags_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, enum mail_flags old_flags) argument
114 push_notification_event_flagsclear_keywords_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, const char *const *old_keywords) argument
H A Dpush-notification-event-flagsset.c5 #include "mail-storage.h"
6 #include "mail-types.h"
77 struct mail *mail,
91 flags = mail_get_flags(mail);
123 struct mail *mail,
130 keywords = mail_get_keywords(mail);
73 push_notification_event_flagsset_flags_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, enum mail_flags old_flags) argument
119 push_notification_event_flagsset_keywords_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, const char *const *old_keywords) argument
H A Dpush-notification-triggers.c6 #include "mail-storage.h"
114 struct mail *mail,
119 *msg = push_notification_txn_msg_create(txn, mail);
127 struct mail *mail,
132 push_notification_trigger_msg_common(txn, mail, &msg,
138 (*ec)->event->msg_triggers.save(txn, *ec, msg, mail);
146 struct mail *mail,
113 push_notification_trigger_msg_common(struct push_notification_txn *txn, struct mail *mail, struct push_notification_txn_msg **msg, enum push_notification_event_trigger trigger) argument
126 push_notification_trigger_msg_save_new(struct push_notification_txn *txn, struct mail *mail, struct push_notification_txn_msg *msg) argument
145 push_notification_trigger_msg_save_append(struct push_notification_txn *txn, struct mail *mail, struct push_notification_txn_msg *msg) argument
164 push_notification_trigger_msg_save_expunge(struct push_notification_txn *txn, struct mail *mail, struct push_notification_txn_msg *msg) argument
183 push_notification_trigger_msg_flag_change(struct push_notification_txn *txn, struct mail *mail, struct push_notification_txn_msg *msg, enum mail_flags old_flags) argument
204 push_notification_trigger_msg_keyword_change(struct push_notification_txn *txn, struct mail *mail, struct push_notification_txn_msg *msg, const char *const *old_keywords) argument
[all...]
H A Dpush-notification-txn-msg.c5 #include "mail-storage-private.h"
14 struct mail *mail)
27 msg->mailbox = mailbox_get_vname(mail->box);
30 msg->uid = mail->uid;
13 push_notification_txn_msg_create(struct push_notification_txn *txn, struct mail *mail) argument
/dovecot/src/doveadm/
H A Ddoveadm-mail-search.c4 #include "mail-storage.h"
7 #include "doveadm-mail-iter.h"
8 #include "doveadm-mail.h"
18 struct mail *mail; local
36 while (doveadm_mail_iter_next(iter, &mail)) {
39 doveadm_print(dec2str(mail->uid));
H A Ddoveadm-mail-flags.c5 #include "mail-storage.h"
7 #include "doveadm-mail-iter.h"
8 #include "doveadm-mail.h"
25 struct mail *mail; local
43 while (doveadm_mail_iter_next(iter, &mail)) {
44 mail_update_flags(mail, ctx->modify_type, ctx->flags);
46 mail_update_keywords(mail, ctx->modify_type, kw);
/dovecot/src/lib-storage/index/raw/
H A Draw-mail.c5 #include "index-mail.h"
12 static int raw_mail_stat(struct mail *mail) argument
14 struct raw_mailbox *mbox = RAW_MAILBOX(mail->box);
17 if (mail->lookup_abort == MAIL_LOOKUP_ABORT_NOT_IN_CACHE) {
18 mail_set_aborted(mail);
21 mail->mail_metadata_accessed = TRUE;
23 mail->transaction->stats.fstat_lookup_count++;
24 if (i_stream_stat(mail->box->input, TRUE, &st) < 0) {
25 mail_set_critical(mail, "sta
40 struct index_mail *mail = INDEX_MAIL(_mail); local
54 struct index_mail *mail = INDEX_MAIL(_mail); local
68 struct index_mail *mail = INDEX_MAIL(_mail); local
85 struct index_mail *mail = INDEX_MAIL(_mail); local
[all...]
/dovecot/src/lib-storage/
H A Dmail-copy.c5 #include "mail-storage-private.h"
6 #include "mail-copy.h"
9 mail_copy_set_failed(struct mail_save_context *ctx, struct mail *mail, argument
15 if (ctx->transaction->box->storage == mail->box->storage)
18 errstr = mail_storage_get_last_error(mail->box->storage, &error);
24 struct mail *mail)
30 if (mail_get_received_date(mail, &received_date) < 0) {
31 mail_copy_set_failed(ctx, mail, "receive
23 mail_save_copy_default_metadata(struct mail_save_context *ctx, struct mail *mail) argument
57 mail_storage_try_copy(struct mail_save_context **_ctx, struct mail *mail) argument
96 mail_storage_copy(struct mail_save_context *ctx, struct mail *mail) argument
[all...]
/dovecot/src/lib-lda/
H A Dmail-send.c15 #include "mail-storage.h"
16 #include "mail-storage-settings.h"
19 #include "mail-deliver.h"
22 #include "mail-send.h"
27 get_var_expand_table(struct mail *mail, argument
32 if (mail_get_first_header(mail, "Subject", &subject) <= 0)
57 struct mail *mail = ctx->src_mail; local
68 if (mail_get_first_header(mail, "Messag
[all...]
/dovecot/src/lib-storage/index/cydir/
H A Dcydir-mail.c5 #include "index-mail.h"
12 static const char *cydir_mail_get_path(struct mail *mail) argument
16 dir = mailbox_get_path(mail->box);
17 return t_strdup_printf("%s/%u.", dir, mail->uid);
20 static int cydir_mail_stat(struct mail *mail, struct stat *st_r) argument
24 if (mail->lookup_abort == MAIL_LOOKUP_ABORT_NOT_IN_CACHE) {
25 mail_set_aborted(mail);
28 mail
45 struct index_mail *mail = INDEX_MAIL(_mail); local
62 struct index_mail *mail = INDEX_MAIL(_mail); local
79 struct index_mail *mail = INDEX_MAIL(_mail); local
100 struct index_mail *mail = INDEX_MAIL(_mail); local
[all...]
/dovecot/src/lib-storage/index/maildir/
H A Dmaildir-copy.c12 #include "index-mail.h"
13 #include "mail-copy.h"
58 maildir_copy_hardlink(struct mail_save_context *ctx, struct mail *mail) argument
68 if (strcmp(mail->box->storage->name, MAILDIR_STORAGE_NAME) == 0)
69 src_mbox = MAILDIR_MAILBOX(mail->box);
70 else if (strcmp(mail->box->storage->name, "raw") == 0) {
87 if (maildir_file_do(src_mbox, mail->uid,
92 if (mail_get_special(mail, MAIL_FETCH_STORAGE_ID,
104 /* hardlinked to tmp/, treat as normal copied mail */
123 maildir_copy(struct mail_save_context *ctx, struct mail *mail) argument
[all...]
/dovecot/src/lib-storage/index/dbox-multi/
H A Dmdbox-mail.c7 #include "index-mail.h"
8 #include "dbox-mail.h"
55 static void dbox_mail_set_expunged(struct dbox_mail *mail, uint32_t map_uid) argument
57 struct mail *_mail = &mail->imail.mail.mail;
72 static int dbox_mail_open_init(struct dbox_mail *mail, uint32_t map_uid) argument
74 struct mdbox_mailbox *mbox = MDBOX_MAILBOX(mail->imail.mail
94 mdbox_mail_open(struct dbox_mail *mail, uoff_t *offset_r, struct dbox_file **file_r) argument
150 mdbox_mail_get_save_date(struct mail *mail, time_t *date_r) argument
172 struct dbox_mail *mail = DBOX_MAIL(_mail); local
212 mdbox_mail_update_flags(struct mail *mail, enum modify_type modify_type, enum mail_flags flags) argument
[all...]
/dovecot/src/lib-storage/index/pop3c/
H A Dpop3c-mail.c6 #include "index-mail.h"
11 struct mail *
16 struct pop3c_mail *mail; local
19 pool = pool_alloconly_create("mail", 2048);
20 mail = p_new(pool, struct pop3c_mail, 1);
21 mail->imail.mail.pool = pool;
23 index_mail_init(&mail->imail, t, wanted_fields, wanted_headers);
24 return &mail->imail.mail
58 struct index_mail *mail = INDEX_MAIL(_mail); local
71 struct index_mail *mail = INDEX_MAIL(_mail); local
110 pop3c_mail_cache_size(struct index_mail *mail) argument
173 struct index_mail *mail = &pmail->imail; local
[all...]

Completed in 58 milliseconds

12345