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

M Z Rahman zrahman@partex.net
Tue, 16 Oct 2001 19:31:53 +0000


I guess, the IMP gurus don't have anything to say about this. I can reproduce 
this error as many times as I want. And, I have been getting this everytime I 
move a message after reading it and go at the end of the INBOX deleting one by 
one. This happens when I have my purge deleted message after deletion prefs on.

Chuck: a request to you, please say something about this. :(

Regards,

Zia

----- Forwarded message from M Z Rahman <zrahman@partex.net> -----
    Date: Mon, 15 Oct 2001 21:01:31 +0000
    From: M Z Rahman <zrahman@partex.net>
Reply-To: imp@lists.horde.org
 Subject: Re: [imp] Third time: Undefined offset wrror/warning.
      To: imp@lists.horde.org


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

----- End forwarded message -----