mbox-save.c revision e07e9e786ea841f14a140316994850449406687d
/* 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);
}
}
const char *mbox_path)
{
char ch;
if (pos == 0)
return TRUE;
do {
break;
break;
if (ch != '\n') {
break;
}
return TRUE;
} while (0);
return FALSE;
}
{
return FALSE;
}
return TRUE;
}
{
if (*my_hostdomain == '\0') {
hostpid_init();
/* failed, use just the hostname */
name = my_hostname;
}
}
return FALSE;
}
return TRUE;
}
{
const char *mbox_path;
return FALSE;
}
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) ||
/* failed, truncate file back to original size */
}
}
return !failed;
}