Hastymail2

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

Hastymail 2

avatar
Suggested Improvements & Bugs

Firstly i have to say uve done a good job with this mail client and think its one of the best around for functunality. Secondly i noticed a few bugs, on cpanel servers i specify in the config file where the paths for each folder is on install however when i login i still have to select the folders in the user settings as it cant seem to select them properly maybe just a user thing? Anouther bug is when i attach a file to an email i send it will send it but wont save it to send mail folder maybe an error the system. Also while were talking about upload attachments maybe we could add an progress bar to the uploading of files, know to make the job easyer ive found a few scripts that would be ideal :) The first is ubberuploader http://uber-uploader.sourceforge.net/ its opensource and so would be a great addition or if u want to go for something a little more techy and kool then i recomend http://digitarald.de/project/fancyupload/ its kool and coders love it due to its coding in css and flash and ajax :) i think many of us would love that as an addon. A few other things ive noticed is search dosent work well ill give u an example all my emails are scanned by cpanel and marked spam if they are, what i want to be able to do is in inbox type in search spam and it to bring back all emails marked spam or if i click search and select for in subject look for emails with spam written i expect it to bring just them back however it brings back quite a few other emails so i think the search functuality could be better or atleast rewriten if possible. Also this is a bug ive noticed from time to time and is random from what i have gathered basically the page will load and strecth across quite long even thougth the email is not long. i think if there was a function that on display it detected screensize and readjusted the display. Sorry for the long list but almost done :) anouther thing i have noticed is if ure in an email for a while then leave it for a few hours and come back and click any email it will say page not found when u would expect session expired maybe it could be looked into :) finally i think this is a feature many would appreciate and is simple is one that just says display all email when in a folder maybe click view all at the top and it shows all emails in that folder. I would appreciate if you could have a look at these features and let me know if it would be possible, also i cant seem to get the callender function working if i were to email you would be able to help set it up properley?

Thanks

Suley

Reply /Quote
avatar
Re: Suggested Improvements & Bugs

Thanks for the suggestions and bug reports. I will post back on specific issues as I address each. As for the calendar feel free to shoot me an email and I will help if I can. You can send it to jason@hastymail.org.

Thanks again,
Jason

Reply /Quote
avatar
re
thanks just emailed you :) also looking at building a new skin for you again hopefully next few weeks
Reply /Quote
avatar
Re: Suggested Improvements & Bugs
Anonymous said:

Firstly i have to say uve done a good job with this mail client and think its one of the best around for functunality.

Thank you

Secondly i noticed a few bugs, on cpanel servers i specify in the config file where the paths for each folder is on install however when i login i still have to select the folders in the user settings as it cant seem to select them properly maybe just a user thing?

 Do you mean the special folders (Sent, Trash, and Drafts)? The first time a user logs in they can be auto-assigned with the config file, what values are you using? I seem to remember your setup has a Courier IMAP server, is that correct? Maybe there is a bug or maybe the config values need to be more specific for your IMAP server.

Anouther bug is when i attach a file to an email i send it will send it but wont save it to send mail folder maybe an error the system.

Sounds like it could be a problem related the the special folder setup. Again the IMAP server you are using would be useful to know for troubleshooting.

Also while were talking about upload attachments maybe we could add an progress bar to the uploading of files, know to make the job easyer ive found a few scripts that would be ideal :) The first is ubberuploader http://uber-uploader.sourceforge.net/ its opensource and so would be a great addition or if u want to go for something a little more techy and kool then i recomend http://digitarald.de/project/fancyupload/ its kool and coders love it due to its coding in css and flash and ajax :) i think many of us would love that as an addon.

 This would be a good idea for a plugin. If you could add it as a feature request in the tracker that would be great.

A few other things ive noticed is search dosent work well ill give u an example all my emails are scanned by cpanel and marked spam if they are, what i want to be able to do is in inbox type in search spam and it to bring back all emails marked spam or if i click search and select for in subject look for emails with spam written i expect it to bring just them back however it brings back quite a few other emails so i think the search functuality could be better or atleast rewriten if possible.

 I think the problem might be that the default search is to look at the entire message for the search words, not just a specific header. When you say you have messages "marked as spam" what does that mean? Is the subject changed, or is an additional header added? The search page has an "advanced search" option that lets you search for your keyword on just a specific part of the message. This might help. Also the filters plugin can filter out messages based on keywords in specific parts of a message, including custom headers.

