Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apple Mail, Entourage can't see Courier-IMAP Inbox [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wayt
n00b
n00b


Joined: 26 Jan 2004
Posts: 22

PostPosted: Thu Jan 05, 2006 6:13 pm    Post subject: Apple Mail, Entourage can't see Courier-IMAP Inbox [SOLVED] Reply with quote

I need help with a vexing problem with Courier-IMAP 4.0.1, running on my Gentoo-2.6.14-r5 box. I recently added a new iMac to my network and find that neither Apple's own Mail program nor Microsoft's Entourage 2004 can view messages in the INBOX folder of gentoo mail accounts. Puzzlingly, those clients work just fine with messages in all subfolders. And Thunderbird on the Mac seems to have no problems with Courer-IMAP's INBOX. Outlook 2003, running on several different PC hosts, also has no problem reading the Inbox. And on the server itself, Mutt works fine.

Apple Mail seems not to produce a log or error message of any kind, so it's no help in troubleshooting. Its behavior is to correctly display the folder hierarchy for the account but to incorrectly show the inbox folder as empty.

MS Entourage 2004 generates this error every time it checks mail on the gentoo server (i.e. every 10 minutes):
Code:
Error
Cannot open message 1

Explanation
Mail could not be received at this time.
Account name: "Gentoo"
Error: 1025

Entourage, too, handles every other mail folder correctly, but shows the Inbox as empty.

Here's what I have tried so far, without success:
  • changing the root directory for the IMAP server in the account options within Mail and Entourage. I first tried leaving the field blank (as recommended in Courier-IMAP docs), then tried INBOX, then tried INBOX. (with period), and then tried ~/.maildir (Courier-imap is configured on my system to use this as MAILDIR.)
  • editing the Courier-IMAP-4.0.1.ebuild file to delete the --enable-workarounds-for-broken-imap-clients configure option, running emerge /usr/portage/net-mail/courier-imap-4.0.1.ebuild digest to create new MD5s and Manifest, then re-emerging courier-imap. When this didn't work, I emerge sync'd to restore the original ebuild and re-re-installed.

Seeing as how (AFAIK) neither Mail nor Entourage 2004 offer logging options (a la Outlook 2003), I plan next to use tcpdump to record the conversations that Courier is having with Mail and Entourage. But I'm not familiar with the IMAP4rev1 protocol, so I don't know that I'll be able to spot the problem, let alone correct it.

Is it possible that the problem stems from my using ~/.maildir instead of ~/Maildir as the users' mail directory?
Or could it be that Courier's internal database is screwed up? Is there a way to force it to recreate its indexes?

I have RTFM and searched both Gentoo Forums and MS Entourage newsgroups for clues, without success. Any suggestions would be most appreciated.


Last edited by wayt on Thu Jan 05, 2006 6:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
wayt
n00b
n00b


Joined: 26 Jan 2004
Posts: 22

PostPosted: Thu Jan 05, 2006 6:47 pm    Post subject: The solution Reply with quote

I just fixed this problem myself. Here's how I did it.

On the theory that if I kept trying different email clients, one was bound to generate a useful error message, I installed Squirrelmail on the gentoo server. It displayed the Inbox differently from either Outlook or the other programs: it showed all the same email messages as Outlook did but also one more that had no date, from, or subject. Eureka!

I ssh'd into the gentoo server and cd'd to the ~./maildir/cur directory. After a bit of less'ing, I found it. Viewed in plain text, there didn't seem anything unusual or malformed about the message; it was received in October and had been happily living in the inbox ever since. But somehow it was flummoxing courier-imap (but only when certain clients asked for that message).

Anyway, I moved the message out of the maildir folder hierarchy and into ~. Like magic, Apple Mail, Entourage and Squirrelmail all now run as smoothly as clockwork.

The experience begs a couple of questions, however:
--why doesn't courier-imap have a verbose logging option to aid in troubleshooting problems like this one?
--why doesn't courier-imap have documented diagnostic tools for checking and correcting maildir problems?
--given that the daemon isn't bulletproof, shouldn't the ebuild be set up so that the act of re-emerging forces courier-imap to rescan all maildirs and rebuild its msgid.cache and database? (Don't ask me how to do this, tho; if I knew, I would have done it. I could find no clue in the courier-imap docs.)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum