From c60ef582be35467adf9e620aae8902912cba0d2a Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 22 May 2026 09:29:52 -0700 Subject: [PATCH 1/6] Fixed bug in `gam print filelist` that caused a trap. --- src/GamUpdate.txt | 4 ++++ src/gam/__init__.py | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index def9d061..db09aa8f 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,7 @@ +7.43.09 + +Fixed bug in `gam print filelist` that caused a trap. + 7.43.08 Fixed bug and formatting issues in `gam info device `. diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 4e323299..265f0b6e 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.43.08' +__version__ = '7.43.09' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' # pylint: disable=wrong-import-position @@ -29173,7 +29173,7 @@ def doInfoChatMessage(): # [formatjson [quotechar ]] def printShowChatMessages(users): cd = buildGAPIObject(API.DIRECTORY) - csvPF = CSVPrintFile(['User', 'space.name', 'space.displayName', 'name'] if not isinstance(users, list) else ['space.name', 'space.displayName', 'name']) if Act.csvFormat() else None + csvPF = CSVPrintFile(['User', 'space.name', 'space.displayName', 'name']) if Act.csvFormat() else None FJQC = FormatJSONQuoteChar(csvPF) fieldsList = [] pfilter = None @@ -29301,7 +29301,7 @@ def doInfoChatEvent(): # filter # [formatjson [quotechar ]] def printShowChatEvents(users): - csvPF = CSVPrintFile(['User', 'space.name', 'space.displayName', 'name'] if not isinstance(users, list) else ['space.name', 'space.displayName', 'name']) if Act.csvFormat() else None + csvPF = CSVPrintFile(['User', 'space.name', 'space.displayName', 'name']) if Act.csvFormat() else None FJQC = FormatJSONQuoteChar(csvPF) pfilter = None parentList = [] @@ -59705,7 +59705,7 @@ def printFileList(users): (DLP.onlySharedDrives and not driveId)): return if getCheckFilePermissions: - if not incrementalPrint: + if buildTree and not incrementalPrint: getSharedDriveACLsCount += 1 if getSharedDriveACLsCount % 100 == 0: writeStderr(f'{Msg.GOT} {getSharedDriveACLsCount} {Ent.Plural(Ent.DRIVE_FILE_OR_FOLDER_ACL)} {Msg.FOR} {gettingEntity}\n') From 61735701b3cddd494f8cfbb0ae5203d11c59ce4d Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 22 May 2026 10:29:44 -0700 Subject: [PATCH 2/6] Fixed bug in `gam print filelist` that caused a trap. --- wiki/GamUpdates.md | 4 ++++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 ++-- wiki/Version-and-Help.md | 12 ++++++------ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index 9a54bbee..b981210b 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,10 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 7.43.09 + +Fixed bug in `gam print filelist` that caused a trap. + ### 7.43.08 Fixed bug and formatting issues in `gam info device `. diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index a806dcde..51a3b700 100644 --- a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md +++ b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md @@ -251,7 +251,7 @@ writes the credentials into the file oauth2.txt. ``` gamteam@server:/Users/gamteam$ rm -f /Users/gamteam/GAMConfig/oauth2.txt gamteam@server:/Users/gamteam$ gam version -GAM 7.43.08 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.43.09 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 @@ -1034,7 +1034,7 @@ writes the credentials into the file oauth2.txt. ``` C:\>del C:\GAMConfig\oauth2.txt C:\>gam version -GAM 7.43.08 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.43.09 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.14.4 64-bit final Windows 11 10.0.26200 AMD64 diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index 2694b645..f938ffa4 100644 --- a/wiki/Version-and-Help.md +++ b/wiki/Version-and-Help.md @@ -3,7 +3,7 @@ Print the current version of Gam with details ``` gam version -GAM 7.43.08 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.43.09 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 @@ -15,7 +15,7 @@ Time: 2026-02-15T07:51:00-08:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAM 7.43.08 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.43.09 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 @@ -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 ``` gam version extended -GAM 7.43.08 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.43.09 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 @@ -68,7 +68,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/gamteam/bin/gam7 Version Check: Current: 5.35.08 - Latest: 7.43.08 + Latest: 7.43.09 echo $? 1 ``` @@ -76,7 +76,7 @@ echo $? Print the current version number without details ``` gam version simple -7.43.08 +7.43.09 ``` In Linux/MacOS you can do: ``` @@ -86,7 +86,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 7.43.08 - https://github.com/GAM-team/GAM +GAM 7.43.09 - https://github.com/GAM-team/GAM GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 From 869eb3a0c27af66a3128de7e1660e1de19b7b312 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 22 May 2026 15:59:35 -0700 Subject: [PATCH 3/6] Updated/fixed `gam forward message|thread` --- src/GamCommands.txt | 4 ++-- src/GamUpdate.txt | 8 ++++++++ src/gam/__init__.py | 10 +++++----- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index fd574609..c3031ce9 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -8031,12 +8031,12 @@ gam export thread|threads [quick|notquick] [doit] [max_to_export ])|(ids ) [targetfolder ] [targetname ] [overwrite []] -gam forward message|messages recipient|to +gam forward message|messages [recipient|to] (((query [querytime ]*) (matchlabel ) [or|and])+ [labelids ] [quick|notquick] [doit] [max_to_forward ])|(ids ) [subject ] [addorigfieldstosubject []] [altcharset ] -gam forward thread|thtreads recipient|to +gam forward thread|thtreads [recipient|to] (((query [querytime ]*) (matchlabel ) [or|and])+ [labelids ] quick|notquick] [doit] [max_to_forward ])|(ids ) diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index db09aa8f..4f063874 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,11 @@ +7.43.10 + +Updated `gam forward message|thread [recipient|to] ` to not forward messages +to the `Bcc` recipients of the original message. + +Fixed bug in `gam forward message|thread [recipient|to] addorigfieldstosubject` +where the recipient of the forwarded message was added to the subject line instead of the recipient of the original message. + 7.43.09 Fixed bug in `gam print filelist` that caused a trap. diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 265f0b6e..e1f5b44a 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.43.09' +__version__ = '7.43.10' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' # pylint: disable=wrong-import-position @@ -74595,10 +74595,10 @@ def _decodeHeader(header): stderrWarningMsg(Msg.INVALID_CHARSET.format(mg.group(1))) return header -# gam forward message|messages recipient|to +# gam forward message|messages [recipient|to] # (((query [querytime ]*) (matchlabel ) [or|and])+ [quick|notquick] [doit] [max_to_forward ])|(ids ) # [subject ] [addorigfieldstosubject []] [altcharset ] -# gam forward thread|threads recipient|to +# gam forward thread|threads [recipient|to] # (((query [querytime ]*) (matchlabel ) [or|and])+ [quick|notquick] [doit] [max_to_forward ])|(ids ) # [subject ] [addorigfieldstosubject []] [altcharset ] def forwardMessagesThreads(users, entityType): @@ -74701,16 +74701,16 @@ def forwardMessagesThreads(users, entityType): msgSubject = f"Fwd: {_decodeHeader(message['Subject'])}" else: msgSubject = f"Subject: {subject}" - for header in ['To', 'Cc', 'Subject']: + for header in ['To', 'Cc', 'Bcc', 'Subject']: if header in message: del message[header] - message['To'] = msgTo if addOriginalFieldsToSubject: msgSubject += ' (Original' for header in ['From', 'To', 'Date']: if header in message: msgSubject += f' {header}: {message[header]}' msgSubject += ')' + message['To'] = msgTo message['Subject'] = msgSubject try: result = callGAPI(gmail.users().messages(), 'send', From ea41edbfcb3734af68cb42400e285fc1d2441de2 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 22 May 2026 16:11:28 -0700 Subject: [PATCH 4/6] Updated/fixed `gam forward message|thread` --- src/gam/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index e1f5b44a..0b9aea3c 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -74701,15 +74701,15 @@ def forwardMessagesThreads(users, entityType): msgSubject = f"Fwd: {_decodeHeader(message['Subject'])}" else: msgSubject = f"Subject: {subject}" - for header in ['To', 'Cc', 'Bcc', 'Subject']: - if header in message: - del message[header] if addOriginalFieldsToSubject: msgSubject += ' (Original' for header in ['From', 'To', 'Date']: if header in message: msgSubject += f' {header}: {message[header]}' msgSubject += ')' + for header in ['To', 'Cc', 'Bcc', 'Subject']: + if header in message: + del message[header] message['To'] = msgTo message['Subject'] = msgSubject try: From e1260dbd95690d7effe7f2b75c78b5b1cf16c3ee Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 22 May 2026 17:54:00 -0700 Subject: [PATCH 5/6] Updated/fixed `gam forward message|thread` --- wiki/GamUpdates.md | 8 ++++++++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 ++-- wiki/Users-Gmail-Messages-Threads.md | 4 ++-- wiki/Version-and-Help.md | 12 ++++++------ 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index b981210b..72f29e3f 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,14 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 7.43.10 + +Updated `gam forward message|thread [recipient|to] ` to not forward messages +to the `Bcc` recipients of the original message. + +Fixed bug in `gam forward message|thread [recipient|to] addorigfieldstosubject` +where the recipient of the forwarded message was added to the subject line instead of the recipient of the original message. + ### 7.43.09 Fixed bug in `gam print filelist` that caused a trap. diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 51a3b700..15ba9fcb 100644 --- a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md +++ b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md @@ -251,7 +251,7 @@ writes the credentials into the file oauth2.txt. ``` gamteam@server:/Users/gamteam$ rm -f /Users/gamteam/GAMConfig/oauth2.txt gamteam@server:/Users/gamteam$ gam version -GAM 7.43.09 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.43.10 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 @@ -1034,7 +1034,7 @@ writes the credentials into the file oauth2.txt. ``` C:\>del C:\GAMConfig\oauth2.txt C:\>gam version -GAM 7.43.09 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.43.10 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.14.4 64-bit final Windows 11 10.0.26200 AMD64 diff --git a/wiki/Users-Gmail-Messages-Threads.md b/wiki/Users-Gmail-Messages-Threads.md index 52547263..3ecf3cee 100644 --- a/wiki/Users-Gmail-Messages-Threads.md +++ b/wiki/Users-Gmail-Messages-Threads.md @@ -477,12 +477,12 @@ When `matchlabel ` is specified, the following characters are replace ## Forward messages/threads ``` -gam forward message|messages recipient|to +gam forward message|messages [recipient|to] (((query [querytime ]*) (matchlabel ) [or|and])+ [labelids ] [quick|notquick] [doit] [max_to_forward ])|(ids ) [subject ] [addorigfieldstosubject] -gam forward thread|threads recipient|to +gam forward thread|threads [recipient|to] (((query [querytime ]*) (matchlabel ) [or|and])+ [labelids ] [quick|notquick] [doit] [max_to_forward ])|(ids ) diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index f938ffa4..a9501eaa 100644 --- a/wiki/Version-and-Help.md +++ b/wiki/Version-and-Help.md @@ -3,7 +3,7 @@ Print the current version of Gam with details ``` gam version -GAM 7.43.09 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.43.10 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 @@ -15,7 +15,7 @@ Time: 2026-02-15T07:51:00-08:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAM 7.43.09 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.43.10 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 @@ -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 ``` gam version extended -GAM 7.43.09 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.43.10 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 @@ -68,7 +68,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/gamteam/bin/gam7 Version Check: Current: 5.35.08 - Latest: 7.43.09 + Latest: 7.43.10 echo $? 1 ``` @@ -76,7 +76,7 @@ echo $? Print the current version number without details ``` gam version simple -7.43.09 +7.43.10 ``` In Linux/MacOS you can do: ``` @@ -86,7 +86,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 7.43.09 - https://github.com/GAM-team/GAM +GAM 7.43.10 - https://github.com/GAM-team/GAM GAM Team Python 3.14.4 64-bit final macOS Tahoe 26.5 arm64 From 5b32bc31c7495fd4143f512fd0ce776adfd67c76 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Sat, 23 May 2026 19:02:09 -0400 Subject: [PATCH 6/6] actions: rebuild for Python 3.14.5 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ce5ad0b..d9d129ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -165,7 +165,7 @@ jobs: with: path: | cache.tar.xz - key: gam-${{ matrix.jid }}-20260508 + key: gam-${{ matrix.jid }}-20260523 - name: Untar Cache archive if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit == 'true'