Skip to content
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

add Cloud mail.ru #591

Closed
C-A-T9LIFE opened this issue Jul 18, 2016 · 19 comments
Closed

add Cloud mail.ru #591

C-A-T9LIFE opened this issue Jul 18, 2016 · 19 comments
Milestone

Comments

@C-A-T9LIFE
Copy link

C-A-T9LIFE commented Jul 18, 2016

Please add Cloud mail.ru https://cloud.mail.ru .

@ncw
Copy link
Member

ncw commented Jul 18, 2016

Does it have a public API somewhere?

@C-A-T9LIFE
Copy link
Author

@ncw ncw added this to the Unplanned / Help Wanted milestone Aug 25, 2016
@xor2003
Copy link

xor2003 commented Jan 4, 2017

@sergevs
Copy link

sergevs commented Jan 14, 2017

AFAIK, there is no official public documentation about cloud.mail.ru API.

Here is an (unofficial) API implementation project which should be sufficient to develop cloud.mail.ru support for rclone: https://github.com/sergevs/GoMailRuCloud

I'm the project owner and can answer any questions related to the implementation or provide any other kind of support by a request.

@zeliboba
Copy link

I alos vote for cloud mail.ru support. Any update?

@ivandeex
Copy link
Member

ivandeex commented Jul 2, 2019

Hi Nick. I am preparing a PR, which implements the mailru backend for rclone. I am still writing the documentation. Planning to submit the PR this month. In the meantime everybody interested can download beta binaries from the releases page. https://github.com/ivandeex/rclone

@ncw
Copy link
Member

ncw commented Jul 3, 2019

Hi Nick. I am preparing a PR, which implements the mailru backend for rclone. I am still writing the documentation. Planning to submit the PR this month. In the meantime everybody interested can download beta binaries from the releases page. https://github.com/ivandeex/rclone

I just had a quick look a the code - excellent job - very easy to read and similar to the existing backends :-)

I guess you are following the integrating a new backend proceedure?

How are the integration tests progressing?

I'll put this on the 1.49 milestone (so we don't forget about it, that isn't a hard deadline so if it needs more time that is fine).

@ncw ncw modified the milestones: Help Wanted, v1.49 Jul 3, 2019
@ncw ncw modified the milestones: v1.49, v1.50 Aug 27, 2019
@ivandeex ivandeex mentioned this issue Aug 31, 2019
5 tasks
@ivandeex
Copy link
Member

ivandeex commented Sep 16, 2019

@ncw Closed by #3501

@ncw
Copy link
Member

ncw commented Sep 16, 2019

I've merged this to master now which means it is in the latest beta and will be released in v1.50

@ncw ncw closed this as completed Sep 16, 2019
@trochdewei
Copy link

I can not access cloud.mail.ru remote because of error Failed to create file system for "mailcloud:": Failed to authorize: oauth2: server response missing access_token

@ncw
Copy link
Member

ncw commented Oct 1, 2019

I can not access cloud.mail.ru remote because of error Failed to create file system for "mailcloud:": Failed to authorize: oauth2: server response missing access_token

Is that still happening? @ivandeex - ideas?

@ivandeex
Copy link
Member

ivandeex commented Oct 1, 2019

I need more info to reproduce

@ivandeex
Copy link
Member

ivandeex commented Oct 2, 2019

One idea. mail.ru drive when used via web interface reportedly redirects to external oauth provider if user registers with a non-mail.ru e-mail. I didn't test this case in backend, so registering e-mail account on mail.ru and using mail.ru "cloud" drive with that e-mail (by clicking a tabbed link on top of mail.ru web interface) is recommended. Again, I'd rather wait for data from user.

@trochdewei
Copy link

I just created new remote using my username username@list.ru and password

@ivandeex
Copy link
Member

ivandeex commented Oct 10, 2019

I am personally using development versions of mailru+chunker (eating own dogfood?) for 3 months. Starting from September when my PRs were merged on trunk, I'm just installing latest rclone betas. It stores nightly backups on a linux box in europe plus I mount drives on a Windows PC in russia.

I tried to reproduce your issue using my test Mailru user with domain @list.ru
Logged into www.mail.ru with email/pass, closed banners, refused to provide my mobile for "bonuses", switched to "cloud" (storage service) in the top panel, checked out initial disk contents. Then unpacked zip with latest rclone beta (1.49.mr20) on windows box in russia and installed .deb on ubuntu vps in europe, ran through configuration as per docs.
It really does work (c)tvshop

$ ssh XXX
Welcome to Ubuntu 16.04.6 LTS
$ sudo su -
# wget https://github.com/ivandeex/rclone/releases/download/v1.49.mr20/rclone-v1.49.mr20-linux-amd64.deb
# dpkg -i rclone-v1.49.mr20-linux-amd64.deb
Selecting previously unselected package rclone.
..snip..
^D
$ ssh XXX
Welcome to Ubuntu 16.04.6 LTS
deex@sedna:~$ rclone version
rclone v1.49.mr20
- os/arch: linux/amd64
- go version: go1.12.10
$ rclone config
2019/10/09 20:04:43 NOTICE: Config file "/home/XXX/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> XXX
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
[snip]
Storage> mailru
** See help for mailru backend at: https://rclone.org/mailru/ **
User name (usually email)
Enter a string value. Press Enter for the default ("").
user> XXX@list.ru
Password
y) Yes type in my own password
g) Generate random password
y/g> y
Enter the password:
password:
Confirm the password:
password:
Skip full upload if there is another file with same data hash.
This feature is called "speedup" or "put by hash". It is especially efficient
[snip]
Choose a number from below, or type in your own value
 1 / Enable
   \ "true"
 2 / Disable
   \ "false"
speedup_enable> [Enter]
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
--------------------
[XXX]
type = mailru
user = XXX@list.ru
pass = *** ENCRYPTED ***
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:

Name                 Type
====                 ====
XXX                  mailru

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
$ rclone about XXX:
Total:   8G
Used:    551.647M
Free:    7.461G
$ rclone ls XXX:
   723662 Берег.jpg
  1028940 Горное озеро.jpg
  1297836 Долина реки.jpg
  1775137 На отдыхе.jpg
486354507 Полет.mp4
   939141 Чистая вода.jpg
 30745084 Mail.Ru рекомендует/Disk-O.dmg
 26348048 Mail.Ru рекомендует/Disk-O_setup.exe
 29231016 Mail.Ru рекомендует/Screenshoter.exe
$

@Heniker
Copy link

Heniker commented Oct 17, 2019

It doesn't seem to work with Two-factor authentication enabled.
And even if you try to use passwords that mail.ru generate specially for authorizing apps - you will get the following error:
Failed to create file system for "XXX:": Failed to authorize: oauth2: server response missing access_token
Checked on Windows with Rclone version 1.49.5.

@ivandeex
Copy link
Member

2FA support is not implemented. Neither is authorized app support. User/pass authorization only atm.
Could you send me a link to the app registration form so I can play with it?

@ivandeex
Copy link
Member

@Heniker please post your findings on the new issue as this one is already closed.

@Heniker

This comment has been minimized.

@ivandeex ivandeex removed their assignment Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants