--- Jesse Guardiani <[EMAIL PROTECTED]> wrote:
> On Monday 26 April 2004 15:04, Hugh Beaumont wrote:
> > Hi,
> >
> > Was any progress ever made in regard to this thread:
> >
> > (from around May 2003)
> >
> > http://marc.theaimsgroup.com/?t=105180440400003&r=1&w=2
> >
> > Short version:
> >
> > Have sqwebmail hide deleted messages from the list of messages.
> >
> If anyone wants to take a shot at it, please, by all means, be my guest!
>
I've been playing around some and it seems there are two ways to do this:
1. hide the messages in the message list
2. actually do the proper delete/move to trash/whatever when the delete button is
pressed.
Option 1 is (at first) pretty easy:
I added:
if (type[0] == MSGTYPE_DELETED)
{
continue;
}
near line 443 of folder.c
This gets the messages out of the list but causes the message number to be broken. For
example if
you delete messages #2, the list skips it.
1. message from here
3. message from here
4. message from here
This causes a problem with the messages numbering. I've not looked at how hard it
would be to fix
(it is more than just decrementing the message count though). Just glancing at it I
can imagine it
getting a bit more complicated.
Option 2 would be the best method most likely.
This all may be quickly solved (I'm just sort of playing around right now and having
fun thumbing
through my old copy of K & R :)
Now some questions:
does anyone know of a previous reason why the messages are left around in the folder
list? Do some
users have a use for this? The previous thread seemed to show that no one had any good
reason to
keep them displayed.
Also, does anyone use the message numbering? ie.
1. message one
2. message two
etc..
(the first column in the message list)
Getting rid of this would solve 1/2 of the message number problem. The other part
would be the
whole displaying messages 20-30 of 100 etc. It is the more complex of the two.
I would appreciate any input. In most cases things are designed a certain way for a
reason so I'm
curious in what way people currently use the message number display.
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�
http://photos.yahoo.com/ph/print_splash