[imp] Third time: Undefined offset wrror/warning.

Jan Schneider jan@horde.org
Wed, 17 Oct 2001 23:54:39 +0200


This should be fixed now in cvs.

Jan.

Zitat von M Z Rahman <zrahman@partex.net>:

> 
> Quoting Michael M Slusarz <slusarz@bigworm.colorado.edu>:
> 
> > > Quoting Max Kalika <max@lsit.ucsb.edu>:
> > > 
> > > > Quoting M Z Rahman <zrahman@partex.net>:
> > > > 
> > > > > -------------the error message-------------
> > > > > Warning: Undefined offset: 1 in /www2/horde/imp/message.php on line
> 248
> ....
> > Deleting a message
> > ==================
> > Say I have 3 messages in my mailbox and I am reading message number 1. 
> The
> > message count reads "1 of 3".  If I delete the message, the next message
> will
> > come up with a message count of "1 of 2".  This appears to be the correct
> 
> > behavior (since I am still on the first message of a mailbox that has 2 
> > messages).
> > 
> > Moving a message
> > ================
> > Now, let's say I have the same mailbox setup.  This time, I move the
> message
> > to another mailbox instead of deleting it.  The next message comes up with
> a 
> > message count of "2 of 3".  This is definitely not correct.  Essentially
> what
> > a move does (conceptually) is copy a message and then deletes it. 
> Therefore,
> > after a move operation, there are only 2 messages in the mailbox and I
> would
> > still be on the first message.
> > 
> > However, the current IMP logic says I am on message 2 of 3.  So now you
> can
> > see the problem - if I move to the next message in IMP, it think I will be
> on 
> > message 3 of the mailbox.  However, there is no more message 3 in the
> mailbox
> > so I get the error message.
> 
> Correct, I just now tested it. It's the moving process. If I move any message
> 
> after reading it, then the counter goes mad. I had 3 msgs and I deleted 1st
> 
> one, moved the 2nd one, it supposed to say 1 of 1, instead, IMP is saying 2
> of 
> 2, and even the back arrow on the corner is also there to go to the previous
> 
> message when there is no previous message in the INBOX. When I click on the
> 
> previous msg button it gives me the following error on the error msg 
> box: "There was an error viewing the requested message.". and it gives the 
> warnings that I was talking about if I delete the msg.
> 
> So, I think we traced the problem back. When one message is moved it IMP does
> 
> not reset the counter to the actual number of mails in the folder.
> 
> Comments that please.
> 
> Zia
> 
> 
> 
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
> 


:::::::::::::::::::::::::::::::::::::::: 
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::