aboutsummaryrefslogtreecommitdiffstats
path: root/cloud_mdir_sync/messages.py
Commit message (Collapse)AuthorAgeFilesLines
* util: Do not store "" as the message CHHEADmasterJason Gunthorpe2021-06-241-5/+4
| | | | | | | This was causing assertions if this condition was ever hit. Instead just delete the corrupted message id. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
* Keep the inode cache in sync when writing to the MailDirJason Gunthorpe2020-05-301-0/+7
| | | | | | | | MailDir writes cause the inode mtime and ctime to change which causes the cache to become invalid. Update the mtime and ctime information after changing it. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
* Speed up loading large databases on startupJason Gunthorpe2020-05-301-14/+21
| | | | | | Batching the sha1sum work is dramatically faster. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
* Allow access to the message headers during mail directingJason Gunthorpe2020-02-071-29/+47
| | | | | | | Access to the headers like List-ID allows some client side filtering of incoming messages. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
* Allow a Mailbox to search for messages with a None email_idJason Gunthorpe2020-02-051-16/+40
| | | | | | | Gmail does not have easy access to the email_id, but does have a stable storage_id, so provide a second dictionary. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
* Add some more type annotations to O365MailboxJason Gunthorpe2020-02-041-0/+1
| | | | Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
* Support the Trash flag in MailDirJason Gunthorpe2020-01-311-2/+3
| | | | | | | This can be set by mutt when 'set maildir_trash=yes' and shows as a deleted item. Keep track of it on the maildir side. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
* Initial commit of cloud_mdir_syncJason Gunthorpe2020-01-101-0/+326
I have been using for a few months now with no ill effects. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>