/* Copyright (c) 2004-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "md5.h"
#include "message-parser.h"
#include "mbox-md5.h"
struct mbox_md5_context {
bool seen_received_hdr;
};
struct mbox_md5_header_func {
const char *header;
struct message_header_line *hdr);
};
struct message_header_line *hdr)
{
if (!ctx->seen_received_hdr) {
/* Received-header contains date too, and more trusted one */
}
return TRUE;
}
struct message_header_line *hdr)
{
return TRUE;
}
struct message_header_line *hdr)
{
if (!ctx->seen_received_hdr) {
/* Received-header contains unique ID too,
and more trusted one */
}
return TRUE;
}
struct message_header_line *hdr)
{
if (!ctx->seen_received_hdr) {
/* get only the first received-header */
}
return TRUE;
}
struct message_header_line *hdr)
{
/* Let the local delivery agent help generate unique ID's but don't
blindly trust this header alone as it could just as easily come from
the remote. */
return TRUE;
}
{ "Date", parse_date },
{ "Delivered-To", parse_delivered_to },
{ "Message-ID", parse_message_id },
{ "Received", parse_received },
{ "X-Delivery-ID", parse_x_delivery_id }
};
{
}
{
return ctx;
}
struct message_header_line *hdr)
{
}
{
}
};