Tue, 13 Oct 2009

Make Great Money Now as a Freelance Developer...

Well, I'm so glad the person posting this job put a plus sign after the number '10' for an hourly rate, because as a 'Senior mod_perl programmer' with 'lots of application development background' who is used to dealing with 'Difficult code with poor documentation' in 'Very large applications developed over many iterations', I would never even consider applying for this at just $10/hour - the plus sign makes all the difference!

Perldev WTF

posted at: 14:53 | path: / | permanent link to this entry | 0 comments | tags:

Sun, 04 Oct 2009

Squirrelmail Error

I came across an obscure error using Squirrelmail recently. The error was just the text "ERROR : Connection dropped by imap server" after attempting to login with a newly-created user - less than helpful, and the server logs were no help (I'm using the Dovecot IMAP server). I was thrown off by the fact that I had recently migrated this client's installation to a new server, and thought everything should have worked as it had before. The key turned out to be that this was a brand-new user account, and that user's Maildir folders were missing. The easy fix is to create the maildir folders:

su - newuser maildirmake $HOME/Maildir

One odd result of the failure to create the Maildir folders was that incoming mail was stuffed into an mbox-formatted mailbox named 'Maildir' in that user's home directory. I was able to convert this to maildir format using a nifty utility called mb2md. Here is the entire sequence of commands:

su - newuser mv Maildir mboxfile maildirmake $HOME/Maildir ./mb2md-3.20.pl -s mboxfile

I then copied an empty Maildir folder hierarchy to /etc/skel so it would be copied into new user accounts.

posted at: 00:59 | path: / | permanent link to this entry | 0 comments | tags: