Kern,
       I now understand whats happening and if I where more specific 
with the explanation maybe you would figure out what was happening to me.
       Here's what I wanted:
          If backup  succides, then a messages would be sent to 
[EMAIL PROTECTED]
          If not, then a message would be sent to [EMAIL PROTECTED]

       Messages concerning backups failures would correctly be followed 
by a message to [EMAIL PROTECTED]
       But  all messages (success ou failure) would go to [EMAIL PROTECTED]
       Actually their not.
       When a backup is successfull, to [EMAIL PROTECTED] goes the full 
report(starting job, ...bla,bla, report, OK), with a "backup OK" subject.
       When a backup is NOT successfull, to [EMAIL PROTECTED] goes just 
some messages(starting job, ...bla,bla), not the full report, with a 
"backup ERROR" subject, and thats why  I was saying that error messages 
would go to [EMAIL PROTECTED]
       Those messages(starting job, ...bla,bla) "are sent" just after 
the job starts and at that point bacula doesnt know if the backup has 
succided or not.
      
       Thats why (i think) you have created the "MailOnError" feature.
       And I would like to have something like that for  successfully 
terminated jobs.
       Is there any way to do it on configuration (besides coding a new 
feature)?
       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>         

        





Kern Sibbald wrote:
> 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
>
>
>   

-------------------------------------------------------------------------
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

Reply via email to