Also this is a bug ive noticed from time to time and is random from what i have gathered basically the page will load and strecth across quite long even thougth the email is not long. i think if there was a function that on display it detected screensize and readjusted the display.

 The only thing I can think of that might cause that is if the email has a really long unbroken line. If however it is truly random then I am not sure this is a Hastymail bug. If you can reproduce it with a message then I would love it if you could send it to me.

Sorry for the long list but almost done :) anouther thing i have noticed is if ure in an email for a while then leave it for a few hours and come back and click any email it will say page not found when u would expect session expired maybe it could be looked into :)

 There is a folder update setting in the general section of the options page that periodically uses AJAX to update the folder list. When this is active it normally will keep the session from timing out even if you are idle for a long time. Another option is to set the default session lifetime in your php.ini file.

finally i think this is a feature many would appreciate and is simple is one that just says display all email when in a folder maybe click view all at the top and it shows all emails in that folder. I would appreciate if you could have a look at these features and let me know if it would be possible,

 I think a "show all" feature could be added without too much trouble, however it should have a maximum that it will allow. For example I have folders with 50K+ messages in them. Showing all at once will likely crash the browser :) I would suggest maybe 1000 messages as a maximum and if the folder size is larger disabling the option.

Thanks for the feedback,
Jason

Reply /Quote
avatar
Re

 Do you mean the special folders (Sent, Trash, and Drafts)? The first time a user logs in they can be auto-assigned with the config file, what values are you using? I seem to remember your setup has a Courier IMAP server, is that correct? Maybe there is a bug or maybe the config values need to be more specific for your IMAP server.

Yes its when they login despite the folders being pre assigned in the config it seems not to select them so i have to go to config and select the folders. im using Dovecot as my mail server.

Sounds like it could be a problem related the the special folder setup. Again the IMAP server you are using would be useful to know for troubleshooting.

Dovecot is the imap server

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

 This would be a good idea for a plugin. If you could add it as a feature request in the tracker that would be great.

Sent

 I think the problem might be that the default search is to look at the entire message for the search words, not just a specific header. When you say you have messages "marked as spam" what does that mean? Is the subject changed, or is an additional header added? The search page has an "advanced search" option that lets you search for your keyword on just a specific part of the message. This might help. Also the filters plugin can filter out messages based on keywords in specific parts of a message, including custom headers.

Its the emails thats are marked spam by cpanel so the subject is altered and says spam on it. I think if on simple search it simply does what it does now but gave the option of look in body,subject,for,to or everywhere within it may make the results more accurate.

 The only thing I can think of that might cause that is if the email has a really long unbroken line. If however it is truly random then I am not sure this is a Hastymail bug. If you can reproduce it with a message then I would love it if you could send it to me.

Ill keep an eye out for it :)

 I think a "show all" feature could be added without too much trouble, however it should have a maximum that it will allow. For example I have folders with 50K+ messages in them. Showing all at once will likely crash the browser :) I would suggest maybe 1000 messages as a maximum and if the folder size is larger disabling the option.

See your point about the 50k emails, idea is just a simple button u click and at top of any folder that says display all and it displays all in that folder and in the config u could have an option where u limit it down to 1000 or not

Im not sure if you got my email as i had a dns issue let me know as then i can email you again to help with the callender plugin i was actually thinking maybe we could intergrate googles callender see http://code.google.com/apis/calendar/data/1.0/developers_guide_php.html 

Thanks

Suley

Reply /Quote
avatar
Re: suggestions and bugs
Anonymous said:

 Yes its when they login despite the folders being pre assigned in the config it seems not to select them so i have to go to config and select the folders. im using Dovecot as my mail server.

The only time the auto-create and auto-assign folders code is activated is the very first time a user logs into there account. We determine this by looking to see if they have a settings file or db entry. If they do then this code does not run. I will setup a test with dovecot over the weekend to see if there is a bug that I can reproduce

 

Its the emails thats are marked spam by cpanel so the subject is altered and says spam on it. I think if on simple search it simply does what it does now but gave the option of look in body,subject,for,to or everywhere within it may make the results more accurate.

I can look into changing the simple search to do that. The search dialog on the mailbox page itself has this ability already.

 

See your point about the 50k emails, idea is just a simple button u click and at top of any folder that says display all and it displays all in that folder and in the config u could have an option where u limit it down to 1000 or not

If you don't mind adding a feature request to the tracker (It helps me remember) I can probably get something like this into the code this weekend.

 

Im not sure if you got my email as i had a dns issue let me know as then i can email you again to help with the callender plugin i was actually thinking maybe we could intergrate googles callender see http://code.google.com/apis/calendar/data/1.0/developers_guide_php.html 

