Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions alot/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,9 @@ def store_mail(mbx, mail):
if isinstance(mbx, mailbox.Maildir):
# this is a dirty hack to get the path to the newly added file
# I wish the mailbox module were more helpful...
plist = glob.glob1(os.path.join(mbx._path, 'new'),
message_id + '*')
plist = glob.glob(os.path.join(mbx._path, 'new', message_id + '*'))
if plist:
path = os.path.join(mbx._path, 'new', plist[0])
path = plist[0]
logging.debug('path of saved msg: %s', path)
return path

Expand Down
4 changes: 2 additions & 2 deletions alot/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,5 @@ def commandfactory(cmdline, mode='global'):
return cmd


pyfiles = glob.glob1(os.path.dirname(__file__), '*.py')
__all__ = list(filename[:-3] for filename in pyfiles)
pyfiles = glob.glob(os.path.join(os.path.dirname(__file__), '*.py'))
__all__ = list(os.path.basename(filename[:-3]) for filename in pyfiles)
Loading