[imp] Problem with attachements

andrew morgan morgan@orst.edu
Wed, 7 Feb 2001 12:36:43 -0800 (PST)


On Wed, 7 Feb 2001, Andrej Tazberik wrote:

> 	Hi,
>
> I am using IMP 2.3.3 on SPARC/Solaris8. I have no problem, BUT when I am
> composing new message AND want to attach some file, after pressing "Attach"
> button I get warning:
>
> =-=-=-=-=-=-=-=-=-=-=-=-=
> Warning: Unable to open '/tmp/phpebaqBb' for reading: No such file or directory
> in /opt/apache/htdocs/horde/imp/compose.php3 on line 910
> =-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> Attached file appears in list of attachements, BUT when I send it, recipient
> obtain empty attachement-file.
>
> Any suggestions???
>
> 	Thanx,		Andrej
>
> P.S. I have installed IMP on 2 SUN running Solaris8, PHP4.0.3pl1 compiled like
> apache modul, IMP using MySQL. Both maschines have same behavior while composing
> message with attachements.

Make sure you have:

upload_tmp_dir  = /tmp

set in your php.ini file.

	Andy



>From chuck@horde.org Date: Wed,  7 Feb 2001 15:36:36 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 60520 invoked from network); 7 Feb 2001 20:37:31 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
  by horde.org with SMTP; 7 Feb 2001 20:37:31 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id 1B30239F4; Wed,  7 Feb 2001 15:36:36 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
	as user chuck@marina by marina.horde.org with HTTP;
	Wed,  7 Feb 2001 15:36:35 -0500
Message-ID: <981578195.3a81b1d401689@marina.horde.org>
Date: Wed,  7 Feb 2001 15:36:36 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [imp] another "from address" problem?

Quoting doug moore <lordscarlet@idledreams.net>:

> Someone else that uses my IMP system for mail reported a problem with
> replying to someone.. when i write him from one of my accounts the address
> appears as:
> 
> doug moore <dmoore@xertcomms.com>
> 
> well, when he tries to reply it tries to send to "doug moore" apparently,
> rather than an actual email address..

I'm really confused; these things have been working for years. Any chance you 
can figure out _exactly_ how to produce this problem, and maybe debug it a bit?

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me


>From chuck@horde.org Date: Wed,  7 Feb 2001 15:38:37 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 61428 invoked from network); 7 Feb 2001 20:39:31 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
  by horde.org with SMTP; 7 Feb 2001 20:39:31 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id 504E739F4; Wed,  7 Feb 2001 15:38:37 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
	as user chuck@marina by marina.horde.org with HTTP;
	Wed,  7 Feb 2001 15:38:37 -0500
Message-ID: <981578317.3a81b24d36670@marina.horde.org>
Date: Wed,  7 Feb 2001 15:38:37 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [imp] sending mail revisited

Quoting Mark Seelenbacher <mark@robesoncounty.org>:

> I've got everything up and running, but when I try to send an e-mail I get
> that same error others have been reporting--
> 
> Fatal error: Call to undefined function: send() in
> /var/www/horde/imp/compose.php on line 704

Stick a var_dump($mailer); right before that line, and see what kind of value 
you're getting - it might include an error message, for one thing.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me


>From chuck@horde.org Date: Wed,  7 Feb 2001 15:39:38 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 61869 invoked from network); 7 Feb 2001 20:40:33 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
  by horde.org with SMTP; 7 Feb 2001 20:40:33 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id AD1DB39F4; Wed,  7 Feb 2001 15:39:38 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
	as user chuck@marina by marina.horde.org with HTTP;
	Wed,  7 Feb 2001 15:39:38 -0500
Message-ID: <981578378.3a81b28a92f8e@marina.horde.org>
Date: Wed,  7 Feb 2001 15:39:38 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [imp] From line creation? (2.2.4)

Quoting Rich Lafferty <rich@horde.org>:

> That'll break on legal addresses such as <*@qz.to>. Would addslashes()
> solve the particularly evil cases?

We already run it through escapeShellCmd(). Right now I'm wondering if that's 
enough, or if perhaps bombing out if either a space or a semi-colon will a). 
not break valid things and b). protect us. Comments?

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me


>From chuck@horde.org Date: Wed,  7 Feb 2001 15:41:16 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 62522 invoked from network); 7 Feb 2001 20:42:11 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
  by horde.org with SMTP; 7 Feb 2001 20:42:11 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id 2E91F39F4; Wed,  7 Feb 2001 15:41:17 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
	as user chuck@marina by marina.horde.org with HTTP;
	Wed,  7 Feb 2001 15:41:16 -0500
Message-ID: <981578476.3a81b2ecde606@marina.horde.org>
Date: Wed,  7 Feb 2001 15:41:16 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: RE: [imp] still having MAILER-DAEMON return address problems :(

Quoting doug moore <lordscarlet@idledreams.net>:

> i'm trying to find the right variable..  $HTTP_POST_VARS['from'] gives me
> "doug moore".. can't find the specific var i need :(

The value of $from after $from = get_from() (about line 654 of compose.php) 
would be a good one to check. And if you're echoing that to the browser, make 
sure to run it through htmlentities() or view source so that you see the bits 
inside brackets (<>).

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me