~ubuntu-dev/ubuntu/lucid/mutt/lucid-201002110857

« back to all changes in this revision

Viewing changes to imap/browse.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-06-07 17:30:03 UTC
  • mto: (16.2.1 experimental) (2.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090607173003-rg37ui3h2bbv7wl0
Tags: upstream-1.5.19
ImportĀ upstreamĀ versionĀ 1.5.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (C) 1996-9 Brandon Long <blong@fiction.net>
3
 
 * Copyright (C) 1999-2007 Brendan Cully <brendan@kublai.com>
 
3
 * Copyright (C) 1999-2008 Brendan Cully <brendan@kublai.com>
4
4
 * 
5
5
 *     This program is free software; you can redistribute it and/or modify
6
6
 *     it under the terms of the GNU General Public License as published by
228
228
    return -1;
229
229
  }
230
230
 
231
 
  if (!imap_mxcmp(mx.mbox, idata->mailbox))
 
231
  if (idata->ctx && !imap_mxcmp(mx.mbox, idata->mailbox))
232
232
  {
233
233
    state->new = idata->ctx->new;
234
234
    state->messages = idata->ctx->msgcount;
239
239
    state->messages = status->messages;
240
240
  }
241
241
 
 
242
  FREE (&mx.mbox);
 
243
 
242
244
  return 0;
243
245
}
244
246
 
329
331
    goto fail;
330
332
  }
331
333
 
332
 
  if (imap_rename_mailbox (idata, &mx, newname) < 0) {
 
334
  imap_fix_path (idata, newname, buf, sizeof (buf));
 
335
 
 
336
  if (imap_rename_mailbox (idata, &mx, buf) < 0) {
333
337
    mutt_error (_("Rename failed: %s"), imap_get_qualifier (idata->buf));
334
338
    mutt_sleep (1);
335
339
    goto fail;