I have a question about the Auto Reply email addresses used by default in the Vacation preference.

Our users login (Active Directory) with lastnamefirstname. Their email addresses are of the form [email protected]

By default, when going to make a Vacation autoresponse, the Auto Response email text box is filled in with both [email protected] and [email protected].

I have traced below where I think this originates from and am wondering why it uses this derived email address and what will I break if i just comment out the line " [emails addObject: systemEmail];" ?

Thanks.


r...@sogo:/opt/dev/SOGo-1.3.4# nano +511 SoObjects/SOGo/SOGoUserManager.m
- (void) _fillContactMailRecords: (NSMutableDictionary *) contact
{
  NSString *uid, *domain, *systemEmail;
  NSMutableArray *emails;
  SOGoDomainDefaults *dd;

  domain = [contact objectForKey: @"c_domain"];
  if ([domain length])
    dd = [SOGoDomainDefaults defaultsForDomain: domain];
  else
    dd = [SOGoSystemDefaults sharedSystemDefaults];
  emails = [contact objectForKey: @"emails"];
  uid = [contact objectForKey: @"c_uid"];
  if ([uid rangeOfString: @"@"].location == NSNotFound)
    systemEmail
      = [NSString stringWithFormat: @"%@@%@", uid, [dd mailDomain]];
  else
    systemEmail = uid;
 [emails addObject: systemEmail];
  [contact setObject: [emails objectAtIndex: 0] forKey: @"c_email"];
}

--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to