File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
compiler_admin/commands/user Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def alumni(args: Namespace) -> int:
3434 return RESULT_FAILURE
3535
3636 if getattr (args , "force" , False ) is False :
37- cont = input (f"Convert account to alumni for { account } ? (Y/n)" )
37+ cont = input (f"Convert account to alumni: { account } ? (Y/n) " )
3838 if not cont .lower ().startswith ("y" ):
3939 print ("Aborting conversion." )
4040 return RESULT_SUCCESS
@@ -87,4 +87,30 @@ def alumni(args: Namespace) -> int:
8787 )
8888 res += CallGAMCommand (command )
8989
90+ print ("Turning on email autoresponder" )
91+ # https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Gmail-Send-As-Signature-Vacation#manage-vacation
92+ message = (
93+ "Thank you for contacting Compiler. This inbox is no longer actively monitored.<br /><br />"
94+ + f"Please reach out to { USER_HELLO } if you need to get a hold of us."
95+ )
96+ command = (
97+ "user" ,
98+ account ,
99+ "vacation" ,
100+ "true" ,
101+ "subject" ,
102+ "[This inbox is no longer active]" ,
103+ "message" ,
104+ message ,
105+ "contactsonly" ,
106+ "false" ,
107+ "domainonly" ,
108+ "false" ,
109+ "start" ,
110+ "Started" ,
111+ "end" ,
112+ "2999-12-31" ,
113+ )
114+ res += CallGAMCommand (command )
115+
90116 return res
You can’t perform that action at this time.
0 commit comments