* Addressbook: preference to open EMail addresses in external mail program, even if user has access to EMail app

This commit is contained in:
Ralf Becker 2012-01-13 05:22:18 +00:00
parent d6b72ffe8b
commit d972804aff
4 changed files with 26 additions and 7 deletions

View File

@ -317,6 +317,18 @@ class addressbook_hooks
'default'=> isset($options[$default_def]) ? $default_def : false, 'default'=> isset($options[$default_def]) ? $default_def : false,
); );
} }
if ($GLOBALS['egw_info']['user']['apps']['felamimail'])
{
$settings['force_mailto'] = array(
'type' => 'check',
'label' => 'Open EMail addresses in external mail program',
'name' => 'force_mailto',
'help' => 'Default is to open EMail addresses in EGroupware EMail application, if user has access to it.',
'xmlrpc' => True,
'admin' => False,
'default'=> false,
);
}
return $settings; return $settings;
} }

View File

@ -140,6 +140,7 @@ default document to insert contacts addressbook de Standarddokument zum Einfüge
default file as format addressbook de Vorgabe für eigene Sortierung default file as format addressbook de Vorgabe für eigene Sortierung
default filter addressbook de Standardfilter default filter addressbook de Standardfilter
default format for fileas, eg. for new entries. addressbook de Vorgegebenes Format für eigene Sortierung, z.B. für neue Einträge default format for fileas, eg. for new entries. addressbook de Vorgegebenes Format für eigene Sortierung, z.B. für neue Einträge
default is to open email addresses in egroupware email application, if user has access to it. addressbook de Vorgabe ist EMail Adressen in EGroupware's EMail Anwendung zu öffnen, wenn der Benutzer darauf Zugriff hat.
defines which email address (business or home) to use as the preferred one for distribution lists in mail. addressbook de Legt fest, welche E-Mailadresse (geschäftlich oder privat) für Verteilerlisten in E-Mail bevorzugt benutzt werden soll. defines which email address (business or home) to use as the preferred one for distribution lists in mail. addressbook de Legt fest, welche E-Mailadresse (geschäftlich oder privat) für Verteilerlisten in E-Mail bevorzugt benutzt werden soll.
delete a single entry by passing the id. addressbook de Löscht einen einzelnen Eintrag durch Übergabe seiner ID. delete a single entry by passing the id. addressbook de Löscht einen einzelnen Eintrag durch Übergabe seiner ID.
delete selected distribution list! addressbook de Löscht die ausgewählten Verteilerliste! delete selected distribution list! addressbook de Löscht die ausgewählten Verteilerliste!
@ -296,6 +297,7 @@ no fallback addressbook de Keine Ausweichlösung
no vcard addressbook de Keine VCard no vcard addressbook de Keine VCard
number addressbook de Nummer number addressbook de Nummer
number of records to read (%1) addressbook de Anzahl der einzulesenden Datensätze (%1) number of records to read (%1) addressbook de Anzahl der einzulesenden Datensätze (%1)
open email addresses in external mail program addressbook de Öffne EMail Adressen in externem Mail Programm
options for type admin de Optionen für Typ options for type admin de Optionen für Typ
organisation addressbook de Organisation organisation addressbook de Organisation
organisations addressbook de Organisationen organisations addressbook de Organisationen

View File

@ -140,6 +140,7 @@ default document to insert contacts addressbook en Default document to insert co
default file as format addressbook en Default file as format default file as format addressbook en Default file as format
default filter addressbook en Default filter default filter addressbook en Default filter
default format for fileas, eg. for new entries. addressbook en Default format for fileas, eg. for new entries. default format for fileas, eg. for new entries. addressbook en Default format for fileas, eg. for new entries.
default is to open email addresses in egroupware email application, if user has access to it. addressbook en Default is to open EMail addresses in EGroupware EMail application, if user has access to it.
defines which email address (business or home) to use as the preferred one for distribution lists in mail. addressbook en Which email address is used as preferred one for distribution lists. defines which email address (business or home) to use as the preferred one for distribution lists in mail. addressbook en Which email address is used as preferred one for distribution lists.
delete a single entry by passing the id. addressbook en Delete a single entry by passing the ID. delete a single entry by passing the id. addressbook en Delete a single entry by passing the ID.
delete selected distribution list! addressbook en Delete selected distribution list! delete selected distribution list! addressbook en Delete selected distribution list!
@ -296,6 +297,7 @@ no fallback addressbook en No fallback
no vcard addressbook en No vCard no vcard addressbook en No vCard
number addressbook en Number number addressbook en Number
number of records to read (%1) addressbook en Number of records to read (%1) number of records to read (%1) addressbook en Number of records to read (%1)
open email addresses in external mail program addressbook en Open EMail addresses in external mail program
options for type admin en Options for type options for type admin en Options for type
organisation addressbook en Organisation organisation addressbook en Organisation
organisations addressbook en Organisations organisations addressbook en Organisations

View File

@ -205,6 +205,8 @@ class url_widget
{ {
if (!$email || strpos($email,'@') === false) return ''; if (!$email || strpos($email,'@') === false) return '';
if (!$GLOBALS['egw_info']['user']['preferences']['addressbook']['force_mailto'])
{
if($GLOBALS['egw_info']['user']['apps']['felamimail']) if($GLOBALS['egw_info']['user']['apps']['felamimail'])
{ {
//return 'felamimail.uicompose.compose&preset[to]='.($rfc822 ? $rfc822 : $email); //return 'felamimail.uicompose.compose&preset[to]='.($rfc822 ? $rfc822 : $email);
@ -214,6 +216,7 @@ class url_widget
{ {
return 'email.uicompose.compose&to='.$email; return 'email.uicompose.compose&to='.$email;
} }
}
return 'mailto:' . $email; return 'mailto:' . $email;
} }