Updated gam <UserTypeEntity> create|update sendas <EmailAddress> ... replyto <EmailAddress>

to allow uppercase letters in `sendas <EmailAddress>` and `replyto <EmailAddress>`.
This commit is contained in:
Ross Scroggs
2024-03-17 12:05:27 -07:00
parent 448d58f9ba
commit 0754a9b176
7 changed files with 25 additions and 12 deletions

View File

@@ -10,6 +10,11 @@ Add the `-s` option to the end of the above commands to suppress creating the `g
See [Downloads](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads) for Windows or other options, including manual installation See [Downloads](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads) for Windows or other options, including manual installation
### 6.71.16
Updated `gam <UserTypeEntity> create|update sendas <EmailAddress> ... replyto <EmailAddress>`
to allow uppercase letters in `sendas <EmailAddress>` and `replyto <EmailAddress>`.
### 6.71.15 ### 6.71.15
Updated `gam create project` to handle the following error: Updated `gam create project` to handle the following error:

View File

@@ -25,7 +25,7 @@
* https://cloud.google.com/identity/docs/reference/rest/v1/groups * https://cloud.google.com/identity/docs/reference/rest/v1/groups
## Name guidelines ## Name guidelines
* https://support.google.com/a/answer/9193374?hl=en * https://support.google.com/a/answer/9193374
## Query documentation ## Query documentation
* https://developers.google.com/admin-sdk/directory/v1/guides/search-groups * https://developers.google.com/admin-sdk/directory/v1/guides/search-groups

View File

@@ -334,7 +334,7 @@ writes the credentials into the file oauth2.txt.
admin@server:/Users/admin/bin/gamadv-xtd3$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin/bin/gamadv-xtd3$ rm -f /Users/admin/GAMConfig/oauth2.txt
admin@server:/Users/admin/bin/gamadv-xtd3$ ./gam version admin@server:/Users/admin/bin/gamadv-xtd3$ ./gam version
WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found
GAMADV-XTD3 6.71.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource GAMADV-XTD3 6.71.16 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
Ross Scroggs <ross.scroggs@gmail.com> Ross Scroggs <ross.scroggs@gmail.com>
Python 3.12.2 64-bit final Python 3.12.2 64-bit final
MacOS Sonoma 14.2.1 x86_64 MacOS Sonoma 14.2.1 x86_64
@@ -1006,7 +1006,7 @@ writes the credentials into the file oauth2.txt.
C:\GAMADV-XTD3>del C:\GAMConfig\oauth2.txt C:\GAMADV-XTD3>del C:\GAMConfig\oauth2.txt
C:\GAMADV-XTD3>gam version C:\GAMADV-XTD3>gam version
WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found
GAMADV-XTD3 6.71.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource GAMADV-XTD3 6.71.16 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
Ross Scroggs <ross.scroggs@gmail.com> Ross Scroggs <ross.scroggs@gmail.com>
Python 3.12.2 64-bit final Python 3.12.2 64-bit final
Windows-10-10.0.17134 AMD64 Windows-10-10.0.17134 AMD64

View File

@@ -46,7 +46,7 @@
* https://developers.google.com/admin-sdk/directory/reference/rest/v1/schemas * https://developers.google.com/admin-sdk/directory/reference/rest/v1/schemas
## Name guidelines ## Name guidelines
* https://support.google.com/a/answer/9193374?hl=en * https://support.google.com/a/answer/9193374
## Query documentation ## Query documentation
* https://developers.google.com/admin-sdk/directory/v1/guides/search-users * https://developers.google.com/admin-sdk/directory/v1/guides/search-users

View File

@@ -3,7 +3,7 @@
Print the current version of Gam with details Print the current version of Gam with details
``` ```
gam version gam version
GAMADV-XTD3 6.71.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource GAMADV-XTD3 6.71.16 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
Ross Scroggs <ross.scroggs@gmail.com> Ross Scroggs <ross.scroggs@gmail.com>
Python 3.12.2 64-bit final Python 3.12.2 64-bit final
MacOS Sonoma 14.2.1 x86_64 MacOS Sonoma 14.2.1 x86_64
@@ -15,7 +15,7 @@ Time: 2023-06-02T21:10:00-07:00
Print the current version of Gam with details and time offset information Print the current version of Gam with details and time offset information
``` ```
gam version timeoffset gam version timeoffset
GAMADV-XTD3 6.71.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource GAMADV-XTD3 6.71.16 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
Ross Scroggs <ross.scroggs@gmail.com> Ross Scroggs <ross.scroggs@gmail.com>
Python 3.12.2 64-bit final Python 3.12.2 64-bit final
MacOS Sonoma 14.2.1 x86_64 MacOS Sonoma 14.2.1 x86_64
@@ -27,7 +27,7 @@ Your system time differs from www.googleapis.com by less than 1 second
Print the current version of Gam with extended details and SSL information Print the current version of Gam with extended details and SSL information
``` ```
gam version extended gam version extended
GAMADV-XTD3 6.71.15 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource GAMADV-XTD3 6.71.16 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
Ross Scroggs <ross.scroggs@gmail.com> Ross Scroggs <ross.scroggs@gmail.com>
Python 3.12.2 64-bit final Python 3.12.2 64-bit final
MacOS Sonoma 14.2.1 x86_64 MacOS Sonoma 14.2.1 x86_64
@@ -64,7 +64,7 @@ MacOS High Sierra 10.13.6 x86_64
Path: /Users/Admin/bin/gamadv-xtd3 Path: /Users/Admin/bin/gamadv-xtd3
Version Check: Version Check:
Current: 5.35.08 Current: 5.35.08
Latest: 6.71.15 Latest: 6.71.16
echo $? echo $?
1 1
``` ```
@@ -72,7 +72,7 @@ echo $?
Print the current version number without details Print the current version number without details
``` ```
gam version simple gam version simple
6.71.15 6.71.16
``` ```
In Linux/MacOS you can do: In Linux/MacOS you can do:
``` ```
@@ -82,7 +82,7 @@ echo $VER
Print the current version of Gam and address of this Wiki Print the current version of Gam and address of this Wiki
``` ```
gam help gam help
GAM 6.71.15 - https://github.com/taers232c/GAMADV-XTD3 GAM 6.71.16 - https://github.com/taers232c/GAMADV-XTD3
Ross Scroggs <ross.scroggs@gmail.com> Ross Scroggs <ross.scroggs@gmail.com>
Python 3.12.2 64-bit final Python 3.12.2 64-bit final
MacOS Sonoma 14.2.1 x86_64 MacOS Sonoma 14.2.1 x86_64

View File

@@ -2,6 +2,11 @@
Merged GAM-Team version Merged GAM-Team version
6.71.16
Updated `gam <UserTypeEntity> create|update sendas <EmailAddress> ... replyto <EmailAddress>`
to allow uppercase letters in `sendas <EmailAddress>` and `replyto <EmailAddress>`.
6.71.15 6.71.15
Updated `gam create project` to handle the following error: Updated `gam create project` to handle the following error:

View File

@@ -50878,6 +50878,7 @@ DRIVE_ACTIVITY_ACTION_MAP = {
'untrash': 'RESTORE', 'untrash': 'RESTORE',
'upload': 'CREATE', 'upload': 'CREATE',
} }
CONSOLIDATION_GROUPING_STRATEGY_CHOICE_MAP = {'driveui': 'legacy', 'legacy': 'legacy', 'none': 'none'} CONSOLIDATION_GROUPING_STRATEGY_CHOICE_MAP = {'driveui': 'legacy', 'legacy': 'legacy', 'none': 'none'}
# gam <UserTypeEntity> print|show driveactivity [todrive <ToDriveAttribute>*] # gam <UserTypeEntity> print|show driveactivity [todrive <ToDriveAttribute>*]
@@ -69605,7 +69606,9 @@ def getSendAsAttributes(myarg, body, tagReplacements):
elif myarg == 'name': elif myarg == 'name':
body['displayName'] = getString(Cmd.OB_NAME, minLen=0) body['displayName'] = getString(Cmd.OB_NAME, minLen=0)
elif myarg == 'replyto': elif myarg == 'replyto':
body['replyToAddress'] = getEmailAddress(noUid=True, minLen=0) body['replyToAddress'] = getString(Cmd.OB_EMAIL_ADDRESS, minLen=0)
if len(body['replyToAddress']) > 0:
body['replyToAddress'] = normalizeEmailAddressOrUID(body['replyToAddress'], noUid=True, noLower=True)
elif myarg == 'default': elif myarg == 'default':
body['isDefault'] = True body['isDefault'] = True
elif myarg == 'treatasalias': elif myarg == 'treatasalias':
@@ -69628,7 +69631,7 @@ SMTPMSA_REQUIRED_FIELDS = ['host', 'port', 'username', 'password']
# [html [<Boolean>]] [replyto <EmailAddress>] [default] [treatasalias <Boolean>] # [html [<Boolean>]] [replyto <EmailAddress>] [default] [treatasalias <Boolean>]
def createUpdateSendAs(users): def createUpdateSendAs(users):
updateCmd = Act.Get() == Act.UPDATE updateCmd = Act.Get() == Act.UPDATE
emailAddress = getEmailAddress(noUid=True) emailAddress = normalizeEmailAddressOrUID(getString(Cmd.OB_EMAIL_ADDRESS), noUid=True, noLower=True)
if not updateCmd: if not updateCmd:
body = {'sendAsEmail': emailAddress} body = {'sendAsEmail': emailAddress}
checkArgumentPresent(['name']) checkArgumentPresent(['name'])