Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Improve Squirrelmail compatibility with Mail in Server OS X Server
Squirrelmail as included with Mac OS X Server lets you remotely access your Inbox via a web-browser. It also automatically creates sub-folders to store drafts, sent, and trashed emails as done during a Squirrelmail session. These have a folder structure like this:

Inbox
Drafts
Sent
Trash

When you look at this in Apple Mail, you will see a triangle next to your Inbox, and turning it down reveals the same sub-folders. The purpose of this posting is that this structure is not the same as the default Apple Mail structure, and as such, Apple Mail and Squirrelmail will not automatically be using the same IMAP folders to store drafts, sent, and trash.

It is possible in Apple Mail to select one of these Squirrelmail-created folders, and go to the Mailbox menu and select the "Use This Mailbox For..." command to make it the folder to use for that purpose. It is also possible to edit the Squirrelmail config.php file to adjust its settings which as default will be:
$default_folder_prefix = 'INBOX/';
$trash_folder = 'Trash';
$sent_folder = 'Sent';
$draft_folder = 'Drafts';
I have worked out what to set Squirrelmail to use so that it will then use the same folders that Apple Mail uses as standard. The benefit would be that rather each and every user having to alter the Apple Mail setup, I could do one edit of the config file for Squirrelmail and this would then apply forever for all users.

Apple Mail in the Apple Mail program uses the folder names:

Drafts
Sent
Trash

However, it appears to use on the server:

Drafts
Sent Messages
Deleted Messages

So it appears that in order to get Squirrelmail to match the settings Apple Mail uses, and therefore save the Apple Mail user the hassle at their end, you need to do two things:
  1. Change the IMAP folder path in Squirrelmail from the default 'INBOX/' to '' (nothing)
  2. Change the special IMAP folder names in Squirrelmail from the default to match Apple Mail
Therefore, in the the Squirrelmail config.php you will go from the default:
$default_folder_prefix = 'INBOX/';
$trash_folder = 'Trash';
$sent_folder = 'Sent';
$draft_folder = 'Drafts';
to this:
$default_folder_prefix = '';
$trash_folder = 'Deleted Messages';
$sent_folder = 'Sent Messages';
$draft_folder = 'Drafts';
This matches what Apple Mail is using. You can make this change either by manually editing /etc/squirrelmail/config/config.php, or by running sudo perl /etc/squirrelmail/config/conf.pl. PS: the iPhone, as it also runs Apple Mail will also benefit from this.
    •    
  • Currently 1.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (8 votes cast)
 
[17,102 views]  

Improve Squirrelmail compatibility with Mail in Server | 6 comments | Create New Account
Click here to return to the 'Improve Squirrelmail compatibility with Mail in Server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Improve Squirrelmail compatibility with Mail in Server
Authored by: etresoft on Dec 20, '07 11:28:46AM
I hope that isn't the hacked version of SquirrelMail

[ Reply to This | # ]
Improve Squirrelmail compatibility with Mail in Server
Authored by: jelockwood on Dec 20, '07 11:41:37AM

No, I am the poster of this hint and I am using the standard Squirrelmail included with Mac OS X 10.4.x server.

By the way, the post was edited compared to what I originally submitted, so the structure Squirrelmail uses for the folders is not as obvious.

Squirrelmail defaults to

Inbox
..Sent
..Drafts
..Trash

that is the Sent, Drafts, and Trash folders are sub-folders of the Inbox. My tip alters this to match what Apple Mail (and the iPhone) default to along with the slightly different folder names Apple Mail uses. I have tested this with Apple Mail in both Tiger and Leopard and also on an iPhone.



[ Reply to This | # ]
Improve Squirrelmail compatibility with Mail in Server
Authored by: QuickSander on Dec 20, '07 01:42:10PM
When you do not have access to the .php squirrelmail file (for example when you are just a user of squirrelmail and not the administrator) you can also modify the .mailboxlist of squirrelmail in your home directory on the server and specify the Apple Mail compatible mailbox names in it like this (assuming the real mail boxes are in the subdirectory mail inside your home dir):
mail/Apple Mail To Do
mail/Deleted Messages
mail/Drafts
mail/Sent Messages
Then, you can use the Options -> Folder preferences panel of squirrelmail to let the correct mailboxes point to their belonging functionality.

[ Reply to This | # ]
Improve Squirrelmail compatibility with Mail in Server
Authored by: etresoft on Dec 20, '07 08:12:29PM

SquirrelMail was hacked at the repository. I don't have MacOS X Server, so I can't check the version. Hopefully Apple's copy of SquirrelMail isn't the hacked one. I don't know. You don't know either until you check the versions...



[ Reply to This | # ]
Improve Squirrelmail compatibility with Mail in Server
Authored by: jelockwood on Jan 25, '08 03:33:37AM

Apple have now added this suggested change to the settings included with Mac OS X 10.5.1 Server.

So they obviously thought it was a good idea :)



[ Reply to This | # ]
Improve Squirrelmail compatibility with Mail in Server
Authored by: edinger on Aug 11, '11 02:44:15PM

Dear poster. I came across your thread in the search for a solution to an annoying problem that I'm encountering with OSX Mail and my webhosts IMAP mail service, running squirrelmail.

We are 4 people hooked up to the same mail account, all have it setup in OSX mail as an IMAP account. We take turns watching/reading/replying to incoming mails, hence that setup.

But, the problem is when we receive junk mail. Some junk mail will end up in the junk email folder, while some other junk mail winds up in a sub-folder of "inbox". Now, in the beginning I just deleted the contents of the that sub-folder, as well as the sub-folder itself. But next time, the junk email would appear in a sub-sub-folder. Thick headed as I am, I now have subx12-folder with junk mail.

I can't seem to work out a solution and neither can my web/mail host.

Does anyone here know of a working solution?
Let me know if you need any detailed info...

Thanks in advance!

Thomas



[ Reply to This | # ]