Hi there, If I had to do this in the current Bacula setup, I'd write a script to be called by the mailcommand.
It could then work out the appropriate user to mail the log to based on one of the parameters passed (Job name or similiar) It could then call the bsmtp program with the appropriate recipient. Of course you might have to do some script-fu to pass the log thru to bsmtp (I believe it's piped to standard input, but could be wrong) and I'm not sure off the top of my head what the best method to achieve this is. Troy. You'd have to pass it all the variables Miki Lewinger wrote: > Hi there, > > I'm looking for a convenient way to send individual mail reports to > users as soon as his/her particular job(s) have finished. Ideally (for a > non-programmer like me...) this could/should be done by substituting the > recipient's email address variable (%r) defined within a MESSAGE > resource, with a job-defined variable (let's call it job_mail). > > Job { > name=john_locke > fileset=xxx > pool=mmm > ***job_mail="[EMAIL PROTECTED]"*** > messages="job_complete" > etc > } > > and on the messages resource: > > messages { > name=job_complete > ***%%r=job_mail*** > mailcommand = "bacula/bin/bsmtp -h mail.example.com \ > -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r" > } > > I have read Chapter 55 - Variables Expansion - but the part regarding > substitution is quite short and lacking examples... and the support > status on variable substitution is not clear (dropped ? removed ?). > > Can this seemingly mundane task be performed without using python ? > > Thanks in advance, > > Michael Lewinger > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users