Searched refs:msg (Results 1 - 25 of 56) sorted by relevance

123

/dovecot/src/lib-mail/
H A Dmbox-from.c22 static int mbox_parse_month(const unsigned char *msg, struct tm *tm) argument
27 if (i_memcasecmp(months[i], msg, 3) == 0) {
33 if (i == 12 && memcmp(msg, "???", 3) == 0) {
38 if (i == 12 || msg[3] != ' ')
43 static int mbox_parse_year(const unsigned char *msg, struct tm *tm) argument
45 if (!i_isdigit(msg[0]) || !i_isdigit(msg[1]) ||
46 !i_isdigit(msg[2]) || !i_isdigit(msg[3]))
49 tm->tm_year = (msg[
54 mbox_from_parse(const unsigned char *msg, size_t size, time_t *time_r, int *tz_offset_r, char **sender_r) argument
[all...]
H A Dmbox-from.h4 /* Parse time and sender from mbox-compatible From_-line. msg points to the
6 int mbox_from_parse(const unsigned char *msg, size_t size,
H A Dmessage-size.c11 const unsigned char *msg; local
19 while ((ret = i_stream_read_bytes(input, &msg, &size, startpos + 1)) > 0) {
21 if (msg[i] != '\n') {
22 if (msg[i] == '\0')
28 if (i == 0 || msg[i-1] != '\r') {
33 if (i == 0 || (i == 1 && msg[i-1] == '\r')) {
38 if ((i > 0 && msg[i-1] == '\n') ||
39 (i > 1 && msg[i-2] == '\n' && msg[i-1] == '\r')) {
71 const unsigned char *msg; local
133 const unsigned char *msg; local
[all...]
H A Dmessage-header-parser.c59 const unsigned char *msg; local
84 ret = i_stream_read_bytes(ctx->input, &msg, &size, startpos+2);
107 (msg[0] == '\n' ||
108 (msg[0] == '\r' && size > 1 && msg[1] == '\n'))) {
115 if (msg[0] == '\r') {
138 if (IS_LWSP(msg[i])) {
143 if (i == min_pos && (msg[size-1] == '\r' ||
144 msg[size-1] == '\n')) {
151 if (size > 0 && msg[siz
[all...]
/dovecot/src/plugins/push-notification/
H A Dpush-notification-txn-msg.c9 #include "push-notification-txn-msg.h"
16 struct push_notification_txn_msg *msg = NULL; local
19 msg = hash_table_lookup(txn->messages,
25 if (msg == NULL) {
26 msg = p_new(txn->pool, struct push_notification_txn_msg, 1);
27 msg->mailbox = mailbox_get_vname(mail->box);
29 msg->seq = txn->t->save_count;
30 msg->uid = mail->uid;
33 msg);
36 return msg;
88 push_notification_txn_msg_get_eventdata(struct push_notification_txn_msg *msg, const char *event_name) argument
105 push_notification_txn_msg_set_eventdata(struct push_notification_txn *txn, struct push_notification_txn_msg *msg, struct push_notification_event_config *event, void *data) argument
124 push_notification_txn_msg_deinit_eventdata(struct push_notification_txn_msg *msg) argument
[all...]
H A Dpush-notification-event-messageexpunge.c10 #include "push-notification-txn-msg.h"
29 struct push_notification_txn_msg *msg)
33 data = push_notification_txn_msg_get_eventdata(msg, EVENT_NAME);
38 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
49 .msg = {
26 push_notification_event_messageexpunge_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg) argument
H A Dpush-notification-txn-msg.h32 push_notification_txn_msg_get_eventdata(struct push_notification_txn_msg *msg,
36 struct push_notification_txn_msg *msg,
40 push_notification_txn_msg_deinit_eventdata(struct push_notification_txn_msg *msg);
H A Dpush-notification-event-messageread.c10 #include "push-notification-txn-msg.h"
25 struct push_notification_txn_msg *msg,
33 data = push_notification_txn_msg_get_eventdata(msg, EVENT_NAME);
40 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
52 .msg = {
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.c10 #include "push-notification-txn-msg.h"
25 struct push_notification_txn_msg *msg,
33 data = push_notification_txn_msg_get_eventdata(msg, EVENT_NAME);
40 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
52 .msg = {
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-driver-dlog.c9 #include "push-notification-txn-msg.h"
64 struct push_notification_txn_msg *msg)
71 msg->mailbox, msg->uid, msg->uid_validity);
73 if (array_is_created(&msg->eventdata)) {
74 array_foreach(&msg->eventdata, event) {
75 if ((*event)->event->event->msg.debug_msg != NULL) {
76 (*event)->event->event->msg.debug_msg(*event);
62 push_notification_driver_dlog_process_msg(struct push_notification_driver_txn *dtxn ATTR_UNUSED, struct push_notification_txn_msg *msg) argument
H A Dpush-notification-triggers.h56 struct push_notification_txn_msg *msg);
60 struct push_notification_txn_msg *msg);
64 struct push_notification_txn_msg *msg);
68 struct push_notification_txn_msg *msg,
73 struct push_notification_txn_msg *msg,
H A Dpush-notification-events.h65 struct push_notification_txn_msg *msg,
70 struct push_notification_txn_msg *msg,
75 struct push_notification_txn_msg *msg);
79 struct push_notification_txn_msg *msg,
85 struct push_notification_txn_msg *msg,
100 struct push_notification_event_vfuncs_msg msg; member in struct:push_notification_event
H A Dpush-notification-event-flagsset.c11 #include "push-notification-txn-msg.h"
55 struct push_notification_txn_msg *msg,
60 data = push_notification_txn_msg_get_eventdata(msg, EVENT_NAME);
67 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
76 struct push_notification_txn_msg *msg,
114 data = push_notification_event_flagsset_get_data(ptxn, msg, ec);
122 struct push_notification_txn_msg *msg,
129 data = push_notification_event_flagsset_get_data(ptxn, msg, ec);
166 .msg = {
54 push_notification_event_flagsset_get_data(struct push_notification_txn *ptxn, struct push_notification_txn_msg *msg, struct push_notification_event_config *ec) argument
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.c12 #include "push-notification-txn-msg.h"
115 struct push_notification_txn_msg **msg,
118 if (*msg == NULL) {
119 *msg = push_notification_txn_msg_create(txn, mail);
128 struct push_notification_txn_msg *msg)
132 push_notification_trigger_msg_common(txn, mail, &msg,
138 (*ec)->event->msg_triggers.save(txn, *ec, msg, mail);
147 struct push_notification_txn_msg *msg)
151 push_notification_trigger_msg_common(txn, mail, &msg,
157 (*ec)->event->msg_triggers.append(txn, *ec, msg, mai
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-event-flagsclear.c11 #include "push-notification-txn-msg.h"
55 struct push_notification_txn_msg *msg,
62 data = push_notification_txn_msg_get_eventdata(msg, EVENT_NAME);
73 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
82 struct push_notification_txn_msg *msg,
99 data = push_notification_event_flagsclear_get_data(ptxn, msg, ec);
117 struct push_notification_txn_msg *msg,
126 data = push_notification_event_flagsclear_get_data(ptxn, msg, ec);
171 .msg = {
54 push_notification_event_flagsclear_get_data(struct push_notification_txn *ptxn, struct push_notification_txn_msg *msg, struct push_notification_event_config *ec) argument
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-messageappend.c13 #include "push-notification-txn-msg.h"
53 struct push_notification_txn_msg *msg,
65 data = push_notification_txn_msg_get_eventdata(msg, EVENT_NAME);
69 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
109 .msg = {
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-messagenew.c16 #include "push-notification-txn-msg.h"
63 struct push_notification_txn_msg *msg,
77 data = push_notification_txn_msg_get_eventdata(msg, EVENT_NAME);
83 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
130 .msg = {
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
/dovecot/src/lib-lua/
H A Ddlua-dovecot.c11 const char *msg = luaL_checkstring(script->L, 1); local
12 i_debug("%s", msg);
19 const char *msg = luaL_checkstring(script->L, 1); local
20 i_info("%s", msg);
27 const char *msg = luaL_checkstring(script->L, 1); local
28 i_warning("%s", msg);
35 const char *msg = luaL_checkstring(script->L, 1); local
36 i_error("%s", msg);
/dovecot/src/lib/
H A Dfdpass.c106 struct msghdr msg; local
114 memset(&msg, 0, sizeof(struct msghdr));
119 msg.msg_iov = (void *)&iov;
120 msg.msg_iovlen = 1;
125 msg.msg_control = buf;
126 msg.msg_controllen = sizeof(buf);
128 cmsg = CMSG_FIRSTHDR(&msg);
137 msg.msg_controllen = cmsg->cmsg_len;
140 return sendmsg(handle, &msg, 0);
156 struct msghdr msg; local
[all...]
/dovecot/src/lib-http/
H A Dhttp-message-parser.c34 pool_unref(&parser->msg.pool);
55 pool_unref(&parser->msg.pool);
56 i_zero(&parser->msg);
58 parser->msg.pool = pool;
61 parser->msg.date = (time_t)-1;
66 if (parser->msg.pool == NULL)
67 parser->msg.pool = pool_alloconly_create("http_message", 4096);
68 return parser->msg.pool;
92 parser->msg.version_major = p[5] - '0';
93 parser->msg
364 struct http_message *msg = &parser->msg; local
[all...]
H A Dhttp-response-parser.c358 parser->parser.msg.content_length > 0) {
362 parser->parser.msg.content_length);
400 hdrval = http_header_field_get(parser->parser.msg.header, "Retry-After");
403 (hdrval, parser->parser.msg.date, &retry_after);
412 response->version_major = parser->parser.msg.version_major;
413 response->version_minor = parser->parser.msg.version_minor;
414 response->location = parser->parser.msg.location;
415 response->date = parser->parser.msg.date;
418 response->header = parser->parser.msg.header;
419 response->connection_options = parser->parser.msg
[all...]
/dovecot/src/plugins/mail-log/
H A Dmail-log-plugin.c196 struct mail_log_message *msg, string_t *str, uint32_t uid)
203 msg->pretext = p_strdup(ctx->pool, str_c(str));
244 struct mail_log_message *msg; local
248 msg = p_new(ctx->pool, struct mail_log_message, 1);
263 mail_log_append_uid(ctx, msg, text, mail->uid);
267 mail_log_append_uid(ctx, msg, text, 0);
307 msg->event = event;
308 msg->text = p_strdup(ctx->pool, str_c(text));
309 DLLIST2_APPEND(&ctx->messages, &ctx->messages_tail, msg);
315 struct mail_log_message *msg; local
195 mail_log_append_uid(struct mail_log_mail_txn_context *ctx, struct mail_log_message *msg, string_t *str, uint32_t uid) argument
429 mail_log_save(const struct mail_log_message *msg, uint32_t uid) argument
447 struct mail_log_message *msg; local
[all...]
/dovecot/src/imap/
H A Dcmd-copy.c120 string_t *msg; local
147 msg = t_str_new(256);
159 str_append(msg, "OK No messages found.");
165 str_append(msg, move ? "OK Move completed." :
172 str_printfa(msg, "* OK [COPYUID %u %s ",
174 imap_write_seq_range(msg, &changes.saved_uids);
175 str_append(msg, "] Moved UIDs.");
176 client_send_line(client, str_c(msg));
178 str_truncate(msg, 0);
179 str_append(msg, "O
[all...]
/dovecot/src/lib-smtp/
H A Dsmtp-reply.c108 string_t *msg = t_str_new(256); local
113 str_printfa(msg, "%03u", reply->status);
115 str_append_c(msg, ' ');
116 str_append(msg, enh_code);
122 if (str_len(msg) > 0)
123 str_append_c(msg, ' ');
124 str_append(msg, *lines);
127 return str_c(msg);
/dovecot/src/imap-urlauth/
H A Dimap-urlauth.c135 const char *msg = "NO\n"; local
150 if (write(client->fd, msg, strlen(msg)) < 0) {
167 if (write(client->fd, msg, strlen(msg)) < 0) {
184 const char *msg = "NO\n"; local
185 if (write(client->fd, msg, strlen(msg)) < 0) {

Completed in 38 milliseconds

123