SquirrelMail Extras

Would you find this useful?

  • Yes, I would be interested in this.

    Votes: 25 89.3%
  • No, I would not be interested in this.

    Votes: 3 10.7%

  • Total voters
    28

jlandes

Verified User
Joined
Dec 1, 2005
Messages
561
Location
Lewistown, Pennsylvania, USA
Hello,

I have begun developing and testing a script that will enhance the base SquirrelMail package that gets installed by DirectAdmin. It will do this by installing and configuring plugins that I have been testing and find work well with DirectAdmin and provide a nice set of features to this Web-based e-mail client. In addition, it will help setup a nice set of default personal preferences for the users.

I have been developing this script for my own needs, so that I can use it whenever I update SquirrelMail. I am willing to provide this script to the community when it is finished and if it is deemed worthy enough, maybe DirectAdmin will include it into either the scripts that get installed by DirectAdmin or include it in the new custombuild script.

Is this something you might be interested in seeing whenever it is complete?
 
Last edited:
Okay, I had some free time tonight so I threw together a few screenshots of what I have so far. Keep in mind, I'm not showing all the items that I have installed and this will get better as I move along. What do you think so far?
 

Attachments

  • initial_login.jpg
    initial_login.jpg
    65.3 KB · Views: 572
  • message_list.jpg
    message_list.jpg
    63.2 KB · Views: 425
  • read_message.jpg
    read_message.jpg
    62.5 KB · Views: 436
  • compose_message.jpg
    compose_message.jpg
    45.1 KB · Views: 396
  • calendar_month.jpg
    calendar_month.jpg
    53.4 KB · Views: 417
I have begun developing and testing a script that will enhance the base SquirrelMail package that gets installed by DirectAdmin.

Sounds great....looking forward to seeing it, and thanks in advance.
 
Has anyone ever tried installing the HTML Mail plugin for SquirrelMail?

http://www.squirrelmail.org/plugin_view.php?id=209

I seem to be having some problems using the spellchecker after installing it. Here is how I have installed it:

Code:
cd /var/www/html/squirrelmail/plugins
wget http://www.squirrelmail.org/plugins/html_mail-2.3-1.4.tar.gz
tar -xzvf html_mail-2.3-1.4.tar.gz
cp -f html_mail/config.php.sample html_mail/config.php

The plugin has been enabled in the SquirrelMail config and the default setup tells it to use FCKEditor as the HTML editor and aspell as the spellchecker. I have aspell installed, but I'm getting some JavaScript errors when trying to use it.

I don't want to include it in the script if it is going to cause problems for everyone.
 
Last edited:
Here are the specific errors that I get whenever I click on the Check Spelling button:

Code:
Line: 11
Char: 1
Error: Syntax error
Code: 0
URL: [URL]http://www.landeserve.com/webmail/plugins/html_mail/fckeditor/edi[/URL]
     tor/dialog/fck_spellerpages/spellerpages/server-
     scripts/spellchecker.php

I'm asked if I want to continue running scripts on this page and I click "Yes" and then get the following errors:

Code:
Line: 42
Char: 1
Error: 'wordWindowObj' is undefined
Code: 0
URL: [URL]http://www.landeserve.com/webmail/plugins/html_mail/fckeditor/edi[/URL]
     tor/dialog/fck_spellerpages/spellerpages/server-
     scripts/spellchecker.php

And finally:

Code:
Line: 39
Char: 1
Error: Object Expected
Code: 0
URL: [URL]http://www.landeserve.com/webmail/plugins/html_mail/fckeditor/edi[/URL]
     tor/dialog/fck_spellerpages/spellerpages/server-
     scripts/spellchecker.php

I have confirmed that aspell is installed and was working with SquirrelSpell.
 
Anyone have any ideas about the problem I have given above? I can get the HTML Mail plugin to work with ieSpell, which would need to be installed on each client, but I cannot get it to successfully work with the server-side aspell program.
 
Hello,

