|
@@ -2,8 +2,6 @@
|
|
|
|
|
|
DIR = "/var/local/log/lcmlog-data"
|
|
|
FROM_DOMAIN = "lcm.mi.infn.it"
|
|
|
-TO_ADDRESS = "working@lcm.mi.infn.it"
|
|
|
-REPLY_TO = True # Does this make sense?
|
|
|
|
|
|
import os
|
|
|
import os.path
|
|
@@ -74,6 +72,12 @@ def main():
|
|
|
log = sys.stdin.read() # Read the log content
|
|
|
if optional_line == "MAIL":
|
|
|
send_mail = True
|
|
|
+ if kind == "Admin":
|
|
|
+ TO_ADDRESS = "admins@lcm.mi.infn.it"
|
|
|
+ REPLY_TO = True
|
|
|
+ else:
|
|
|
+ TO_ADDRESS = "working@lcm.mi.infn.it"
|
|
|
+ REPLY_TO = True
|
|
|
else:
|
|
|
send_mail = False
|
|
|
# optional_line consumes the input but it is not
|