<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>unable to send mail with attachments</title> 
  <pubDate>Fri, 10 Apr 2026 14:48:37 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12352</link> 
  <atom:link rel="self" type="application/rss+xml" title="unable to send mail with attachments" href="https://bugs.horde.org/ticket/12352/rss" /> 
  <description>unable to send mail with attachments</description> 
 
   
   
  <item> 
   <title>
while composing a new mail, it is possible to add attachme</title> 
   <description>
while composing a new mail, it is possible to add attachment files.
They are shown in the attachment list.
But if want to send the mail an error message appears:
  Unable to open VFS file.
The same happens, if i click on the filename.

horde version 5.1.0
imp version 6.1.1

horde is configured to use &#039;files on local system&#039; for the VFS
In imp it doesn&#039;t matter if i switch on the usage of VFS or not.

ERROR message in the logfile:
  [imp] Unable to open VFS file. [pid 24145 on line 68 of &quot;/data/horde4/imp/lib/Compose/Attachment/Storage/Vfs.php&quot;]

 maybe interesting:
   the message implies that there should be a file in
   [VFS]  .horde/imp/attachments/weis/51b9ac14-5898-49f4-b40a-5b3281ce7ff3
   But this does not exist.
   In fact, there is a file 
   [VFS]  .horde/imp/compose/51b9ac14-5898-49f4-b40a-5b3281ce7ff3
   which is the file i have uploaded

  if i make a soft-link from   [VFS]  .horde/imp/attachments/weis/
  to [VFS]  .horde/imp/compose/51b9ac14-5898-49f4-b40a-5b3281ce7ff3
  the mail is sent without error message




Error Message shown, if i click on the filename:


Unable to open VFS file.

1. IMP_Compose_View-&gt;composeAttachPreview() /data/horde4/imp/view.php:45
2. IMP_Compose_Attachment-&gt;getPart() /data/horde4/imp/lib/Compose/View.php:38
3. IMP_Compose_Attachment_Storage_Vfs-&gt;read() /data/horde4/imp/lib/Compose/Attachment.php:131
4. IMP_Compose_View-&gt;composeAttachPreview() /data/horde4/imp/view.php:45
5. IMP_Compose_Attachment-&gt;getPart() /data/horde4/imp/lib/Compose/View.php:38
6. IMP_Compose_Attachment_Storage_Vfs-&gt;read() /data/horde4/imp/lib/Compose/Attachment.php:131
7. Horde_Vfs_File-&gt;readStream() /data/horde4/imp/lib/Compose/Attachment/Storage/Vfs.php:61

Details
Die vollständige Fehlermeldung wurde in Hordes Logdatei geschrieben und für Administratoren weiter unten ausgegeben. Benutzer, die keine Administratoren sind, bekommen diese Details nicht zu sehen.

IMP_Compose_Exception Object
(
    [encrypt] =&gt; 
    [tied_identity] =&gt; 
    [_logged:protected] =&gt; 
    [details] =&gt; 
    [logged] =&gt; 1
    [_logLevel:protected] =&gt; 0
    [message:protected] =&gt; Unable to open VFS file.
    [string:Exception:private] =&gt; 
    [code:protected] =&gt; 0
    [file:protected] =&gt; /data/horde4/imp/lib/Compose/Attachment/Storage/Vfs.php
    [line:protected] =&gt; 68
    [trace:Exception:private] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [file] =&gt; /data/horde4/imp/lib/Compose/Attachment.php
                    [line] =&gt; 131
                    [function] =&gt; read
                    [class] =&gt; IMP_Compose_Attachment_Storage_Vfs
                    [type] =&gt; -&gt;
                    [args] =&gt; Array
                        (
                        )

                )

            [1] =&gt; Array
                (
                    [file] =&gt; /data/horde4/imp/lib/Compose/View.php
                    [line] =&gt; 38
                    [function] =&gt; getPart
                    [class] =&gt; IMP_Compose_Attachment
                    [type] =&gt; -&gt;
                    [args] =&gt; Array
                        (
                            [0] =&gt; 1
                        )

                )

            [2] =&gt; Array
                (
                    [file] =&gt; /data/horde4/imp/view.php
                    [line] =&gt; 45
                    [function] =&gt; composeAttachPreview
                    [class] =&gt; IMP_Compose_View
                    [type] =&gt; -&gt;
                    [args] =&gt; Array
                        (
                            [0] =&gt; 1
                            [1] =&gt; 1
                            [2] =&gt; 
                        )

                )

        )

    [previous:Exception:private] =&gt; Horde_Vfs_Exception Object
        (
            [details] =&gt; 
            [logged] =&gt; 
            [_logLevel:protected] =&gt; 0
            [message:protected] =&gt; Unable to open VFS file.
            [string:Exception:private] =&gt; 
            [code:protected] =&gt; 0
            [file:protected] =&gt; /usr/share/php/Horde/Vfs/File.php
            [line:protected] =&gt; 135
            [trace:Exception:private] =&gt; Array
                (
                    [0] =&gt; Array
                        (
                            [file] =&gt; /data/horde4/imp/lib/Compose/Attachment/Storage/Vfs.php
                            [line] =&gt; 61
                            [function] =&gt; readStream
                            [class] =&gt; Horde_Vfs_File
                            [type] =&gt; -&gt;
                            [args] =&gt; Array
                                (
                                    [0] =&gt; .horde/imp/attachments/weis
                                    [1] =&gt; 51b9ac14-5898-49f4-b40a-5b3281ce7ff3
                                )

                        )

                    [1] =&gt; Array
                        (
                            [file] =&gt; /data/horde4/imp/lib/Compose/Attachment.php
                            [line] =&gt; 131
                            [function] =&gt; read
                            [class] =&gt; IMP_Compose_Attachment_Storage_Vfs
                            [type] =&gt; -&gt;
                            [args] =&gt; Array
                                (
                                )

                        )

                    [2] =&gt; Array
                        (
                            [file] =&gt; /data/horde4/imp/lib/Compose/View.php
                            [line] =&gt; 38
                            [function] =&gt; getPart
                            [class] =&gt; IMP_Compose_Attachment
                            [type] =&gt; -&gt;
                            [args] =&gt; Array
                                (
                                    [0] =&gt; 1
                                )

                        )

                    [3] =&gt; Array
                        (
                            [file] =&gt; /data/horde4/imp/view.php
                            [line] =&gt; 45
                            [function] =&gt; composeAttachPreview
                            [class] =&gt; IMP_Compose_View
                            [type] =&gt; -&gt;
                            [args] =&gt; Array
                                (
                                    [0] =&gt; 1
                                    [1] =&gt; 1
                                    [2] =&gt; 
                                )

                        )

                )

            [previous:Exception:private] =&gt; 
        )

)

</description> 
   <pubDate>Thu, 13 Jun 2013 11:48:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12352#t78704</link> 
  </item> 
   
  <item> 
   <title>This was already fixed in 6.1.2.</title> 
   <description>This was already fixed in 6.1.2.</description> 
   <pubDate>Thu, 13 Jun 2013 12:07:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12352#t78705</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
