Changeset 5034:f467353f5657 for pop.c
Legend:
- Unmodified
- Added
- Removed
-
pop.c
r5027 r5034 429 429 430 430 /* close POP mailbox */ 431 voidpop_close_mailbox (CONTEXT *ctx)431 int pop_close_mailbox (CONTEXT *ctx) 432 432 { 433 433 POP_DATA *pop_data = (POP_DATA *)ctx->data; 434 434 435 435 if (!pop_data) 436 return ;436 return 0; 437 437 438 438 pop_logout (ctx); … … 451 451 mutt_bcache_close (&pop_data->bcache); 452 452 453 return ;453 return 0; 454 454 } 455 455 … … 515 515 516 516 /* see if we can put in body cache; use our cache as fallback */ 517 if (!(msg->fp = mutt_bcache_put (pop_data->bcache, h->data )))517 if (!(msg->fp = mutt_bcache_put (pop_data->bcache, h->data, 1))) 518 518 { 519 519 /* no */ … … 539 539 * the file in bcache or from POP's own cache since the next iteration 540 540 * of the loop will re-attempt to put() the message */ 541 if (bcache) 542 mutt_bcache_del (pop_data->bcache, h->data); 543 else 541 if (!bcache) 544 542 unlink (path); 545 543 … … 562 560 * portion of the headers, those required for the main display. 563 561 */ 564 if (!bcache) 562 if (bcache) 563 mutt_bcache_commit (pop_data->bcache, h->data); 564 else 565 565 { 566 566 cache->index = h->index;