I will help your troubleshoot any problems with the plugin that you can describe but I am not going to set it up for you :) The first step to getting it working is getting the Hastymail database configuration correctly working with your server. If you have not been able to get that going then you should look into the db debug option that will help explain why the database connection is not correct. Once it is you only need to create a table (sql to do so is included in the plugin for mysql and postgres) and enable the plugin.

As for integrating the google calender, the calender plugin is already quite feature rich as is so I don't plan on replacing the guts with a google calender, however a google calendar specific plugin in addition to the calendar plugin we have now would be cool. Again another feature request in the tracker so I don't forget would be a good idea :)

Thanks for the feedback,
Jason



Reply /Quote
avatar
Show all on the mailbox view

Current SVN and the upcoming RC8 has a "show all" link on the mailbox page that will show all the messages in the folder (up to 1000).

Thanks again for the feedback,
Jason

Reply /Quote
avatar
Basic search

The basic search dialog now includes which part of the message to search, instead of that only being in the advanced search version.

Jason

Reply /Quote
avatar
re

thanks for the updates, how can i dl the latest from svn also when can we expect rc8? Something i have always wanted in a mail client is a spell checker, seems im the worst at spelling at times lol anyway how would something like this do for a spell checker and would it be implementable?

http://spellerpages.sourceforge.net/

 

Reply /Quote
avatar
Re

You can download the latest SVN anytime with the link at the bottom of the Download page. The reason I have not added a spell checker is because many modern browsers already have spell checking built in. It would be possible to add though and we already have a feature request to do so. If I can find the time I will work on one.

Jason

Reply /Quote
avatar
re

