Re: Search doesn’t work in AtMail, AtMail search returns no results
AtMail is a great webmail application that has a high level of functionality, an attractive looking interface and many useful integrated features.
One of these feature includes a bug that causes the “Search” function to return no results for any search!
To fix it, you need SSH Root access to your dedicated server console. If you want to get down and dirty, edit the following two lines:
Change Line 364: $before = "$BeforeDay-$BeforeMonth-$BeforeYear";
Change Line 369: $after = "$AfterDay-$AfterMonth-$AfterYear";
Alternatively, run the following two SED commands and the lines containing the bugs will be automatically fixed.
# sed 's/20$BeforeYear/$BeforeYear/g' /var/www/atmail/search.php > /var/www/atmail/search.php.new
# sed 's/20$AfterYear/$AfterYear/g' /var/www/atmail/search.php.new > /var/www/atmail/search.php
# rm -f /var/www/atmail/search.php.new
Happy searching!