mbsync - Delete a mail from gmail server but not from the local machine - imap

I want to delete mails from gmail server to save my google drive space but I want to preserve them on my local Maildir for a backup. How do I accomplish that. I use mbsync to keep my mails synced and mu4e in emacs as the client.

Related

Exim sync emails from AWS SES

I would like to build a new email server.
I am familiar with Exim+Dovecot solution. But it's a bit complicated to set up.
So I would like to try AWS SES because it's much simpler to start and has nice integration with mainstream mail servers.
The problem I am having is how do I recieve emails. It seems SES will put all the received mails in a S3 bucket. But I want to receive mails on my phone, ipad, laptop, so I still need an imap server. Is it possible to have a script to sync the s3 bucket to my exim server so that exim can forward the email to dovecot?

Access iCloud Drive on behalf of user from a server

In my iOS app I would like to:
get an access token to add files to iCloud Drive on behalf of the user
send this access token to the server
the server will then upload files to the user's iCloud Drive.
This is possible with Dropbox and Google Drive.
Is this possible with iCloud Drive? I have looked at Cloudkit Webservices but it seems to talk only about databases and records, never about files.
Maybe I am missing something?

Mailcore2: how to receive mail instantly when a new mail arrived?

I'm building an iOS mail client for receiving mails via mailcore2, with IMAP protocol, I've fetched the mail messages successfully. But, how to implement the remote notification push when the target mail account received a new mail in client? I checked the mailcore2 project and some google search results, no luck there.
Please help, thanks!
UPDATE:
Let me clarify the problem details, for the mail client like Airmail in Mac and Microsoft Outlook in iOS, they support to add a IMAP protocol mail account for sending and receiving e-mails, e.g. I added my qq.com mail to Outlook for iOS client, once a new mail arrived to my INBOX in qq mail, I could get an instant remote notification from Outlook client right now.
Let me guess, the mail client didn't upload/save my IMAP-protocol mail config to microsoft/outlook server, all the receiving mail logics just work in local, including communication protocol.
How about IMAP? I've check this article on difference between POP and IMAP. IMAP just keep the client and server have the same account mail data all the time.
Airmail in Mac used mailcore2 in its implementation, so how does it make sure the remote notification work? I don't think they deployed a server side to check the new email arrival for all the user accounts, really.
On mailcore2, I think this is the key point, the remote push should be implemented by it, not some unknown servers. I checked the project structure basically, it's so huge for me and there are many c++ code logics, I must read many mail related blogs before reading it. If someone knows the related guide/wiki/header files, please share to me, or point the mistake on my above guess out, great thanks!

How to get list of folders via POP3

I'm using POP3 to fetch emails from gmail, I want to fetch a list of folders present in my gmail account but not finding a way of doing it. In IMAP there's a method list("","*") through which we can fetch the folders and then by using select("folder_name") we could fetch the emails.
How to fetch the list of folders via POP3. Please help. Thanks.
POP3 does not have the concept of folders. It is a very old mail protocol. There is only the Inbox. If you ever see folders on a POP3 client (like in outlook), that is a client side implementation. There are no folders on a POP3 server.
If you need access to the Gmail folders, you need to use IMAP.
hth,
Dave

Is IMAP suitable to use for an application mail server?

I have an application that needs to read and parse emails from a mail server. hMailServer allows me to route mail into an IMAP folder rather than forwarding it to a pop3 account. Is IMAP fast enough to use as an applications mail server?
The way of fetching the mail data would be more or less same in both the protocols POP and IMAP. In pop u would do retr and in IMAP it is fetch. It has to be the connection speed that would matter. BTW both the protocols are meant to be scaled for millions of mail data and thousands of concurrent connections.

Resources