SquirrelMail:INBOX(23) on left panel, but no mails displayed

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
User avatar
kenpem
Normal user
Normal user
Posts: 56
Joined: 2005-09-24 11:33

SquirrelMail:INBOX(23) on left panel, but no mails displayed

Post by kenpem » 2005-09-25 23:25

Windows 2003 Server
hMailServer 4.1-B136
MS-SQL Server 2003 Standard
SquirrelMail 1.4.5
PHP 5.0.5

A wierd one... the folder list shows that there are new messages, but the main panel just contains the top section:

Current Folder: INBOX Sign Out
Compose Addresses Folders Options Search Help Calendar

clues, anyone?

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-09-26 08:02

Is there no text, no buttons or anything at all under those "Compose message"?

Does SquirrelMail 1.4.5 really support PHP 5.0.5? Have you checked the requirements?

wvvamike
New user
New user
Posts: 1
Joined: 2005-09-26 19:27

Post by wvvamike » 2005-09-26 19:29

I'm having the same problem! Anybody have any suggestions?

User avatar
martin
Developer
Developer
Posts: 6837
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-09-26 19:42

Have you turned on notices in php.ini? Did you read my question? Have you checked whether SquirrelMail 1.4.5 supports PHP 5.0.5?

User avatar
matty
Senior user
Senior user
Posts: 330
Joined: 2005-08-22 16:29
Location: New York
Contact:

fixing the no mails displayed in inbox problem

Post by matty » 2005-09-28 23:17

I had the same problem but only when I sent myself a message for some reason. I am not sure if you are having the same problem I was having, but anyway, if you enable error messages in the php.ini like martin suggested you will see an error like this:

Fatal error: Only variables can be passed by reference in /functions/imap_messages.php on line 480

I changed the parsePriority function to fix this:

split this line:

$value = strtolower(array_shift(split('/\w/',trim($value))));

into:
$y = split('/\w/',trim($value));
$value = strtolower(array_shift($y));

(NOTE: this same functionality exists in a function another file:
class\mime\Rfc822Header.class.php on line 509 - change it there as well)

As I said, I am not sure if you are having the same problem, but try that and see if it works.

User avatar
kenpem
Normal user
Normal user
Posts: 56
Joined: 2005-09-24 11:33

Post by kenpem » 2005-10-04 17:34

Hi folks

Sorry for the delay in reply.

Martin: there were no text or buttons or anything, the screen was blank after the initial list of links. I haven't checked specific PHP vs SqMail vs hMailServer dependencies, but recall that this was the config recommended somewhere. Turning on notices (once I'd figured out HOW :shock: ) revealed the same error that matty reported.

wvvamike: keep reading!

matty: thanks, dude! Applying the workaround as you suggested cured all.

Thanks, gang. I'm happy and so are my users.

And a great big public thanks to the hMailServer and SquirrelMail developers - what fantastic products!

User avatar
matty
Senior user
Senior user
Posts: 330
Joined: 2005-08-22 16:29
Location: New York
Contact:

Post by matty » 2005-10-04 17:43

no problem kenpem. Glad it worked for you. and I agree about the thanks to the hMailServer developers. Martin has always gone out of his way to help me resolve any issues I have had.

User avatar
kenpem
Normal user
Normal user
Posts: 56
Joined: 2005-09-24 11:33

Post by kenpem » 2005-10-04 19:26

as an aside: I just got the WebAdmin module going too. Triffic stuff! Easy as pie!

lostage
New user
New user
Posts: 2
Joined: 2005-10-16 23:45

Post by lostage » 2005-10-16 23:52

Genius! Thanks!

Sune
Normal user
Normal user
Posts: 59
Joined: 2005-09-21 20:11
Location: Denmark
Contact:

Post by Sune » 2005-11-17 19:24

Wish i had found this thread earlier on, it would have saved me from a lot of trouble :) thank you very much for the solution, matty!

User avatar
matty
Senior user
Senior user
Posts: 330
Joined: 2005-08-22 16:29
Location: New York
Contact:

Post by matty » 2005-11-17 21:37

no problem! glad it helped.

koumdros
Normal user
Normal user
Posts: 78
Joined: 2005-11-10 01:20

Post by koumdros » 2005-11-18 03:33

me too! I had the same problems when sending to myself... i just hadnt thought it was important enough to raise an issue.

Woof!
On a sidenote, i spent 6 hours today trying to save the life of a dog that resemples a lot the one in your avatar. He is named Nyktas ( night) and he was poisoned earlier today. He is my best friend's favorite pet for the 5 years of his life and I was really ungry at what happened.. Luckily we were able to save him and it seems he wont suffer any serious sdeeffects :)
If i get my hands on whomever poisoned him (and 3 other dogs .. 2 of which diddnt make it...) ............

User avatar
matty
Senior user
Senior user
Posts: 330
Joined: 2005-08-22 16:29
Location: New York
Contact:

Post by matty » 2005-11-18 05:52

there are some sick people in this world... Who could poison a dog? I like most dogs I meet better than most humans that i meet! Glad you saved Nyktas. I don't know what I would do if someone poisoned my dog but my guess is the person that did it would certainly regret it (if I found out who it was)!

Post Reply