Changeset 5398:1bdb7a7c3c8f
- Timestamp:
- 2008-05-21 11:36:33 (6 months ago)
- Author:
- Rocco Rutte <pdmef@…>
- Branch:
- HEAD
- Message:
-
Fix new mail detection for >2 GB mboxes with $check_mbox_size set
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5396
|
r5398
|
|
| | 1 | 2008-05-21 19:23 +0200 Rocco Rutte <pdmef@gmx.net> (4a2a637ba8a3) |
| | 2 | |
| | 3 | * mbox.c, sendlib.c: Use ftello() instead of ftell() in more places |
| | 4 | that need it (fixes progress updates for >2 GB mbox files) |
| | 5 | |
| | 6 | 2008-05-21 18:30 +0200 Rocco Rutte <pdmef@gmx.net> (927465b4aab2) |
| | 7 | |
| | 8 | * ChangeLog, doc/manual.xml.head, init.h: Improve documentation for |
| | 9 | handling multiple folders and new mail detection |
| | 10 | |
| 1 | 11 | 2008-05-20 17:08 +0200 Paul Walker <paul@black-sun.demon.co.uk> (a4d423798321) |
| 2 | 12 | |
-
|
r5011
|
r5398
|
|
| 49 | 49 | * upon success return 0. If no message found - return -1 */ |
| 50 | 50 | |
| 51 | | int fseek_last_message (FILE * f) |
| | 51 | static int fseek_last_message (FILE * f) |
| 52 | 52 | { |
| 53 | 53 | LOFF_T pos; |
| … |
… |
|
| 95 | 95 | |
| 96 | 96 | /* Return 1 if the last message is new */ |
| 97 | | int test_last_status_new (FILE * f) |
| | 97 | static int test_last_status_new (FILE * f) |
| 98 | 98 | { |
| 99 | 99 | HEADER *hdr; |
| … |
… |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | | int test_new_folder (const char *path) |
| | 117 | static int test_new_folder (const char *path) |
| 118 | 118 | { |
| 119 | 119 | FILE *f; |
| … |
… |
|
| 161 | 161 | |
| 162 | 162 | if (stat (b->path, &sb) == 0) |
| 163 | | b->size = (long) sb.st_size; |
| | 163 | b->size = (off_t) sb.st_size; |
| 164 | 164 | else |
| 165 | 165 | b->size = 0; |
| … |
… |
|
| 236 | 236 | { |
| 237 | 237 | /* some systems out there don't have an off_t type */ |
| 238 | | (*tmp)->size = (long) sb.st_size; |
| | 238 | (*tmp)->size = (off_t) sb.st_size; |
| 239 | 239 | } |
| 240 | 240 | else |
| … |
… |
|
| 359 | 359 | { |
| 360 | 360 | /* some other program has deleted mail from the folder */ |
| 361 | | tmp->size = (long) sb.st_size; |
| | 361 | tmp->size = (off_t) sb.st_size; |
| 362 | 362 | } |
| 363 | 363 | if (tmp->newly_created && |
| … |
… |
|
| 397 | 397 | } |
| 398 | 398 | else if (option(OPTCHECKMBOXSIZE) && Context && Context->path) |
| 399 | | tmp->size = (long) sb.st_size; /* update the size */ |
| | 399 | tmp->size = (off_t) sb.st_size; /* update the size of current folder */ |
| 400 | 400 | |
| 401 | 401 | if (!tmp->new) |
-
|
r5011
|
r5398
|
|
| 24 | 24 | { |
| 25 | 25 | char *path; |
| 26 | | long size; |
| | 26 | off_t size; |
| 27 | 27 | struct buffy_t *next; |
| 28 | 28 | short new; /* mailbox has new mail */ |