[imp] attached forward is deleted too early

Michael M Slusarz slusarz at horde.org
Mon Mar 17 06:07:44 UTC 2014


Quoting Martin Kleinschmidt <mk at theochem.uni-duesseldorf.de>:

> Webmail (imp) 6.1.7
>
> when I forward a message as attachment, I get no error as the user, but
> the attachment is missing.
>
> In the log, I find
> HORDE: [imp] PHP ERROR: filesize(): stat failed for  
> /tmp/impatt77e1ay [pid 6391 on line 76 of  
> "/home/horde4/imp/lib/Compose/Attachment/Storage/VfsLinked.php"]

This most likely indicates that you have not configured your VFS  
linked storage correctly.

> This file does not exist during message composing.
>
> If I change
>
>         $atc_file = Horde::getTempFile('impatt');
>
> to
>
>         $atc_file = Horde::getTempFile('impatt', false);
>
> in /home/horde4/imp/lib/Compose.php, public function addAttachmentFromPart
>
> everything works OK.

This is not a correct solution.

> in /usr/share/php5/PEAR/Horde/Util.php, static public function shutdown,
> the comment says:
> "Deletes registered files at request shutdown." but what is a "request
> shutdown"?

After that particular PHP request is completed.  Which is essentially  
either a page view or, for dynamic apps, an AJAX request.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list