Cette page présente les spécificités du webmail installé à Montréal.

Le webmail utilise présentement le logiciel Horde/IMP, paramétré pour permettre autant l'accès aux boîtes locales à Montréal (domaine ca.auf.org) que les boîtes de secours pour tous les employés de l'AuF (domaine secours).

Pour ce faire, nous appliquons le correctif suivant :

   1 diff --git a/etc/horde/horde3/hooks.php b/etc/horde/horde3/hooks.php
   2 index 9f28e5d..c49b9e0 100644
   3 --- a/etc/horde/horde3/hooks.php
   4 +++ b/etc/horde/horde3/hooks.php
   5 @@ -167,6 +167,25 @@
   6  //     }
   7  // }
   8  
   9 +if (!function_exists('_prefs_hook_from_addr')) {
  10 +  function _prefs_hook_from_addr($name = null)
  11 +  {
  12 +    if (is_null($name)) {
  13 +      $name = Auth::getAuth();
  14 +      if ($name === false) {
  15 +        $name = '';
  16 +      }
  17 +    }
  18 +    if ($name != '' && strpos($name, '@')) {
  19 +      list($user, $domain) = explode('@', $name);
  20 +      if ($domain == 'secours') {
  21 +        $name = $user.'@auf.org';
  22 +      }
  23 +    }
  24 +    return $name;
  25 +  }
  26 +}
  27 +
  28  // Here is an example fullname hook function to set the fullname from the GECOS
  29  // information in the passwd file.
  30  
  31 diff --git a/etc/horde/horde3/prefs.php b/etc/horde/horde3/prefs.php
  32 index 95b8961..38722df 100644
  33 --- a/etc/horde/horde3/prefs.php
  34 +++ b/etc/horde/horde3/prefs.php
  35 @@ -234,9 +234,10 @@ $_prefs['fullname'] = array(
  36  // horde/config/hooks.php.
  37  $_prefs['from_addr'] = array(
  38      'value' => '',
  39 -    'locked' => false,
  40 +    'locked' => true,
  41      'shared' => true,
  42      'type' => 'text',
  43 +    'hook' => true,
  44      'desc' =>  _("Your From: address:")
  45  );