phpgroupware-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [patch #3054] how to get phpgw to act as default


From: Johnson
Subject: [Phpgroupware-tracker] [patch #3054] how to get phpgw to act as default email program for linux
Date: Thu, 13 May 2004 23:09:55 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 Galeon/1.3.14

This mail is an automated notification from the patch tracker
 of the project: phpGroupWare.




/**************************************************************************/
[patch #3054] Full Item Snapshot:

URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=3054>
Project: phpGroupWare
Submitted by: Johnson
On: Fri 05/14/04 at 03:08

Category:  email
Priority:  1 - Later
Resolution:  None
Assigned to:  None
Originator Email:  
Status:  Open


Summary:  how to get phpgw to act as default email program for linux

Original Submission:  This was already available to windows systems thanks to cw

It now works with gnome and phpgw 0.9.16 (and likely kde)

First you need to get the home.php from the HEAD branch.  You can download it 
here .. 
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/phpgroupware/phpgroupware/home.php?rev=1.16.2.1.2.5

Next you need to modify your email/inc/bocompose.inc.php.
change (around line 660):
                                if ($mailto)
                                {
                                        $to_box_value = substr($mailto, 7,
strlen($mailto));
                                }


to:
                                if ($mailto)
                                {
                                        $array=parse_url($mailto);
                                        $to_box_value = $array['path'];
                                        parse_str($array['query']);
                                }

Next you use this bash script.
#!/bin/sh
                                                                                
                              
# use a phpgw web mail as a mailto handler
#
# In fedora, go to Menu, Preferences, File Types and Programs
# click on internet and then "Add a service"
# in the run box fill in this script's filename (and path) and then "%s"
# (like /home/scripts/phpgwmailto.sh "%s")
# (there might be a similar way in KDE)
# then edit this file to change the path to galeon (might also work with other
browsers)
# also change the url to your phpgw install

process=`echo $1 | sed 's/%/%25/g
s/ /%20/g
s/      /%09/g
s/!/%21/g
s/"/%22/g
s/#/%23/g
s/\$/%24/g
s/&/%26/g
s/'''/%27/g
s/(/%28/g
s/)/%29/g
s/*/%2a/g
s/+/%2b/g
s/,/%2c/g
s/-/%2d/g
s/./%2e/g
s///%2f/g
s/:/%3a/g
s/;/%3b/g
s/</%3c/g
s/=/%3d/g
s/>/%3e/g
s/?/%3f/g
s/@/%40/g
s/[/%5b/g
s/\/%5c/g
s/]/%5d/g
s/^/%5e/g
s/_/%5f/g
s/`/%60/g
s/{/%7b/g
s/|/%7c/g
s/}/%7d/g
s/~/%7e/g'`

/usr/bin/galeon
"http://your.domain.com/phpgroupware/login.php?phpgw_forward=/index.php&phpgw_m
enuaction=email.uicompose.compose&phpgw_mailto=$process"

exit 1













For detailed info, follow this link:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3054>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]