+2008-05-21 19:23 +0200 Rocco Rutte <pdmef@gmx.net> (4a2a637ba8a3)
+
+ * mbox.c, sendlib.c: Use ftello() instead of ftell() in more places
+ that need it (fixes progress updates for >2 GB mbox files)
+
+2008-05-21 18:30 +0200 Rocco Rutte <pdmef@gmx.net> (927465b4aab2)
+
+ * ChangeLog, doc/manual.xml.head, init.h: Improve documentation for
+ handling multiple folders and new mail detection
+
2008-05-20 17:08 +0200 Paul Walker <paul@black-sun.demon.co.uk> (a4d423798321)
* parse.c: Fix more compiler warnings on amd64 by use of %p instead of
/* Find the last message in the file.
* upon success return 0. If no message found - return -1 */
-int fseek_last_message (FILE * f)
+static int fseek_last_message (FILE * f)
{
LOFF_T pos;
char buffer[BUFSIZ + 9]; /* 7 for "\n\nFrom " */
}
/* Return 1 if the last message is new */
-int test_last_status_new (FILE * f)
+static int test_last_status_new (FILE * f)
{
HEADER *hdr;
ENVELOPE* tmp_envelope;
return result;
}
-int test_new_folder (const char *path)
+static int test_new_folder (const char *path)
{
FILE *f;
int rc = 0;
return;
if (stat (b->path, &sb) == 0)
- b->size = (long) sb.st_size;
+ b->size = (off_t) sb.st_size;
else
b->size = 0;
return;
stat ((*tmp)->path, &sb) == 0 && !test_new_folder ((*tmp)->path))
{
/* some systems out there don't have an off_t type */
- (*tmp)->size = (long) sb.st_size;
+ (*tmp)->size = (off_t) sb.st_size;
}
else
(*tmp)->size = 0;
else if (option(OPTCHECKMBOXSIZE))
{
/* some other program has deleted mail from the folder */
- tmp->size = (long) sb.st_size;
+ tmp->size = (off_t) sb.st_size;
}
if (tmp->newly_created &&
(sb.st_ctime != sb.st_mtime || sb.st_ctime != sb.st_atime))
}
}
else if (option(OPTCHECKMBOXSIZE) && Context && Context->path)
- tmp->size = (long) sb.st_size; /* update the size */
+ tmp->size = (off_t) sb.st_size; /* update the size of current folder */
if (!tmp->new)
tmp->notified = 0;