

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
1 message in net.sourceforge.lists.courier-sqwebmail[sqwebmail] sqwebmail patch for a cou...| From | Sent On | Attachments |
|---|---|---|
| Chris Owen | Jul 8, 2005 10:22 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [sqwebmail] sqwebmail patch for a couple of new options | Actions... |
|---|---|---|
| From: | Chris Owen (owe...@hubris.net) | |
| Date: | Jul 8, 2005 10:22:58 am | |
| List: | net.sourceforge.lists.courier-sqwebmail | |
We installed sqwebmail this week and wanted to make a few changes so I thought I'd pass them alone in case anyone else wanted them.
I've created a patch that applies cleanly to sqwebmail-5.0.2. It may have other modifications in it that you don't want so you may want to look the patch over for those before applying it if you want any of these features.
New things I added:
Inbox is reloaded each time the inbox index is loaded. sqwebmail normally only checks for new mail if you go back to the folder list. We wanted to create a "check for new mail" button so we changed code to reload the inbox any time you go back to the inbox index page.
Back to index after delete option: sqwebmail normally automatically goes to next message in a mailbox after deleting a message. This adds the option to have it go back to mailbox index instead.
Show remote images option: Preference setting to allow sqwebmail to load remote images in HTML emails. I realize there are security implications but customers want their pretty pictures. Default is off.
Less graphics option: Basically this allows the user to toggle between two different style sheets. We used it so we could have a heavy graphics and a lesser graphics interface.
Real name and email address fields in the preferences: I realize you can change the return address when sending a message but we were afraid this would confuse customers so we added two new fields in the preferences. Setting these also sets return address which we kept for compatibility reasons with the rest of the code. Of course this means that if a user changes the return address when sending a message it can get that and these two new variables out of sync but we decided that was ok to avoid having to touch any more code than we absolutely had to. We don't plan on advertising the fact you can change the return address in the compose message page so we don't think it will be much of an issue.
The patch changes the following files:
patching file sqwebmail-5.0.2/sqwebmail/addressbook.c patching file sqwebmail-5.0.2/sqwebmail/folder.c patching file sqwebmail-5.0.2/sqwebmail/html.c patching file sqwebmail-5.0.2/sqwebmail/newmsg.c patching file sqwebmail-5.0.2/sqwebmail/pref.c patching file sqwebmail-5.0.2/sqwebmail/pref.h patching file sqwebmail-5.0.2/sqwebmail/sqwebmail.c
It does not patch any of the HTML templates. In order to use more the above you will also have to add the appropriate fields to preferences.html. I was going to create a patch that included all the HTML but it was huge since we made so many other unrelated changes.
Anyway, all the usual disclaimers apply. We tried to do as little as possible to the code to get what we wanted to make future upgrades easier so we often did just what was necessary to get what we wanted and this may not necessarily have been the most efficient.
The patch is 20K as a "unified" patch. Actual changes are about 12K. Most of this has to do with user interface though. The actual code changes are only a couple of dozen lines total.
The patch can be found here:
http://home.hubris.net/owenc/temp/sqwebmail-patch.txt
A copy of our preferences.html can be found here:
http://home.hubris.net/owenc/temp/preferences.html
Chris
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Chris Owen ~ Garden City (620) 275-1900 ~ Lottery (noun): President ~ Wichita (316) 858-3000 ~ A stupidity tax Hubris Communications Inc ~ www.hubris.net ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~







