[torqueusers] [patch] use euser instead of job_owner when using TMAILDOMAIN

Einar Blaberg eb at chalmers.se
Fri Mar 4 02:48:30 MST 2005


So that mailto gets user at TMAILDOMAIN instead than
user at submithost@TMAILDOMAIN

--- torque-1.2.0p1/src/server/svr_mail.c.orig   2005-03-03 16:56:20.000000000 +0100
+++ torque-1.2.0p1/src/server/svr_mail.c        2005-03-04 10:34:31.000000000 +0100
@@ -199,6 +199,7 @@
     strcpy(mailto,pjob->ji_wattr[(int)JOB_ATR_job_owner].at_val.at_str);

     #ifdef TMAILDOMAIN
+      strcpy(mailto,pjob->ji_wattr[(int)JOB_ATR_euser].at_val.at_str);
       strcat(mailto,"@");
       strcat(mailto,TMAILDOMAIN);
     #endif /* TMAILDOMAIN */


-- 
Einar Blaberg
Chalmers Technical University


More information about the torqueusers mailing list