Hastymail2

Hastymail2 is an Open Source IMAP webmail client written in PHP. Our focus is compliance, usability, security, and speed.

Hastymail 2

avatar
prob with attahcments

hi noticed when i attach a file and send it to a reciepent it does not save it to sent main where as all other emails sent without an attachment seem to save fine in sent mail folder. also depending on the connection somethimes it will be attaching a file and refresh the page with the email but no attachment maybe an ajax uploading system possible that reports progress on uploading and multiple uploads at once would be great.

Hastymail
VersionHastymail2 RC7
AJAX enabledyes
Folder cache enabledyes
UID cache enabledyes
Header cache enabledyes
Pluginscompose_warning, calendar, html_mail, filters, logger
Websitewww.hastymail.org

Web Server
SoftwareApache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.

IMAP Server
Banner* OK Dovecot ready.
Capability* CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS UIDPLUS LIST-EXTENDED I18NLEVEL=1 QUOTA A2 OK Capability completed.
Hostlocalhost

Reply /Quote
avatar
Re: prob with attahcments

The first problem, outgoing mail with attachments not getting saved in the sent folder, is likely to be a problem with the IMAP "APPEND" routines but I am not experiencing it here. It is actually a bit complex due to the fact that we must know the exact literal size of the message before we save it. This is tricky because attachment sizes can exceed the amount of memory Hastymail has to work with so we "stream" the message and encoded attachment data to the IMAP server. This makes it harder to determine the correct literal size before hand. Being off by even 1 byte will result in the message not getting saved and in some cases can cause the IMAP connection to become unresponsive. I will dig into it and see if I can find anything.

The second problem sounds like it could be due to a limitation on POST form data, often imposed by an apache config. When an attachment is uploaded that exceeds this limit the file is not actually saved on the server so we cannot attach it.  Can you try to reproduce the problem with different size attachments and see if it might be related? I can't recall the apache directive that limits POST form sizes but I have run into this problem with a distro installed apache2 having the limit set by default.

Thanks for the feedback,
Jason

Reply /Quote
avatar
N/A#
thanks for the reply, it seems emails i send in squirellmail does get saved into sent when there is an attachment. Also the post file and memory file size is 50mb its an issues i noticed that was not always happening by that i mean sometimes it would and later i could attempt the same file and not have the issue
Reply /Quote
avatar
Re: N/A

Bugs that are not consistently reproducible are hard to fix. We need to try to understand why it fails in order to track down the code responsible. How often does attaching a file fail?

Jason

Reply /Quote
Get Hastymail at SourceForge.net. Fast, secure and Free Open Source software downloads