Squirrelmail Plugin install kit

gerrybakker

Verified User
Joined
Apr 24, 2004
Messages
54
Squirrelmail plugin installs

First - upgrade to Squirrelmail 1.4.6

Squirrelmail updates

Basically use these steps and replace the version number as needed.


just copy and paste this code into your SSH terminal window

cd /var/www/html
tar -cvf oldsquirreldata.tar squirrelmail/data/ *
cd /var/www/html
mkdir squirrelmail-1.4.6
cd /usr/local/directadmin/scripts/packages
wget http://easynews.dl.sourceforge.net/sourceforge/squirrelmail/squirrelmail-1.4.6.tar.gz
cd /usr/local/directadmin/scripts
vi squirrelmail.sh

(manually change - VERSION=1.4.6) on the top line of squirrelmail.sh

then copy and paste this code into your SSH terminal window


./squirrelmail.sh
cd /var/www/html/squirrelmail-1.4.6*
cd data
tar -cvf /var/www/html/squirrelmail/data/olddata.tar *
cd /var/www/html/squirrelmail/data
tar -xvpf ../../oldsquirreldata.tar
rm -f ../../oldsquirreldata.tar


if your Squirrelmail is now at version 1.4.6 go on to the next stage below.


just copy and paste this code into your SSH terminal window and the installs are all done. Then pick option 8 in the config screen and add them to the plugins used.


cd /var/www/html/squirrelmail/plugins
wget http://www.squirrelmail.org/plugins/folder_sizes.1.4-1.4.tar.gz
wget http://www.squirrelmail.org/plugins/view_as_html-3.7a-1.4.x.tar.gz
wget http://www.squirrelmail.org/plugins/preview_pane-1.2-1.4.3.tar.gz
wget http://www.squirrelmail.org/plugins/msg_flags-1.4.3.1-1.4.3.tar.gz
wget http://www.squirrelmail.org/plugins/html_mail-2.3-1.4.tar.gz
tar -zxvf folder_sizes.1.4-1.4.tar.gz
tar -zxvf view_as_html-3.7a-1.4.x.tar.gz
tar -zxvf preview_pane-1.2-1.4.3.tar.gz
tar -zxvf msg_flags-1.4.3.1-1.4.3.tar.gz
tar -zxvf html_mail-2.3-1.4.tar.gz
rm -f *.tar.gz
cd html_mail
patch -p0 < patches/squirrelmail-1.4.6-emoticons.diff
cd ..
cd msg_flags
patch -p0 < ./msg_flags-squirrelmail-1.4.3a.diff
cd ..
cd ../config
./conf.pl

The conf.pl program is a nice terminal based config manager for Squirrelmail. Be sure to pick option 8 and add any plugins you like from the list in the config manager.

Here is my plugin list. You'll see much the same - just enter the number of the Available Plugin you want to move to the Installed area and it adds it there.

Plugins
Installed Plugins
1. folder_sizes
2. newmail
3. filters
4. squirrelspell
5. listcommands
6. view_as_html
7. preview_pane
8. delete_move_next
9. msg_flags
10. info
11. message_details
12. html_mail
13. spamcop

Available Plugins:
14. calendar
15. bug_report
16. sent_subfolders
17. abook_take
18. administrator
19. fortune
20. translate
21. mail_fetch


Once that is all done log into your Squirrelmail account and click on options. Have fun.

My favorite Display Preferences are
Theme: Default
Custom Stylesheet:tahoma 10
Show Message Preview Pane:yes
Split Preview Pane Vertically::no
Default Email Composition Format: HTML
Only Reply In HTML When Viewing HTML Format:No
Only Allow Unsafe Images In HTML Replies When Viewing Unsafe Images:No

My Favorite Folder Preferences are
Show Folder Sizes: As link under folder list
On Folders page:yes
With subtotals:yes

My Favorite Index Order
up | down | remove - Checkbox
up | down | remove - Flags
up | down | remove - From
up | down | - Subject
up | down | remove - Date

Set up the Message Filters to sort your email in Folders including new ones you've created.

Then set the NewMail option to play your favorite "You've got mail" message.

Once you've got this far you'll have a very nicely behaved and useful configuration that everybody will recognize as a better than Yahoo or Google mail system with WYSIWYG email editing and lots of graphical icons to help make sense of an otherwise very bland interface.

If you like to make my suggested settings the default for all new Squiirelmail users then go to the squirrelmail data folder and edit the default_pref file
cd /var/www/html/squirrelmail/data
vi default_pref

here are the settings I copied into the default_pref file.
================================
show_html_default=1
sort=0
hililist=a:0:{}
javascript_on=1
newmail_enable=on
newmail_allbox=on
newmail_recent=on
newmail_changetitle=on
newmail_media=
unseen_cum=1
folder_sizes_left_link=1
folder_sizes_on_folder_page=1
folder_sizes_subtotals=1
custom_css=tahoma-10.css
use_previewPane=1
previewPane_vertical_split=0
pp_refresh_message_list=1
attachment_common_show_images=1
pf_cleandisplay=1
delete_move_next_t=off
delete_move_next_formATtop=off
delete_move_next_b=on
delete_move_next_formATbottom=on
order1=1
order2=5
order3=2
order4=4
order5=3
prefix_sig=0
left_refresh=1200
date_format=1
show_num=100
html_mail_aggressive_reply_with_unsafe_images=1
html_mail_aggressive_reply=1
compose_window_type=html
compose_width=640
show_full_date=0
html_editor_style=1
compose_new_win=0
compose_height=550
use_signature=0
filters_spam_folder=INBOX.spam
order6=6
unseen_notify=3
unseen_type=2
================================

Be sure to go to squirrelmail.org to check out their other plugins which I didn't mention here. Use the same principals to install them as shown in my scripts and they'll install with no problem.

Here is another useful snippet. You can test your install with the following line

http://www.yourdomain.com/squirrelmail/src/configtest.php

I have to say thanks to the others who contributed to the scripts by posting their entries in this forum and providing me with the idea to bundle it together in a set that is easy to use. I upgraded 4 servers yesterday using these scripts and it took about 5 minutes each - most of the time was spent checking my work to make sure it actually did what was promised - it did!!!!
 
Last edited:
Hey... this sounds like a great "How To" to me... however, I haven't done this before so please tell me a couple of things to make it more clear before I proceed.

1. If I install addons like these, will they still be available if a future release of DA includes a Squirrelmail update?

2. If I follow the instructions exactly as you have them listed, will all of the plugins be available.... OR do I have to run the conf.pl for each plugin? When I run the config file, does it read all of the contents of the plugins directory?

Thanks!!!
 
I think the update actually remove your current folder and insert a new 1 with all the user data so it cant bring over I guess.

As for conf.pl , when you do the command it will automatically show u the whole list of plugin you have
 
Back
Top