Lines Matching refs:msg
196 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;
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;
317 msg = p_new(ctx->pool, struct mail_log_message, 1);
318 msg->event = event;
319 msg->ignore = TRUE;
320 DLLIST2_APPEND(&ctx->messages, &ctx->messages_tail, msg);
429 static void mail_log_save(const struct mail_log_message *msg, uint32_t uid)
431 if (msg->ignore) {
433 } else if (msg->pretext == NULL)
434 i_info("%s", msg->text);
436 i_info("%s%u%s", msg->pretext, uid, msg->text);
438 i_info("%serror%s", msg->pretext, msg->text);
447 struct mail_log_message *msg;
453 for (msg = ctx->messages; msg != NULL; msg = msg->next) {
454 if (msg->event == MAIL_LOG_EVENT_SAVE ||
455 msg->event == MAIL_LOG_EVENT_COPY) {
458 mail_log_save(msg, uid);
460 i_assert(msg->pretext == NULL);
461 i_info("%s", msg->text);