Kol its just ie dosent seem to do it so annoys me when im on a pc without it :(

Also something i noticed not sure if its due to an old build but yesterday hastymail was really slow on load, the server was fine. I typed the url and it took ages to load, i tried squirellmail and it seemed it loaded straight up. Also once in hastymail i tryped a reply to an email clicked sent and it took over 15 mins and still not send, opened a new window and in squirelmail logged straight in and was able to send without any issue while hsatymail still did not send. maybe a system issue

thanks

suley

Reply /Quote
avatar
re

ok here is the error i have enabled the db support use mysql and also uploaded the 2 sql's in the db folder of the download package.

error states "Database support enabled, but the required settings not found in the configuration file" seems to suggest its missing a db file or something for the calender so wondering if u could tell me how to overcome.

also i dl'd latest svn dont seem to have any view all link in inbox unless its as a plugin?

ps i loaded a small email that was a little slow states took around 4 seconds to load when the same email loaded in 2 seconds in squirellmail

Cache: ~19.19 KB
Peak PHP memory usage : 4043.85KB

Reply /Quote
avatar
Re: Suggested Improvements & Bugs

In regards to the DB problem. There are 6 required db settings, not including the enable_db setting. The error you are seeing is because one of those is not in your config file. The settings are:

db_hostname
db_username
db_password
db_database
db_pear_type
db_type

They are explained in the hastymail2.conf.example file and each needs to be set to the correct value.

The "show all" link is in the upper right of the mailbox list below the sort dialog. It is not a plugin and should be visible with the latest SVN, it is here.

Not sure that a single example of one email opening faster or slower is an accurate way to benchmark. The IMAP server itself might cache a message so subsequent requests for the same content can be served faster, making it seem like one client is faster than another. If you have a repeatable problem with messages opening slowly please forward me a message that exhibits the problem and I will look into it. Also the show_imap_debug option in the config file will output timestamps along with the IMAP commands and responses, might be useful to determine the source of a delay.

Hope that helps,
Jason 

Reply /Quote
avatar
re

The db options are filled in accordingly and have the required permissions also. below is a copy of that with users/pass edited out bt if u wana see if ureself i can email u the config file and rc. 

# db_hostname
  # -----------
  # Hostname or IP address of the DB server
   
db_hostname = localhost

  # db_username
  # -----------
  # Username used to authenticate to the DB server

db_username = ******
  # db_password
  # -----------
  # Password used to authenticate to the DB server

db_password = *****

  # db_database
  # -----------
  # Database name that Hastymail uses

db_database = *******


  # db_pear_type
  # ------------
  # This can be set to DB to use the older pear DB support or MDB2 to use
  # the newer pear DB library.

#db_pear_type = DB

  # db_type
  # -------
  # This can be set to mysql for Mysql db support or pgsql for Postgres
  # support

db_type = mysql

  # db_persistent
  # -------------
  # Chnage this to true to enable the perisetent database connection flag for
  # the PEAR databse connection method

db_persistent = false

 Also anouther bug, basically was looking to empty trash folder noticed on the tree next to trash did not say emty trash so i thought go into trash folder and select all and click deleate. Noticed a empty trash icon which i clicked and then got a blank page saying "INVALID IMAP INPUT DETECTED: <b>uid_list</b> : <b>1:*</b>" tried a few times same issue, then tried to slect all and then click deleat it worked so seems the empty trash button does not work :(

 

Also as for certain emails that dont display well seems its an ie error as in firefox it displays fine on this particular email it seems to be happening if i forward it displays fine upon opening the forwaded email but if i open that particular one seems to show really wide. Seems to happen also when html parts by default is disabled so if i open without html parts with defaults it happens possibly with that email there are some links that it formats in html as

"Please look over the info and I can get you high res images of themalso.It would be good if you can update every week with news on the latestepisode.Please see the information below
http://www.youtube.com/watch?v=SaVcuLlPxGQ [1] http://www.youtube.com/watch?v=BUjdsSfx7nY
[2] http://www.youtube.com/watch?v=wmdN1lAfr7U&feature=channel
[3] http://www.youtube.com/watch?v=vPkNXk3-_Mw
[4]http://www.youtube.com/watch?v=g0WifjL9zoM&feature=channel
[5]=Links:------[1] http://www.youtube.com/watch?v=SaVcuLlPxGQ[2] http://www.youtube.com/watch?v=BUjdsSfx7nY[3] http://www.youtube.com/watch?v=wmdN1lAfr7U&feature=channel[4] http://www.youtube.com/watch?v=vPkNXk3-_Mw[5] http://www.youtube.com/watch?v=g0WifjL9zoM&feature=channel"

Also these links are in the area as the quoted reply so ive emailed them this and they have replied from there hotmail address with this.
 

 

 

Reply /Quote
avatar
Re:

Your db_pear_type config setting is commented out. Remove the leading '#' sign, rebuild the rc file, and try again. That should resolve the problem with the error you are seeing.

The "INVALID IMAP INPUT DETECTED: <b>uid_list</b> : <b>1:*</b>" bug is fixed in current SVN

Regarding the problem email, can you use the "raw view" option of Hastymail, then copy and paste the entire raw message contents into an email and send it to me (jason@hastymail.org). I will see what I can determine from that.

 

Thanks for the feedback,
Jason

 

Reply /Quote
avatar
re
email has been sent, also did what you said with the db_pear thing but still same error message after regerating the rc file
Reply /Quote
avatar
Re

I have multiple test environments using both Mysql and Postgresql so I can't explain why you are still seeing that error. The code that checks the db settings does the following:

 if (isset($conf['db_type']) && isset($conf['db_pear_type']) && isset($conf['db_username']) &&
            isset($conf['db_password']) && isset($conf['db_hostname']) && isset($conf['db_database'])) {

If any one of those config settings is not present then you will see the error you reported. the code will not try to connect to the database until all the required config settings are present. If I get a chance I will update the error message to include the missing setting name(s)

To double check your config file to make sure that the db_pear_type is set you could do:

 $ grep db_pear_type /etc/hastymail2/hastymail2.rc | wc -l

Assuming your hastymail2.rc file is in /etc/hastymail2. If that returns a "1" then it is present, if it returns a "0" the rc file was not updated properly.

Hope that helps,
Jason

Reply /Quote
avatar
re

im presuming i need to run that command in shell?

 

Reply /Quote
avatar
re
hello, i dont seem to have any responce to my issues any help
Reply /Quote
avatar
Re:

Yes, the command I posted should be tried from the command line to determine if the config file setting is present in your hastymail2.rc file. Again, the db problem is directly related to the fact that the db_pear_type value is commented out in your config:

 #db_pear_type = DB

I know you stated that you uncommented it and updated the hastymail2.rc file but since the error persists there are only 3 possible reason I can think of:

The hastymail2.rc file was not updated

Hastymail is using a different hastymail2.rc file than you think it is

The value was still commented out in the hastymail2.conf file when the rc file was rebuilt.

 

I would recommend that you do a full upgrade to the very latest code, and completely redo your hastymail2.conf file from scratch using the latest hastymail.conf.example file that comes wiith the source.

Several things have been fixed since RC8 so I would recommend using the latest, you can download it with the following link:

http://hastymail.svn.sourceforge.net/viewvc/hastymail/trunk/hastymail2.tar.gz?view=tar

Jason

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