Re: deleting messages
"matti" <[email protected]>
| Newsgroups | gmane.mail.sqwebmail |
|---|---|
| Message-ID | <[email protected]> |
If I delete a message of a total of 6, I expect to see 5 messages left. So the next message to view would be 1 of 6. This is how it's done in riwos. But there is much more to think than omitting the deleted messages. Why not fetch the riwos code and see how it's done there, and save yourself a lot of research. matti Hugh Beaumont writes: > --- Sam Varshavchik <[email protected]> wrote: >> James A Baker writes: >> >> > Personally, I'm not aware of ever hearing Sam explicitly state why. But >> > my assumption has always been that it's essentially "because that's how >> > IMAP and POP work with the folders." Neither IMAP nor POP will actually >> > delete messages from an active folder without some other "confirmation" >> > action. In the case of IMAP, an explicit "EXPUNGE" command must be >> > issued after the deletion to really delete the messages, IIRC. And in >> > the case of POP, I don't believe the messages are actually removed >> > after being marked as deleted, unless a successful "QUIT" command is >> > issued to end the session. >> >> There's another reason, and a more important one. >> >> You are reading the first message in the folder. You see at the top of the >> screen: "Message 1 of 6". >> >> Suppose you've decided to delete it. After pressing the delete button, >> sqwebmail deletes the message and goes to the next one. Question: what do >> you expect to see at the top of the screen now: >> >> "Message 2 of 6" >> >> or >> >> "Message 1 of 5"? >> >> Which one of the above actually makes sense, and which one is going to >> confuse the hell out of everyone. >> > > Agreed. All my attempts at just hiding the messages introduced too many various confusing states > about the number of messages in the folder currently. > > Currently the approach I'm going to work on is having each press of the delete button make a call > to the function that is (apparently) called when you change folders. It appears that changing the > current folder will remove the deleted messages from the list. I've not had time to look into the > code very much but I'm hoping that finding this function (something along the lines of flush > folder, etc) will be what is needed. > > I also want to note that I hope I am not being offensive to come into this group and start > proposing changes to the way things currently work. As I mentioned before I do realize that in > most cases, programs are designed a certain way for a good reason. > > My main concern is that I will be deploying this out to quite a few users and I know that the > moment we put this live we'll have our users complaining about the deleted messages still showing > up. > > Anyway, I will probably not work on this any more this week but hope to have something done over > the weekend. > > > > > > > > __________________________________ > Do you Yahoo!? > Win a $20,000 Career Makeover at Yahoo! HotJobs > http://hotjobs.sweepstakes.yahoo.com/careermakeover ____________________________________________________________________ Matti Riikari email [email protected] tel +358504915633 mail Paltvuori 23310 Taivassalo FIN web http://www.riikari.net ____________________________________________________________________