Deleting Mails and Syncing Folders to Disk



Hi there,

I had a couple of things I wanted to try and implement - but can't seem 
to work out how to do...

Firstly - I wanted a per mailbox option to not move a mail to trash when 
it is deleted, but to flag it as deleted in the mailbox instead. I would 
use this on folders contaiing mailing lists, since I don't want those 
messages mixing with my personal ones in the trash can.

I managed to get a simple GUI hooked up, but failed to find out how to 
mark the messages as deleted, rather than moving them.. I tried 
optionally calling message_delete() rather than message_move() in 
balsa_message_delete() but that just deletes the message straight away 
(which might be a nice third option I suppose). I can't find any way to 
set a deleted flag - can anyone help?

The other thing I wanted to do was to sync a folder to disk when another 
one was selected on the mailbox list, the 'commit current' menu option 
doesn't seem to do this - I tried calling mx_sync_mailbox() but that 
caused seg-faults and other errors, such as "sync: mbox modified, but no 
modified messages! (report this bug)".. does anyone know how to do what 
I want?...

If anyone can help with either of these problems I would be very 
grateful...

Thanks,
Ian.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]