Re: [Hastymail-devel] Hastymail Error Message
Brought to you by:
sailfrog,
slushpupie
From: Jason M. <ja...@st...> - 2003-07-18 22:17:01
|
On July 18, 4:35 pm Jeremy Butler <jb...@ua...> wrote: > I just installed Hastymail and was quite pleased with how quickly it > installed. Looks to be a very cool app. > > But I am repeatedly getting one error message. When I first log in, I > get: > Fatal error: Call to undefined function: hm_write_settings() in > /www/html/webmail/html/mailbox.php on line 42 OK, this error is happening because I split the included files up into chunks to keep the overhead down. The reason I missed this is because this function only gets called from mailbox.php under an error condition that I forgot to test (sorry about that!, its fixed in CVS now :). to fix edit lib/wrapper_functions.php. after line #21 which reads: case 'mailbox.php': add this: require_once('session_2.php'); > If I then reload the page, it displays the inbox properly. And seems to > work correctly after that, except when I tried to create a new mail > folder I was told: > > We dont seem to know the mailbox delimiter so we can not create a new > mailbox. sorry about that This is the real issue. In order for hastymail to handle folders properly it needs to know the mailbox delimiter. There must be a bug in the code that finds this value in the IMAP LIST response. Do you know what IMAP server software you are using? the responses look to be UW, which uses the '/' char as the delimiter by default. Here is how you can find out: telnet imap_server_ip 143 A01 login username password A02 LIST "INBOX" "" The result should look something like this: LIST (\NoSelect) "/" "" The first quoted value is the delimiter. Once you have this you can fix this for your copy of hastymail. edit lib/imap_2.php and change the code starting at line 58 which reads: in this example lets say the delimiter is / if (!$capture_delim) { $_SESSION['delimiter'] = trim(substr($line, 1, 3), '"'); $capture_delim = true; } to this: if (!$capture_delim) { $_SESSION['delimiter'] = '/'; $capture_delim = true; } Please let us know if this works for you and what the IMAP response is to the above LIST call so we can fix hastymail to work for you as the above 'fix' is really just a hack to make it work. In order to make hastymail handle this we need to see the result of the LIST call. Thanks for trying Hastymail out! btw, I am usually hanging out (during the week anyway) in the #hastymail channel at irc.freenode.net if you want to drop by there. thanks again. \__ Jason Munro \___ sai...@us... \____ http://hastymail.sourceforge.net/ |