Well, I have not figured out the issue with the HTML Mail plugin for SquirrelMail. So, I'm going to give you what I have so far. I have not created a script yet to do this all automatically, but I'm going to provide the instructions in case anyone would like to begin testing what I have so far.
  1. Login to your server via SSH as the root user.
  2. If you are not currently running SquirrelMail 1.4.13, do the following:
    Code:
    cd /usr/local/directadmin/scripts
    ./squirrelmail.sh
  3. Download and install some plugins by running the following commands (in the listed order):
    1. Switch into the plugins directory:
      Code:
      cd /var/www/html/squirrelmail/plugins
    2. Download and install the Compatibility plugin:
      Code:
      wget http://www.squirrelmail.org/plugins/compatibility-2.0.10-1.0.tar.gz
      tar -xzvf compatibility-2.0.10-1.0.tar.gz
    3. Download and install the Folder Sync plugin:
      Code:
      wget http://www.squirrelmail.org/plugins/folder_synch.0.8-1.4.0.tar.gz
      tar -xzvf folder_synch.0.8-1.4.0.tar.gz
    4. Download and install the Windows plugin:
      Code:
      wget http://www.squirrelmail.org/plugins/windows-1.6-1.4.tar.gz
      tar -xzvf windows-1.6-1.4.tar.gz
    5. Download and install the Message Flags plugin:
      Code:
      wget http://www.squirrelmail.org/plugins/msg_flags-1.4.10-1.4.3.tar.gz
      tar -xzvf msg_flags-1.4.10-1.4.3.tar.gz
      cd msg_flags
      patch -p0 < patches/msg_flags-squirrelmail-1.4.10.diff
      cd ..
    6. Download and install the Ask User Info plugin:
      Code:
      wget http://www.squirrelmail.org/plugins/askuserinfo.1.1-1.4.0.tar.gz
      tar -xzvf askuserinfo.1.1-1.4.0.tar.gz
    7. Set the correct user/group for the plugins directory:
      Code:
      cd /var/www/html/squirrelmail
      chown -R webapps:webapps plugins
  4. Modify the SquirrelMail configuration file to setup the default CSS and enable the necessary plugins:
    1. Edit the configuration file:
      Code:
      cd /var/www/html/squirrelmail/config
      nano -w config.php
    2. To setup the default CSS, change the following line from:
      Code:
      $theme_css = '';
      To:
      Code:
      $theme_css = SM_PATH . 'themes/css/sans-10.css';
    3. To enable the plugins, change the following lines from:
      Code:
      // Add list of enabled plugins here
      $plugins[0] = 'spamcop';
      $plugins[1] = 'filters';
      $plugins[2] = 'squirrelspell';
      To:
      Code:
      // Add list of enabled plugins here
      $plugins[0] = 'spamcop';
      $plugins[1] = 'filters';
      $plugins[2] = 'squirrelspell';
       
      $plugins[3] = 'message_details';
      $plugins[4] = 'listcommands';
      $plugins[5] = 'sent_subfolders';
      $plugins[6] = 'delete_move_next';
      $plugins[7] = 'calendar';
      $plugins[8] = 'mail_fetch';
      $plugins[9] = 'newmail';
       
      $plugins[10] = 'compatibility';
      $plugins[11] = 'folder_synch';
      $plugins[12] = 'windows';
      $plugins[13] = 'msg_flags';
      $plugins[14] = 'askuserinfo';
  5. Setup the default preferences file for new mail accounts:
    1. Backup the current default preferences file, just in case:
      Code:
      cd /var/www/html/squirrelmail/data
      cp default_pref default_pref.bak
    2. Edit the default preferences file:
      Code:
      nano -w default_pref
    3. Clear out the contents of the file and place the following lines in the file:
      Code:
      attachment_common_show_images=1
      chosen_theme=../themes/techno_blue.php
      compose_height=618
      compose_new_win=1
      compose_width=640
      custom_css=sans-10.css
      delete_move_next_b=on
      delete_move_next_formATbottom=on
      delete_move_next_formATtop=off
      delete_move_next_t=off
      email_address=
      filter0=Header,X-Spam-Status: Yes,INBOX.spam
      filters_spam_folder=INBOX.spam
      filters_spam_scan=new
      filters_user_scan=new
      folder_synch_opt_right=1
      full_name=
      hililist=a:0:{}
      include_self_reply_all=0
      javascript_on=1
      left_refresh=300
      left_size=180
      mailfetch_cypher=on
      mailfetch_newlog=off
      newmail_changetitle=on
      pf_cleandisplay=1
      read_new_win_height=618
      read_new_win_width=680
      reply_citation_style=date_time_author
      reply_focus=focus
      reply_to=
      reuse_read_window=0
      search_memory=5
      sent_subfolders_base=INBOX.Sent
      show_html_default=1
      show_xmailer_default=1
      sig_first=1
      spamcop_method=through_email
      use_javascript_addr_book=1
      windows_on_read=1
  6. If you want to set these preferences for any existing mail accounts, do one of the following (remember to replace username with the username of the mail user you wish to replace and domain.com with the domain name of the virtual mail account):
    1. For DirectAdmin user accounts:
      Code:
      cp default_pref username.pref
    2. For virtual mail accounts:
      Code:
      cp default_pref [email protected]
Let me know what you think. If things are looking good, I'll begin working with smtalk to build this as an optional component of the custombuild script. Thanks. :)
 
I just found a minor problem with the default preferences file that I listed above. The line that reads:

Code:
filter0=Header,X-Spam-Status: Yes,INBOX.spam

Should be:

Code:
filter0=Header,X-Spam-Flag: YES,INBOX.spam

Sorry about that. :)
 
I just wanted to see if anyone has had any luck with any of this. Please let me know when you have a chance. Or, has nobody tried it yet because they are waiting for a script? :rolleyes:
 
I just wanted to see if anyone has had any luck with any of this. Please let me know when you have a chance. Or, has nobody tried it yet because they are waiting for a script? :rolleyes:

Being a coward, I was waiting for your script :)
 
This has caused problems for me
Investigating now but not in production yet so no problems
Will let you know and maybe do the script myself depending on outcome
 
Needs:
Code:
chown -R webapps:webapps src
After everything

Tried and tested with nutsmail (1.4.15) graphite theme
 
Last edited:
Also, when you install all the above addons there is one that assumes the theme will be the default one. It also ignores language preferences.
To fix the first problem only, go to plugins/askuserinfo/setup.php and find "NOTE: You need to supply your full name and email address."
In the <p> tag, replace:
Code:
<p align="center">
With:
Code:
<p align="center" style="position:absolute;width:300px;height:20px;left:50%;margin-left:-150px;top:100px;">
 
Back
Top