mail.c revision 539977f9257bd8985be5a8093658da266ae9cd19
/* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "buffer.h"
#include "hex-binary.h"
#include "crc32.h"
#include "sha1.h"
#include "hostpid.h"
#include "mail-storage-private.h"
#include <time.h>
struct mailbox_header_lookup_ctx *wanted_headers)
{
T_BEGIN {
} T_END;
return mail;
}
{
}
{
}
{
}
{
}
{
return p->v.get_modseq(mail);
}
{
return p->v.get_keywords(mail);
}
{
return p->v.get_keyword_indexes(mail);
}
{
}
{
int tz;
if (timezone_r == NULL)
timezone_r = &tz;
}
{
}
{
}
{
}
{
}
const char **value_r)
{
}
const char **value_r)
{
}
const char *const **value_r)
{
}
const char *const **value_r)
{
}
struct mailbox_header_lookup_ctx *headers,
{
}
{
"Mail field not cached");
return -1;
}
{
return mail_set_aborted(mail);
}
const char **value_r)
{
}
{
return p->v.get_real_mail(mail);
}
enum mail_flags flags)
{
}
struct mail_keywords *keywords)
{
}
{
}
{
}
{
if (p->v.update_pop3_uidl != NULL)
}
{
}
{
"Message was expunged");
}
{
}
const char *mail_generate_guid_string(void)
{
static unsigned int pid = 0;
/* we'll use the current time in nanoseconds as the initial 64bit
counter. */
i_fatal("clock_gettime() failed: %m");
} else {
}
return t_strdup_printf("%04x%04lx%04x%s",
pid, my_hostname);
}
{
/* we'll use the current time in nanoseconds as the initial 64bit
counter. */
i_fatal("clock_gettime() failed: %m");
} else {
}
}
void mail_generate_guid_128_hash(const char *guid,
{
unsigned char sha1_sum[SHA1_RESULTLEN];
/* not 128bit hex. use a hash of it instead. */
buffer_set_used_size(&buf, 0);
#endif
}
}
{
unsigned int i;
for (i = 0; i < MAIL_GUID_128_SIZE; i++) {
if (guid_128[i] != 0)
return FALSE;
}
return TRUE;
}
{
}