-
-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProtonMail Bridge Support #163
Comments
I've read the code you gave access but I couldn't figure out what it does to deal with ProtonMail. A sync with imapsync ... --debugimap might be a better way to me:
|
|
The problem is that ProtonMail doesn't have public IMAP/POP3 interfaces... You need to install the Bridge. This is a local application that is in the middle between the local machine and the mail server and emulates an imap interface. But ProtonMail has some problems with some mail clients. But it would be really useful if ur application would support this because i want to move away from protonmail and want ot transfer all my emails |
Well, I see AUTHENTICATE PLAIN so could you run a default run, no special option, and send the complete output except the credentials. |
Same result :) |
Ok, I hoped to see a different output using different parameters. |
This may not help bitterdev with his specific problem but I have used imapsync to move mail multiple times both to and from Protonmail. I am moving mail right now using Ubuntu 16.04, imapsync 1.882, and Protonmail bridge 1.1.0. |
Thanks Jason! In other words it looks like it's not a ProtonMail Brigde issue nor an imapsync one. Did you use any special parameters or were they normal imapsync runs? |
Hey, i have downloaded the beta of ProtonMails native email export client to export my emails. But yes your right. They have a very "special" implementation of IMAP and therefore it isn't working. Some other software vendors are patching there software only to support ProtonMail. The correct decission would be that ProtonMail will improve their Implementation and not otherwise. But thats the way it is. |
It doesn't explain how Jason could successfully use imapsync with ProtonMail Bridge and how you can't. |
I don't know why it work's for Jason and not for me. Maybe a OS specific bug, maybe other versions of Bridge... Many possibilities. I was using using OS X latest + Bridge latest. |
Having this issue, too. imalsync 1.882 and Protonmail-Bride 1.1.3. imapsync do count the mails, but size is 0.
This does happen for all mails in the account. Any idea? |
It means that the imap server tells imapsync that the message size is 0. It's not normal so imapsync reports it but it is not relevant for a good transfer since imapsync syncs messages whatever their proclaimed size. |
But it does not transfer anything in the end. |
So I need the next lines of output |
Host1 folder [Archive] considering 534 messages
And so on... Let my know if you need more. |
Well, I spoke too fast... imapsync skips a messages when the server says it has a null size. |
This seems to do the trick. Thx! |
Wonderful! |
Fixed. |
Hello, I am receiving Communication:
Message is actually synced ok, but this error but has to put max errors to high number. |
I don't know, all looks good. The $new_id should be 6 here I guess. |
I have created a test to replicate it as many times as I want to, will try to print some intermediate steps. $data:
$ret:
It really seems like that regexp in IMAPClient is bad. As it produces 0. I am not fluent in these Perl regular expressions, is it possible it takes 0 from [UNSEEN 0]? |
Yes, it is that. That regular is not what I would describe bulletproof, this fixes it:
What do you suggest to do about that? It is not exactly a bug in imapsync, but it affects its functionality significantly for me. |
This can be workaround from within imapsync:
Basically process the results in imapsync completely yourself (it may be sensible as IMAPClient seems to have some very poor handling of results). I am also not sure if there should not be a check for defined:
Is zero an error here? IMAPClient is producing undef on error, also if What are your thoughts? |
My thoughts is that it I won't change easily such an important code to suit only ProtonMail behavior. This is the first time this bug is reported. APPEND messages is main imapsync job.
The previous worked till now since an UID can't be 0. So you end up with an uid 0 for imapsync. It is not very important unless --useuid or --usecache is used. The correct fix in Mail::IMAPClient, according to the RFC, should be to match the client tag of APPEND in the response. Anyway, getting the new UID in the response is just sugar from the RFC point of view. For now, patch yours. |
Studying all of the RFCs, I think that ProtonMail is complying with the RFC. Would you accept this as a pull request?
This fixes it for all clients (mind the special arguments you mentioned), affects all ProtonMail users (in positive way) and possibly others (in positive way) as well and should not break anything as the IMAPClient actually returns undef and maybe 0 is even legitimate id result. |
Ok for Yes, it looks ProtonMail is compliant with the RFC since Anyway it is the one among a hundred to do what it does in response to an APPEND. |
Yes, I read the same thing. The ProtonMail returns a lot of information which was not requested but actually can return anything it wants as per RFCs. I have created pull request, thank you! |
Could you add ProtonMail Brdige Support?
See more at jstedfast/MailKit@5b6032d
The text was updated successfully, but these errors were encountered: