Changeset 5500:78aab353e217
- Timestamp:
- 2008-08-29 01:23:28 (3 months ago)
- Author:
- YONETANI Tomokazu <qhwt+mutt@…>
- Branch:
- HEAD
- Message:
-
Only consider empty files non-existent for buffy's purpose.
According to SUS, the st_size member of struct stat is undefined
for directories. In case a system reports 0, the newly_created
flag will be set for a directory and the magic will be cleared.
If the folder type is cleared, mutt won't check the folder for
new mail and thus will ignore MH and Maildir type folders on
such a fs completely (e.g. the HAMMER fs on DragonFly? BSD).
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5497
|
r5500
|
|
| | 1 | 2008-08-28 11:19 -0700 Brendan Cully <brendan@kublai.com> (1d94905ad00b) |
| | 2 | |
| | 3 | * imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c: |
| | 4 | The msgset changes seem buggy. Reverting pending further testing. |
| | 5 | |
| | 6 | 2008-08-28 02:31 -0700 Brendan Cully <brendan@kublai.com> (e68f79fef249) |
| | 7 | |
| | 8 | * imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c: |
| | 9 | Split long IMAP commands for the benefit of lazy servers (closes |
| | 10 | #3000). Also touches lots of old, hairy code. Likely to wake |
| | 11 | sleeping dogs. |
| | 12 | |
| | 13 | 2008-08-26 23:09 -0700 Brendan Cully <brendan@kublai.com> (2731e5174c5a) |
| | 14 | |
| | 15 | * ChangeLog, imap/util.c, mutt_sasl.c, mutt_ssl.c, mutt_ssl_gnutls.c: |
| | 16 | Properly set the SASL external auth name when using SSL client |
| | 17 | certs. Also zero out the account structure before filling it with |
| | 18 | available data. Client certificates + SASL EXTERNAL were only |
| | 19 | working by luck. |
| | 20 | |
| 1 | 21 | 2008-08-26 02:07 -0700 Brendan Cully <brendan@kublai.com> (22498996719f) |
| 2 | 22 | |
-
|
r5443
|
r5500
|
|
| 309 | 309 | else |
| 310 | 310 | #endif |
| 311 | | if (stat (tmp->path, &sb) != 0 || sb.st_size == 0 || |
| | 311 | if (stat (tmp->path, &sb) != 0 || (S_ISREG(sb.st_mode) && sb.st_size == 0) || |
| 312 | 312 | (!tmp->magic && (tmp->magic = mx_get_magic (tmp->path)) <= 0)) |
| 313 | 313 | { |