6.0.0-alpha14
6/24/25

[#5483] Adding Attachments don't work
Summary Adding Attachments don't work
Queue IMP
Queue Version 4.1.3
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester s.suther (at) gmx (dot) de
Created 06/20/2007 (6579 days ago)
Due
Updated 03/08/2010 (5587 days ago)
Assigned
Resolved 06/20/2007 (6579 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/08/2010 05:47:40 AM gustavoeli (at) yanalte (dot) com Comment #10 Reply to this comment
Indeed this it is not an error of horde.

The problem is of a bad configuration of the file php.ini

If to form your MTA for example postfix, sendmail etcÂ… with a quota of 
mail of 150MB for example, and want to send/receive archives of size 
of 80 MB (I have users who have requested me that amount) and you have 
a configuration php.ini in upload_max_filesize, post_max_size, 
memory_limit less than (in this example) 150MB is likely that is the 
cause of the error.

You should raise these values according to the mail quota for sending 
/ receiving large files for has not any problem.

Also consider the values max_input_time, max_execution_time and
file_uploads.

References:
http://wiki.horde.org/FAQ/Admin/FileUploads

Greetings.

Gustavo Eli Pelcastre H.
06/22/2007 09:51:39 AM Jan Schneider Comment #9 Reply to this comment
This is not a support forum! Please take this to the mailing list.
06/22/2007 07:15:02 AM s (dot) suther (at) gmx (dot) de Comment #8 Reply to this comment
Now i have try to send a attachment again and get this error_warning 
on apache-error.log:

[Fri Jun 22 09:02:23 2007] [error] [client 81.173.179.145] PHP Fatal 
error:  Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 1286307 byte

s) in /usr/share/psa-horde/lib/Horde/MIME/Part.php on line 1113, 
referer: 
http://xxx.xxx.xxx/imp/compose.php?thismailbox=INBOX.sent-mail&uniq=1182495

977564

Allowed memory size of 8388608 bytes exhausted (tried to allocate 224 bytes)



I don't understand why, cause in php.ini it's set to 8M (see below) 
and the file is only 800 KB.

Any Idea
06/22/2007 06:31:26 AM s (dot) suther (at) gmx (dot) de Comment #7 Reply to this comment
You need to update your IMP conf.php file after upgrading.
Here is my conf.php-File, i don't know what must be updated:



/usr/share/psa-horde/imp/config/conf.php

================================

/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */

// $Horde: imp/config/conf.xml,v 1.53.2.13 2006/06/14 18:11:23 chuck Exp $

$conf['utils']['gnupg'] = '/usr/bin/gpg';

$conf['utils']['gnupg_keyserver'] = array('wwwkeys.pgp.net');

$conf['utils']['gnupg_timeout'] = '10';

$conf['utils']['openssl_cafile'] = '/usr/share/openssl/certs/ca-bundle.crt';

$conf['utils']['openssl_binary'] = '/usr/bin/openssl';

$conf['menu']['apps'] = array('imp', 'ingo', 'kronolith', 'turba');

$conf['user']['select_sentmail_folder'] = false;

$conf['user']['allow_resume_all_in_drafts'] = false;

$conf['user']['allow_folders'] = true;

$conf['user']['allow_resume_all'] = false;

$conf['user']['allow_view_source'] = true;

$conf['user']['alternate_login'] = false;

$conf['user']['redirect_on_logout'] = false;

$conf['server']['change_server'] = false;

$conf['server']['change_port'] = false;

$conf['server']['change_protocol'] = false;

$conf['server']['change_smtphost'] = false;

$conf['server']['change_smtpport'] = false;

$conf['server']['server_list'] = 'none';

$conf['server']['sort_limit'] = '0';

$conf['server']['cache_folders'] = false;

$conf['server']['cache_msgbody'] = false;

$conf['mailbox']['show_attachments'] = false;

$conf['mailbox']['show_preview'] = false;

$conf['mailbox']['show_xpriority'] = false;

$conf['fetchmail']['show_account_colors'] = false;

$conf['fetchmail']['size_limit'] = '4000000';

$conf['msgsettings']['filtering']['words'] = './config/filter.txt';

$conf['msgsettings']['filtering']['replacement'] = '****';

$conf['spam']['reporting'] = false;

$conf['notspam']['reporting'] = false;

$conf['msg']['prepend_header'] = false;

$conf['msg']['append_trailer'] = false;

$conf['compose']['allow_cc'] = true;

$conf['compose']['allow_bcc'] = true;

$conf['compose']['allow_receipts'] = true;

$conf['compose']['special_characters'] = true;

$conf['compose']['use_vfs'] = true;

$conf['compose']['link_attachments'] = true;

$conf['compose']['add_maildomain_to_unexpandable'] = false;

$conf['compose']['attach_size_limit'] = '0';

$conf['compose']['attach_count_limit'] = '0';

$conf['hooks']['vinfo'] = false;

$conf['hooks']['signature'] = false;

$conf['hooks']['trailer'] = false;

$conf['hooks']['fetchmail_filter'] = false;

$conf['hooks']['mbox_redirect'] = false;

$conf['hooks']['mbox_icon'] = false;

$conf['hooks']['spam_bounce'] = false;

$conf['maillog']['use_maillog'] = true;

$conf['tasklist']['use_tasklist'] = true;

$conf['notepad']['use_notepad'] = true;



Do you have a advice?


06/21/2007 05:52:19 PM Chuck Hagenbuch Comment #6 Reply to this comment
You need to update your IMP conf.php file after upgrading.
06/21/2007 04:36:06 PM s (dot) suther (at) gmx (dot) de Comment #5 Reply to this comment
I'd try increasing memory_limit first. 20kb is awfully small, but
you're hitting _some_ error condition that causes the script to
return with no valid content-type. Also make sure that you have PHP's
error_reporting ($conf['debug_level'] in Horde) set all the way up to
E_ALL and that you are either displaying errors (and check the
downloaded output for PHP errors) or logging them.
Now i have activated the debug-mode from E_ERROR to E_ALL.

If i open the window for new Mail, now i see following:

Notice: Undefined index: link_all_attachments in 
/usr/share/psa-horde/imp/templates/compose/compose.inc on line 524


06/21/2007 03:52:31 PM Chuck Hagenbuch Comment #4 Reply to this comment
I'd try increasing memory_limit first. 20kb is awfully small, but 
you're hitting _some_ error condition that causes the script to return 
with no valid content-type. Also make sure that you have PHP's 
error_reporting ($conf['debug_level'] in Horde) set all the way up to 
E_ALL and that you are either displaying errors (and check the 
downloaded output for PHP errors) or logging them.
06/20/2007 04:20:34 PM s (dot) suther (at) gmx (dot) de Comment #3 Reply to this comment
If you are not the administrator of your IMP installation, you need
to talk to your administrator.

If you are, check your apache logs for segfaults, and see
http://wiki.horde.org/FAQ/Admin/FileUploads
I'm the admin.



My php.ini-Settings:

       file_uploads                on

      upload_max_filesize  8M

      max_input_time           60

      memory_limit                8M

      max_execution_time  300

      post_max_size             8M



No seg-error Messages in access.log error.log or /var/log/messages for today.



Any other Idee what it could be?
06/20/2007 03:46:57 PM Chuck Hagenbuch Comment #2
Priority ⇒ 1. Low
State ⇒ Not A Bug
Reply to this comment
If you are not the administrator of your IMP installation, you need to 
talk to your administrator.



If you are, check your apache logs for segfaults, and see 
http://wiki.horde.org/FAQ/Admin/FileUploads
06/20/2007 01:13:04 PM s (dot) suther (at) gmx (dot) de Comment #1
Priority ⇒ 3. High
State ⇒ Unconfirmed
Queue ⇒ IMP
Summary ⇒ Adding Attachments don't work
Type ⇒ Bug
Reply to this comment
If i write a new Mail, and attach a File which is bigger than 20KB the 
Browser want to download a File compose.php.



After closing the Window and push the button again, the Message 
appears "Messege been send"

Whats wrong here?

Saved Queries