Hello once more,

I just realised that in my tests, submitters don't get a confirmation of the approval/rejection of their documents. Only the referee does. (Up to now, the submitter and referee was the same person, administrator, so everything SEEMED OK).

After looking at the Send_APP_Mail.py websubmit function I saw that the record owner is taken from 8560_f (or 859__f for CERN) and my records dodn't have the email there! (FYI, I'm using 'local' 990 fields that look like $aSubmitted by [email protected] on DD/MM/YYYY $tTIMESTAMP)

What I'm suggesting is that IF the list of emails found in 8560_f/859__f, is EMPTY, one should also look for 'SuE' file and get the email from there, as a last resort to get the message sent (it's pretty much standard that this file should exist, since only logged in users can submit files).

Here is the code (it worked for me):

[...]
    else:
        record_owners_list = []
    record_owners = ",".join([owner for owner in record_owners_list])

   if record_owners == "":
       try:
           fp_sue = open("%s/SuE" % curdir, "r")
           record_owners = fp_sue.readline().lower()
           fp_sue.close()
       except IOError:
           record_owners = ""

    if record_owners != "":
        addresses += ",%s" % record_owners



Reply via email to