On Friday 10 November 2006 11:08, Jaime Ventura wrote: > kern, > thanks for your reply. > I've commented the line "mail = [EMAIL PROTECTED] = all, !skipped" so > that there were only only one "mail" directive. > I still receive the error messages on [EMAIL PROTECTED] email > account.(and also on [EMAIL PROTECTED] email account, but that's the expected > behavior). > > I don't have much time right now, but if you point me out where in > the code is this implemented, I would like to take a look at it. > Thanks >
Take a look at the file: <bacula>/src/lib/message.c for the implementation. The configuration code (reading conf files and creating the resource structures) is probably in <bacula>/src/lib/parse-conf.c > > > > > > Jaime Ventura > [Infra-estruturas e Comunicações] > > Rua Dr. António Bernardino de Almeida, 431 > 4200 - 072 Porto > Telef: +351 22 834 05 00 (04) - ext. 1641 > Fax: +351 22 832 11 59 > > e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > url: www.isep.ipp.pt <http://www.isep.ipp.pt> > > > > > > > > Kern Sibbald wrote: > > On Wednesday 08 November 2006 12:55, Jaime Ventura wrote: > > > >> Hello > >> This is my second email concerning this subject. > >> Since no one answer me, and I've tested all possible ways (i think) > >> should I consider this a bug? > >> Thanks > >> > >> > >> Message I sent before: > >> > >> I'm trying to set the messages resource so that messages about > >> successful backups/restores are sent to one email address and the > >> messages concerning error backups/restore to another. > >> Here goes my resource: > >> > >> Messages { > >> Name = MessagesForUsers > >> mailcommand = "/usr/sbin/bsmtp -h 127.0.0.1 -f \"\(Bacula\) %r\" -s > >> \"Bacula: %t %e of %c %l\" %r" > >> operatorcommand = "/usr/sbin/bsmtp -h 127.0.0.1 -f \"\(Bacula\) %r\" > >> -s \"Bacula: Intervention needed for %j\" %r" > >> mail = [EMAIL PROTECTED] = all, !skipped > >> operator = [EMAIL PROTECTED] = mount > >> mail = [EMAIL PROTECTED] = info, warning, saved, !error, !fatal > >> MailOnError = [EMAIL PROTECTED] = all, !skipped, !terminate > >> > >> console = all, !skipped, !saved > >> # WARNING! the following will create a file that you must cycle from > >> # time to time as it will grow indefinitely. However, it will > >> # also keep all your messages if they scroll off the console. > >> # > >> append = "/var/bacula/log" = all, !skipped > >> } > >> > >> > >> > >> The problem is that I get both ERROR and OK messages on the address > >> where only OK messages should go ([EMAIL PROTECTED] in my case). > >> Any ideas? > >> > > > > You have two "mail" directives. Perhaps this is the problem. > > > > > >> Thanks, > >> > >> -- > >> > >> > >> > >> > >> > >> > >> Jaime Ventura > >> [Infra-estruturas e Comunicações] > >> > >> Rua Dr. António Bernardino de Almeida, 431 > >> 4200 - 072 Porto > >> Telef: +351 22 834 05 00 (04) - ext. 1641 > >> Fax: +351 22 832 11 59 > >> > >> e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > >> url: www.isep.ipp.pt <http://www.isep.ipp.pt> > >> > >> > >> > >> > >> > >> > >> ------------------------------------------------------------------------- > >> Using Tomcat but need to do more? Need to support web services, security? > >> Get stuff done quickly with pre-integrated technology to make your job > >> easier > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> _______________________________________________ > >> Bacula-users mailing list > >> Bacula-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/bacula-users > >> > >> > >> ------------------------------------------------------------------------- > >> Using Tomcat but need to do more? Need to support web services, security? > >> Get stuff done quickly with pre-integrated technology to make your job > >> > > easier > > > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> _______________________________________________ > >> Bacula-users mailing list > >> Bacula-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/bacula-users > >> > >> > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Bacula-users mailing list > > Bacula-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/bacula-users > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users