~ubuntu-branches/ubuntu/karmic/cyrus-imapd-2.2/karmic

« back to all changes in this revision

Viewing changes to imap/mailbox.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-07-11 18:51:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060711185139-gl3oe4tppp7g3euf
Tags: 2.2.13-4ubuntu1
Synchronize with Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* mailbox.c -- Mailbox manipulation routines
2
 
 * $Id: mailbox.c,v 1.156 2005/02/14 06:39:57 shadow Exp $
 
2
 * $Id: mailbox.c,v 1.159 2005/04/07 00:25:52 shadow Exp $
3
3
 * Copyright (c) 1998-2003 Carnegie Mellon University.  All rights reserved.
4
4
 *
5
5
 * Redistribution and use in source and binary forms, with or without
1780
1780
            
1781
1781
            cache_offset = ntohl(*((bit32 *)(buf+OFFSET_CACHE_OFFSET)));
1782
1782
 
 
1783
            if (cache_offset == 0) {
 
1784
                syslog(LOG_ERR, "IOERROR: reading index header for %s: got 0 cache_offset on message %u/%lu; trying recovery",
 
1785
                       mailbox->name, msgno, mailbox->exists);
 
1786
                continue;
 
1787
            }
 
1788
 
1783
1789
            /* Fix up cache file offset */
1784
1790
            *((bit32 *)(buf+OFFSET_CACHE_OFFSET)) =
1785
1791
                htonl(new_cache_total_size);