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 | |
| Version | Hastymail2 RC7 |
| AJAX enabled | yes |
| Folder cache enabled | yes |
| UID cache enabled | yes |
| Header cache enabled | yes |
| Plugins | compose_warning, calendar, html_mail, filters, logger |
| Website | www.hastymail.org |
Web Server | |
| Software | Apache/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. |
| Host | localhost |
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
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