| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
Occasionally gmail returns history records that have junk in them, for
instance messages IDs that don't exist. This appears to be a bug.
Using the latest history ID seems to guarantee that a subsequent history
query will be empty and we can then avoid the junk and start again.
Go back to full query if delta fails for any reason.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
|
|
| |
This should trigger a sleep and retry, not a program failure.
It happens if the sha1sum races with the user renaming a MailDir file.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
|
| |
Since size is used to print the log message, even on failure, set it
to some value.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
|
|
| |
All cases where gather is called intend that the tasks will complete
successfully or all cancel at the first error. Add a little wrapper to
achieve this.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
|
| |
Access to the headers like List-ID allows some client side filtering of
incoming messages.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
|
| |
The mailboxes can only be linked to a single msgdb, always take it from
the mailbox cfg.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
| |
Make sure it is always set
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
| |
For Gmail and other notes about O365
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
| |
Basic support for GMail using the REST API
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
This is needed for gmail, since it doesn't support all of the flags.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
| |
trace is only for debugging adventures.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
| |
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
This allows treating the local message flags as authoritative during
program startup. Messages marked locally as deleted will be deleted on the
server during startup.
For safety, this never considers the absence of a message locally as a
deletion.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
| |
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a local message is tagged deleted then update the cloud flags and
delete the message.
Using the Trash flag in a mail dir allows the cloud upload step to see the
original message and then upload the local flags before deleting it. For
instance, this will allow the Replied flag to be set upon deletion.
Once deleted in the cloud the next sync iteration will delete the message
locally.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
For reuse in the next patches
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
| |
|
|
|
|
| |
Fixes an issue where mailbox changes could be missed.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|
|
|
I have been using for a few months now with no ill effects.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|