/[monit]/monit/p.y
ViewVC logotype

Diff of /monit/p.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.141 by hauk, Thu Oct 2 02:17:36 2003 UTC revision 1.142 by hauk, Thu Oct 2 02:42:41 2003 UTC
# Line 204  Line 204 
204    static unsigned int eventset;    static unsigned int eventset;
205    static Command_T command= NULL;    static Command_T command= NULL;
206    static Service_T depend_list= NULL;    static Service_T depend_list= NULL;
   static MailServer_T mailserverlist= NULL;  
207    static struct IHavePrecedence ihp= {FALSE, FALSE, FALSE};    static struct IHavePrecedence ihp= {FALSE, FALSE, FALSE};
208    static struct PortSet portset= {-1, NULL, 0, SOCK_STREAM, AF_INET, FALSE,    static struct PortSet portset= {-1, NULL, 0, SOCK_STREAM, AF_INET, FALSE,
209     SSL_VERSION_AUTO, NULL, NULL, NULL, NULL, NULL, ACTION_ALERT, NET_TIMEOUT};     SSL_VERSION_AUTO, NULL, NULL, NULL, NULL, NULL, ACTION_ALERT, NET_TIMEOUT};
# Line 469  setpid          : SET PIDFILE PATH { Line 468  setpid          : SET PIDFILE PATH {
468                   }                   }
469                  ;                  ;
470    
471  setmailservers  : SET MAILSERVER mailserverlist {  setmailservers  : SET MAILSERVER mailserverlist
                    Run.mailservers= mailserverlist;  
                  }  
472                  ;                  ;
473    
474  setmailformat   : SET MAILFORMAT '{' formatoptionlist '}' {  setmailformat   : SET MAILFORMAT '{' formatoptionlist '}' {
# Line 1840  static void addmailserver(char *host) { Line 1837  static void addmailserver(char *host) {
1837    s->host= host;    s->host= host;
1838    s->next= NULL;    s->next= NULL;
1839    
1840    if(mailserverlist) {    if(Run.mailservers) {
1841      MailServer_T l;      MailServer_T l;
1842      for(l= mailserverlist; l->next; l= l->next) /* empty */;      for(l= Run.mailservers; l->next; l= l->next) /* empty */;
1843      l->next= s;      l->next= s;
1844    } else {    } else {
1845      mailserverlist= s;      Run.mailservers= s;
1846    }    }
1847        
1848  }  }

Legend:
Removed from v.1.141  
changed lines
  Added in v.1.142

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26