[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mail's "quit" copies deleted messages to MBOX (w/ patch)
From: |
Matthew Whitworth |
Subject: |
mail's "quit" copies deleted messages to MBOX (w/ patch) |
Date: |
Tue, 16 Jul 2002 15:49:24 -0700 (PDT) |
The mail program's "quit" command copies messages that have been
marked as deleted from the system inbox to $MBOX. The problem seems
to be that mail_mbox_commit() never explicitly checks if messages have
been deleted before moving them.
I've been using the provided patch (see below) all day today, and it seems
to work just fine.
Matthew
---
Index: mail/quit.c
===================================================================
RCS file: /cvsroot/mailutils/mailutils/mail/quit.c,v
retrieving revision 1.11
diff -c -r1.11 quit.c
*** mail/quit.c 16 Jul 2002 10:27:53 -0000 1.11
--- mail/quit.c 16 Jul 2002 22:23:28 -0000
***************
*** 94,102 ****
}
message_get_attribute (msg, &attr);
! if (!is_user_mbox &&
! (attribute_is_userflag (attr, MAIL_ATTRIBUTE_MBOXED)
! || (!hold && attribute_is_read (attr))))
{
if (!dest_mbox)
{
--- 94,104 ----
}
message_get_attribute (msg, &attr);
! if (!is_user_mbox
! && (attribute_is_userflag (attr, MAIL_ATTRIBUTE_MBOXED)
! || (!hold
! && attribute_is_read (attr)
! && !attribute_is_deleted (attr))))
{
if (!dest_mbox)
{
- mail's "quit" copies deleted messages to MBOX (w/ patch),
Matthew Whitworth <=