in reply to Problems displaying a single message with Mail::Box

Three things that might help:
  1. Are you sure the given $msg_num exists?
  2. Can you print $folder->message($msg_num);?
  3. Can you print $folder->message(0);?

If things get any worse, I'll have to ask you to stop helping me.

  • Comment on (shockme) Re: Problems displaying a single message with Mail::Box

Replies are listed 'Best First'.
Re: Re: Problems displaying a single message with Mail::Box
by BazB (Priest) on Dec 20, 2001 at 02:35 UTC

    shockme, I did have a debug print statement just to check that $msg_num was being set OK, I just omitted it from the code I posted - it's working OK.

    The message number I've given does exist in the given mailspool.

    print $folder->message($msg_num); print $folder->message(0); # first message
    These two also produce a reference to a hash, with the first statement giving a different reference than the second (since I have been using $msg_num=2 or 3 as test cases).

    No joy with those.

    Cheers.

    Baz.