No href links in left_main for most folders

View: New views
2 Messages — Rating Filter:   Alert me  

No href links in left_main for most folders

by byrnejb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

workstation: CentOS-5.4 kernel-2.6.18-164.2.1.el5
browser: firefox-3.0.15-3.el5.centos


Since early today I am experiencing the situation where all but a
very few folder in my imap account have associated hrefs generated
for them when the folders are displayed in the left_main frame.
This problem seems to affect only my account.  I have had one other
user sign on to squirrelmail and their folders are linked as
expected.

I have tried closing and restarting the httpd server, my browser, my
session and I have even rebooted my workstation.  None of these
actions have cleared the problem.

I have no idea what is causing this, how it happened, or how to
correct it.  Any ideas?

SquirrelMail configtest

This script will try to check some aspects of your SquirrelMail
configuration and point you to errors whereever it can find them.
You need to go run conf.pl in the config/ directory first before you
run this script.

SquirrelMail version: 1.4.8-5.el4.centos.8
Config file version: 1.4.0
Config file last modified: 04 November 2009 10:19:49
Checking PHP configuration...
    PHP version 5.1.6 OK.
    PHP extensions OK.
Checking paths...
    Data dir OK.
    Attachment dir OK.
    Plugins OK.
    Themes OK.
    Default language OK.
    Base URL detected as: https://webmail.harte-lyne.ca/webmail/src
(location base autodetected)
Checking outgoing mail service....
    SMTP server OK (220 inet07.hamilton.harte-lyne.ca ESMTP Sendmail
8.13.1/8.13.1; Wed, 4 Nov 2009 14:50:00 -0500)
Checking IMAP service....
    IMAP server ready (* OK inet07.hamilton.harte-lyne.ca Cyrus
IMAP4 v2.2.12-Invoca-RPM-2.2.12-10.el4_8.4 server ready)
    Capabilities: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+
MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT
CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT
THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS LISTEXT
LIST-SUBSCRIBED X-NETSCAPE
Checking internationalization (i18n) settings...
     gettext - Gettext functions are available. You must have
appropriate system locales compiled.
     mbstring - Mbstring functions are available.
     recode - Recode functions are unavailable.
     iconv - Iconv functions are available.
     timezone - Webmail users can change their time zone settings.
Checking database functions...
    not using database functionality.

Congratulations, your SquirrelMail setup looks fine to me!

The left_main frame has this html:

<td align="center">
<font size="4"><b>Folders</b><br /></font>

<small><span style="white-space:
nowrap;">Last Refresh:</span><br /><span style="white-space:
nowrap;">2009-11-04 14:50 EST</span></small><br /><small
style="white-space: nowrap;">(<a href="../src/left_main.php"
target="left">Check mail</a>)</small></td></tr></table><br /><span
style="white-space: nowrap;"><tt><a target="left"
style="text-decoration:none"
href="left_main.php?fold=INBOX">-</a> </tt><font
color="#a7c5f3">INBOX</font></span><br />

<span style="white-space:
nowrap;"><tt>    </tt><font
color="#a7c5f3">Drafts</font></span><br />
<span style="white-space:
nowrap;"><tt>    </tt><font
color="#a7c5f3">Sent</font></span><br />
<span style="white-space:
nowrap;"><tt>    </tt><font
color="#a7c5f3">Trash</font>
<small>
  (<a href="empty_trash.php"
style="text-decoration:none">Purge</a>)</small></span><br />

There are no hrefs generated for INBOX, Drafts, Sent or Trash yet
the purge link is generated.


--
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB@...
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Re: No href links in left_main for most folders

by byrnejb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, November 4, 2009 14:53, James B. Byrne wrote:
>
> Since early today I am experiencing the situation where all but a
> very few folder in my imap account have associated hrefs generated
> for them when the folders are displayed in the left_main frame.
> This problem seems to affect only my account.  I have had one other
> user sign on to squirrelmail and their folders are linked as
> expected.


I discovered from looking in the maillog file that my cycrus-imap
user.seen database was corrupted.  I followed the instructions found
at http://article.gmane.org/gmane.mail.imap.cyrus/18840, recovered
the database, and now SM is working for me.

Briefly, the procedure is:

locate the bad record in the seen database, given as a hex number in
the maillog entry:

Nov  4 16:24:58 inet07 imap[10864]: DBERROR: skiplist recovery
/var/lib/imap/user/b/byrnejb.seen: ADD at AFB8 exists

and convert the hex value to decimal: xAFB8 = d44984. Next,
disconnect all MUAs connected to the problem user account. Now
recover the old database to the point of corruption.

Log onto the imap host as root.

# cd /var/lib/imap/user/b

Use dd to copy the old seen db up to the point of corruption:

# dd if=byrnejb.seen of=byrnejb.seen.fixed bs=1 count=44984

Copy the recovered DB over the corrupted one.

# mv byrnejb.seen.fixed byrnejb.seen

Set the ownership and permissions so that the imap server can open
and modify the database.

# chown cyrus:mail byrnejb.seen

The DB is now recovered.  Connect to the mail account from
SquirrelMail.  Squirrelmail now handles the folders as expected.

Interestingly enough, ThunderBird allowed me to open every folder
and all email notwithstanding that the DB was corrupted.  What
twigged me to the idea that it might be a server error is that all
the messages in every folder were set to unseen and marking them to
seen did not permanently alter their status.  Every time I opened a
previously visited folder all the messages I had just marked as seen
were in unseen status again.

--
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB@...
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users