"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/doveadm/doveadm-dump-log.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

doveadm-dump-log.c  (dovecot-2.3.16):doveadm-dump-log.c  (dovecot-2.3.17)
skipping to change at line 521 skipping to change at line 521
mail_transaction_update_modseq(&hdr, data, modseq, version); mail_transaction_update_modseq(&hdr, data, modseq, version);
if (*modseq > prev_modseq) if (*modseq > prev_modseq)
printf(", modseq=%"PRIu64, *modseq); printf(", modseq=%"PRIu64, *modseq);
printf("\n"); printf("\n");
log_record_print(&hdr, data, data_size, modseq); log_record_print(&hdr, data, data_size, modseq);
i_stream_skip(input, data_size); i_stream_skip(input, data_size);
return 1; return 1;
} }
static void cmd_dump_log(int argc ATTR_UNUSED, char *argv[]) static void cmd_dump_log(const char *path, const char *const *args ATTR_UNUSED)
{ {
struct istream *input; struct istream *input;
uint64_t modseq; uint64_t modseq;
unsigned int version; unsigned int version;
int ret; int ret;
input = i_stream_create_file(argv[1], SIZE_MAX); input = i_stream_create_file(path, SIZE_MAX);
dump_hdr(input, &modseq, &version); dump_hdr(input, &modseq, &version);
do { do {
ret = dump_record(input, &modseq, version); ret = dump_record(input, &modseq, version);
} T_END; } T_END;
} while (ret > 0); } while (ret > 0);
i_stream_unref(&input); i_stream_unref(&input);
} }
static bool test_dump_log(const char *path) static bool test_dump_log(const char *path)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)