[torqueusers] No Email notification

David Beer dbeer at adaptivecomputing.com
Mon Mar 7 11:27:17 MST 2011


> 
> I've just found the undocumented qmgr command:
> 
> set server mail_domain = never
> 
> which looks like it should completely disable sending emails.
> 
> This also appears to get rid of the log file spam messages of the form
> "Not sending email: User does not want mail of this type."
> 
> Stuart Barkley

I didn't know this existed either, but the code is right there: 

if ((server.sv_attr[SRV_ATR_MailDomain].at_flags & ATR_VFLAG_SET) &&
      (server.sv_attr[SRV_ATR_MailDomain].at_val.at_str != NULL) &&
      (!strcasecmp("never", server.sv_attr[SRV_ATR_MailDomain].at_val.at_str)))
    {
    /* never send user mail under any conditions */
    if (LOGLEVEL >= 3)
      {
      log_event(PBSEVENT_ERROR | PBSEVENT_ADMIN | PBSEVENT_JOB,
        PBS_EVENTCLASS_JOB,
        pjob->ji_qs.ji_jobid,
        "Not sending email: Mail domain set to 'never'\n");
      }

    return;
    }

I will submit a ticket to have this documented.

-- 
David Beer 
Direct Line: 801-717-3386 | Fax: 801-717-3738
     Adaptive Computing
     1656 S. East Bay Blvd. Suite #300
     Provo, UT 84606



More information about the torqueusers mailing list