Menu

#184 [Vacation]Trouble with multiples identities

closed
nobody
None
5
2007-10-01
2007-05-10
mOliver
No

Hi,

I installed your vacation plug. I have a trouble with multiple identity.
In fact the plugin always use the last identity in the list.
I had to modify the source code to avoid this.

Below my modifications of vac_init.php. Maybe usefull.

// allow vacation executable to handle aliases; all
// aliases have to be defined in SM prefs already
//

// Commenté par Olivier le 24/04/07
// mauvaise gestion identité multiple

/* $email = $username . '@' . $domain;
$alias_list = '';
$ident = getPref($data_dir, $username, 'identities');
if (!$ident) $ident = 1;
for ($i = 0; $i < $ident; $i++)
{

if ($i == 0)
$prefs_email = getPref($data_dir, $username, 'email_address');
else
$prefs_email = getPref($data_dir, $username, 'email_address' . $i);

if (!empty($prefs_email))
$email = $prefs_email;

preg_match('/(^[-_.[:alnum:]]+)/', $prefs_email, $alias);
if (isset($alias[1]) && $alias[1] != $username)
$alias_list .= '-a ' . $alias[1] . ' ';

}

*/
// rajouter par Olivier MOULIN
$email = getPref($data_dir, $username, 'email_address');

// get user's real name for use in the reply header
//
$full_name = getPref($data_dir, $username, 'full_name');

Regards

Discussion

  • Paul Lesniewski

    Paul Lesniewski - 2007-09-17
    • status: open --> pending
     
  • Paul Lesniewski

    Paul Lesniewski - 2007-09-17

    Logged In: YES
    user_id=508228
    Originator: NO

    It is not clear which plugin this refers to. You should always file help requests with the plugins mailing list or to the author directly. Thanks.

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.