Hello Jaime,

Thanks for the Feature Request and the patch to implement it.  The patch is 
simple enough that I have included it in my current source code, so it will 
be available in the next beta or the release of 1.40.0.

Best regards,

Kern

On Wednesday 15 November 2006 17:26, Jaime Ventura wrote:
> Item 1:   Bacula support for a MailOnSuccess feature.
>   Origin: Jaime Ventura <jaimeventura at ipp dot pt>
>   Date:   15 November 2006
>   Status: for 1.38.11: coded(patch on attachment), compiled, tested
>         for 1.39.28: coded(patch on attachment), complied, NOT tested
> 
> 
>   What:  be able to send a email message for a specified email address if 
(and only if) a job finishes successfully.
>        Its similar to the MailOnError feature. 
> 
>   Why:    The importance is about the same as MailOnError feature.
>         Since its not possible to do it using bacula's message types(info, 
error,...)filter, this could be done using some kind of filter, right after 
the mail was sent.
>         But since there is a MailOnError feature, why not have a 
> MailOnSuccess 
feature?
> 
> 
> Notes: 
> 
>       Why its not possible to do it using bacula's message types(info, 
error,...)? 
> 
>       Imagine I want bacula to send ONLY successful job reports/messages to 
[EMAIL PROTECTED]
>       When a job starts, bacula send the message : 10-Nov 17:37 bserver-dir: 
Start Backup JobId 1605, Job=Job.GSI04.2006-11-10_17.37.30   
>       Since this is a info message (msgtype = M_INFO) the "bacula's messaging 
system" put it on the job messages (jcr->jcr_msgs) to be sent 
>       to all dest that have the info type enabled (including [EMAIL 
> PROTECTED]).
>       But when/if the job fails, that message (10-Nov 17:37 bserver-dir: 
Start Backup JobId 1605, Job=Job.GSI04.2006-11-10_17.37.30) has already 
>       been queued to be sent to [EMAIL PROTECTED], even though it refers to a 
unsuccessful backup.
>       So when its time to send all messages to emails, the "bacula's 
messaging system" send that message (10-Nov 17:37 bserver-dir: Start 
>       Backup JobId 1605, Job=Job.GSI04.2006-11-10_17.37.30) to [EMAIL 
> PROTECTED], 
but using the subject "bacula ERROR", because the job terminated 
unsuccessful.
>    
>       This "problem" could also happen if I wanted bacula to send emails 
regarding unsuccessful backups, if i didnt use the MailOnError feature. 
>       This feature is implemented so that if messages that  where queued to 
> be 
sent if the backup was unsuccessful, to be discarded if the backup is 
> successful.
> 
> 
> 
> -- 
> 
> 
> 
>  
> 
> 
> 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>         
> 
>       
> 
> 
> 
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to