Skip to content

Commit 9704a3c

Browse files
committed
feat(user): reset alumni email signature
1 parent 9ccd15a commit 9704a3c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

compiler_admin/commands/user/alumni.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from compiler_admin.commands.user.reset import reset
55
from compiler_admin.services.google import (
66
OU_ALUMNI,
7+
USER_HELLO,
78
CallGAMCommand,
89
move_user_ou,
910
user_account_name,
@@ -68,4 +69,22 @@ def alumni(args: Namespace) -> int:
6869
command = ("user", account, "turnoff2sv")
6970
res += CallGAMCommand(command)
7071

72+
print("Resetting email signature")
73+
# https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Gmail-Send-As-Signature-Vacation#manage-signature
74+
command = (
75+
"user",
76+
account,
77+
"signature",
78+
f"Compiler LLC<br />https://compiler.la<br />{USER_HELLO}",
79+
"replyto",
80+
USER_HELLO,
81+
"default",
82+
"treatasalias",
83+
"false",
84+
"name",
85+
"Compiler LLC",
86+
"primary",
87+
)
88+
res += CallGAMCommand(command)
89+
7190
return res

0 commit comments

Comments
 (0)