Skip to content

Commit

Permalink
feat(user): enable alumni email autoresponder
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Nov 12, 2024
1 parent 9704a3c commit ebab1ae
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion compiler_admin/commands/user/alumni.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def alumni(args: Namespace) -> int:
return RESULT_FAILURE

if getattr(args, "force", False) is False:
cont = input(f"Convert account to alumni for {account}? (Y/n)")
cont = input(f"Convert account to alumni: {account}? (Y/n) ")
if not cont.lower().startswith("y"):
print("Aborting conversion.")
return RESULT_SUCCESS
Expand Down Expand Up @@ -87,4 +87,30 @@ def alumni(args: Namespace) -> int:
)
res += CallGAMCommand(command)

print("Turning on email autoresponder")
# https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Gmail-Send-As-Signature-Vacation#manage-vacation
message = (
"Thank you for contacting Compiler. This inbox is no longer actively monitored.<br /><br />"
+ f"Please reach out to {USER_HELLO} if you need to get a hold of us."
)
command = (
"user",
account,
"vacation",
"true",
"subject",
"[This inbox is no longer active]",
"message",
message,
"contactsonly",
"false",
"domainonly",
"false",
"start",
"Started",
"end",
"2999-12-31",
)
res += CallGAMCommand(command)

return res

0 comments on commit ebab1ae

Please sign in to comment.