mbox-save.c revision c21747303bfb01e6b1f1e9f81988a17ce329296b
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "hostpid.h"
#include "iobuffer.h"
#include "write-full.h"
#include "mbox-index.h"
#include "mbox-lock.h"
#include "mbox-storage.h"
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <netdb.h>
{
else {
"mbox file %s: %m", mbox_path);
}
return FALSE;
}
const char *mbox_path)
{
char ch;
if (pos == 0)
return TRUE;
do {
break;
break;
if (ch != '\n') {
break;
}
return TRUE;
} while (0);
}
{
return TRUE;
}
{
if (*my_hostdomain == '\0') {
hostpid_init();
/* failed, use just the hostname */
name = my_hostname;
}
}
return TRUE;
}
{
const char *str;
unsigned int field;
int i;
if (flags == 0)
return TRUE;
}
"\n", NULL);
}
if (flags & MAIL_CUSTOM_FLAGS_MASK) {
strlen(custom_flags[i])) < 0)
}
}
}
return TRUE;
}
{
const char *mbox_path;
return FALSE;
}
/* we don't need the real flags, easier to keep using our own.
real_flags = flags;
return FALSE;
/* append the data into mbox file */
if (fd == -1) {
return FALSE;
}
return mail_storage_set_index_error(ibox);
}
if (pos < 0) {
"lseek() failed for mbox file %s: %m",
} else {
internal_date) ||
custom_flags) ||
/* failed, truncate file back to original size */
}
}
return !failed;
}