mail-index-write.c revision 8e57335924f5ff57cbd1929ec99764dc267c3312
878N/A/* Copyright (C) 2003-2007 Timo Sirainen */ 878N/A/* if we're updating >= count-n messages, recreate the index */ 878N/A /* write base header */ 878N/A /* write extended headers */ /* write extended headers */ /* Write base header last. If we happen to crash in above pwrites, it doesn't matter because we haven't yet written log file offsets, so all the changes will be re-applied and the header/data state will The base header changes practically always, so map->write_base_header might not be TRUE here in all situations. It's used only to figure out if we want to write the map at all. */ /* header size growed. we can't update this file anymore. */ /* index file doesn't exist, it's corrupted or we haven't opened it for some reason */ /* the file is so small that we don't even bother trying to update it / changes are so large we might as well recreate */ /* we can't update the file unless it's the same as it was when we last read it. this is the first quick check before /* locking failed, recreate */ /* changed, we can't trust updating it anymore */