You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Searching Gmail MailFolders with spaces in their names should work the same as MailFolders without spaces.
Actual Behavior
Searching Gmail MailFolders with spaces in their names throws imaplib.error: SELECT command error: BAD [b'Could not parse command'].
File "/Users/Username/Library/Python/3.9/lib/python/site-packages/redbox/models/mailbox.py", line 51, in search
self.select()
File "/Users/Username/Library/Python/3.9/lib/python/site-packages/redbox/models/mailbox.py", line 26, in select
self.session.select(self.name, readonly=self.readonly)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/imaplib.py", line 756, in select
typ, dat = self._simple_command(name, mailbox)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/imaplib.py", line 1230, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/imaplib.py", line 1055, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: SELECT command error: BAD [b'Could not parse command']
Steps to Reproduce the Problem
Run the program below, replacing [email protected] with a real email address, and asdf asdf asdf asdf with a real password
fromredboximportgmail# Set credentialsgmail.username="[email protected]"gmail.password="asdf asdf asdf asdf"folder=gmail["[Gmail]/All Mail"]
# ^^^^^^^^# Notice the space in folder name# Search foldersformsginfolder.search(unseen=False):
print(msg.subject)
print(msg.text_body)
Note: Running the same program with a MailFolder with no spaces, like [Gmail]/Important, works.
Specifications
RedBox: 0.2.1
Python: 3.9.6
Platform: macOS 13.0
The text was updated successfully, but these errors were encountered:
Expected Behavior
Searching Gmail MailFolders with spaces in their names should work the same as MailFolders without spaces.
Actual Behavior
Searching Gmail MailFolders with spaces in their names throws
imaplib.error: SELECT command error: BAD [b'Could not parse command']
.Steps to Reproduce the Problem
[email protected]
with a real email address, andasdf asdf asdf asdf
with a real passwordNote: Running the same program with a MailFolder with no spaces, like
[Gmail]/Important
, works.Specifications
The text was updated successfully, but these errors were encountered: