Changeset 5011:b0172175cc89 for commands.c
- Timestamp:
- 2007-03-20 13:39:29 (21 months ago)
- Branch:
- default
- Files:
-
- 1 modified
-
commands.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r4889 r5011 41 41 #endif 42 42 43 #ifdef BUFFY_SIZE44 43 #include "buffy.h" 45 #endif46 44 47 45 #include <errno.h> … … 704 702 CONTEXT ctx; 705 703 struct stat st; 706 #ifdef BUFFY_SIZE707 704 BUFFY *tmp = NULL; 708 #else709 705 struct utimbuf ut; 710 #endif711 706 712 707 *redraw = 0; … … 843 838 if (need_buffy_cleanup) 844 839 { 845 #ifdef BUFFY_SIZE 846 tmp = mutt_find_mailbox (buf); 847 if (tmp && !tmp->new) 848 mutt_update_mailbox (tmp); 849 #else 850 /* fix up the times so buffy won't get confused */ 851 if (st.st_mtime > st.st_atime) 852 { 853 ut.actime = st.st_atime; 854 ut.modtime = time (NULL); 855 utime (buf, &ut); 840 if (option(OPTCHECKMBOXSIZE)) 841 { 842 tmp = mutt_find_mailbox (buf); 843 if (tmp && !tmp->new) 844 mutt_update_mailbox (tmp); 856 845 } 857 846 else 858 utime (buf, NULL); 859 #endif 847 { 848 /* fix up the times so buffy won't get confused */ 849 if (st.st_mtime > st.st_atime) 850 { 851 ut.actime = st.st_atime; 852 ut.modtime = time (NULL); 853 utime (buf, &ut); 854 } 855 else 856 utime (buf, NULL); 857 } 860 858 } 861 859
