This patch restricts the time taken to generate the
unseen message notification on the folders list
to 20 seconds of real time.
The folders that could not be processed within
20 seconds are treated as if unseen message
notification was not turned on.
The attached patch works against SquirrelMail
1.2.4 and could probably be adapted to earlier
versions without too much trouble.