Ignore:
Timestamp:
2000-12-08T17:00:35+13:00 (23 years ago)
Author:
sjboddie
Message:

Implemented the new MailServer, LogEvents, EmailEvents and EmailUserEvents
configuration options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/receptionist.cpp

    r1762 r1778  
    418418  // if maintainer email address is something dodgy (for now I'll define
    419419  // dodgy as being anything that doesn't contain '@') disable EmailEvents
    420   // and EmailUserEvents
     420  // and EmailUserEvents (we don't strictly need to disable EmailUserEvents
     421  // in this case but we will as it seems likely that MailServer will also
     422  // be screwed up if maintainer is).
    421423  text_t::const_iterator maintainer_end = configinfo.maintainer.end ();
    422424  text_t::const_iterator maintainer_here = findchar (configinfo.maintainer.begin(),
     
    428430    // if MailServer isn't set it should default to mail.maintainer-domain
    429431    if (configinfo.MailServer.empty()) {
    430       configinfo.MailServer = "mail." + substr (maintainer_here, maintainer_end);
     432      configinfo.MailServer = "mail." + substr (maintainer_here+1, maintainer_end);
    431433    }
    432434  }
Note: See TracChangeset for help on using the changeset viewer.