|
| How to manage delete mail in Thunderbird |
 |
Wed, 16 Apr 2008 03:22:17 -070 |
Hi,
I am not sure whether this is the right forum for this mail, But
firing it anyway.
I am writing mails into Thunderbird Inbox programmatically(using
Python, through file I/O). Now If I delete the mail from Thunderbird,
it is no longer showed in the UI. Depending on whether the compact
folder option is on or off the mail will either be deleted permanently
or not(I am assuming that is maintained through msf files. am I
right?).
The following scenario is happening when the compact folder was off:
* I write a mail into Thunderbird through Python
* I delete the mail from Thunderbird
* The mail is no longer showed in the UI - but it is not deleted
permanently as the compact option was off.
* Now I write a different mail into Thunderbird through Python, along
with the new mail the earlier deleted mail also appears in the
Thunderbird UI.
I compared the differences between the msf files when I write through
python versus when Thunderbird fetches new mail through POP3. There is
some difference but it is not making any sense to me.
Is there a special way to write into Thunderbird? Where will I get
more documentation on this.
Any help is appreciated,
|
| Post Reply
|
| Re: How to manage delete mail in Thunderbird |
 |
Wed, 16 Apr 2008 20:30:32 +053 |
sanjeet said the following On 04/16/2008 03:52 PM:
> Hi,
>
> I am not sure whether this is the right forum for this mail, But
> firing it anyway.
>
> I am writing mails into Thunderbird Inbox programmatically(using
> Python, through file I/O). Now If I delete the mail from Thunderbird,
> it is no longer showed in the UI. Depending on whether the compact
> folder option is on or off the mail will either be deleted permanently
> or not(I am assuming that is maintained through msf files. am I
> right?).
>
> The following scenario is happening when the compact folder was off:
>
> * I write a mail into Thunderbird through Python
> * I delete the mail from Thunderbird
> * The mail is no longer showed in the UI - but it is not deleted
> permanently as the compact option was off.
> * Now I write a different mail into Thunderbird through Python, along
> with the new mail the earlier deleted mail also appears in the
> Thunderbird UI.
>
> I compared the differences between the msf files when I write through
> python versus when Thunderbird fetches new mail through POP3. There is
> some difference but it is not making any sense to me.
>
> Is there a special way to write into Thunderbird? Where will I get
> more documentation on this.
>
> Any help is appreciated,
> Sanjeet.
I believe Thunderbird understand status of a message ( read / unread /
deleted / deleted from trash / forwarded ) by looking into
'X-Mozilla-Status' header of corresponding mail in mbox file .
Generally a message , 'read and deleted' should have 'X-Mozilla-Status'
as '0009' ( for more information about X-Mozilla-Status , see
"http://www.eyrich-net.org/mozilla/X-Mozilla-Status.html?en" ) . As
long
as this value remain intact , a message deleted from Trash should never
reappear , unless you are experiencing a bug .
Are you adding 'X-Mozilla-Status' while writing mail into mbox ?
Btw , if you delete msf file of that mbox manually just after
|
| Post Reply
|
|
|
|
|
|
|
|
|
|