[imp] Running imp on win32 (asking for a long list of small fixes, tricks, etc.)

Chuck Hagenbuch chuck@horde.org
Thu, 26 Apr 2001 14:30:57 -0400


Quoting Raoul EMIN <raoul.emin@bigfoot.com>:

> In compose.php3 there is a nice call to a function that returns the temp
> folder (using the upload temp path defined in php.ini). If the function fails 
> to identify temp path it will return "/tmp". This default value is not
> applicable to the NT platform that should uses C:/Temp instead. Would it be 
> possible to peform a platform test and send C:/temp or /tmp accordingly?

Possibly; I'd rather just add a $conf['tmpdir'] setting. I think we'll do that 
in 1.3/2.3.

> The problem gets more complex when it comes to the mime attachment viewers:
> instead of the above mentioned function every external viewers assume the
> attachments are tmporarily downloaded in /tmp (the string is hard coded).
> Would it be possible to change this /tmp string  by the functon used in
> compose.php3

There are now functions for getting temp filenames in Horde 1.3 that respect 
system settings. I don't think the viewers are all updated to use them yet, but 
they will be.

> A small temporary solution would consist in using my ISP smtp server instead
> of localost with suboptimal performances

IMP 2.3 uses PEAR's Mail API, which lets you use SMTP from IMP.

> 1. Is there a way to get a more specific message than "server error in
> horde.lib line xxxx"

Do you mean a parse error? I'm guessing not, but the message doesn't look 
familiar.

> 2. Is the generic "mail()" function specific to horde  (i.e can be
> debugged), or built in PHP (i.e cannot easily be debugged)

http://www.php.net/manual/function.mail.php

> 3. I also noticed that when calling the mail function we use some functions
> to extract the TO, SUBJECT, ETC. elements from the envelope would it be
> possible that the function extracting the CC field causes the problem. Where 
> is this function located?

Again, I'm not sure what function you're talking about, but if it's in IMP, 
it'll probably be in compose.php3.

> 1. Where can I adjust the size of the "help windows", I found a nice var.
> for the compose window but nothing for this one.

It's hardcoded in the HordeHelp class in horde/lib/horde.lib.

> 3. "This has not been coded yet." message when clicking on the logout
> button.

That's one of the things we fixed in phplib. Grep the phplib source for that 
message.

> D - ANOTHER TIP : HOW CAN I SETUP THE GENERIC MAIL() FUNCTION TO USE
> ANOTHER SMTP SERVER THAN LOCALHOST.

No need to shout: http://www.php.net/manual/en/configuration.php, look 
for "SMTP".

I realize a bunch of these answers basically say "2.3 will fix it"; we're just 
not going to put a lot of effort into 2.2 at this point, and 2.3 is already 
light-years better.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>

Taurus:
You will receive an urgent transmission from the Martian government informing 
you that Mars does not, in fact, need women, so please stop sending them.