Skip to content

ziceptor/WebDavMailRuCloud

 
 

Repository files navigation

WebDAV emulator for Mail.ru Cloud

####Requirements

  • Windows - Microsoft .NET Framework 4.5
  • Linux - Mono Stable 4.6.2.16
  • OS X - buddy said it works

####Usage

	-p, --port        (Default: 801) WebDAV server port
	-h, --host		  (Default: "http://127.0.0.1") WebDAV server host with protocol
	--maxthreads      (Default: 5) Maximum concurrent connections to cloud.mail.ru
	--user-agent      "browser" user-agent
	--help            Display this help screen.
	--version         Display version information.

Connect with (almost any) file manager that supports WebDAV using Basic authentification with no encryption and your cloud.mail.ru email and password (it's safe when you opens server on 127.0.0.1)

Hints

  • Clone shared cloud.mail.ru file/folder to your account: make folder with name >>SHARED_FOLDER_LINK
  • Automatic split/join when uploading/downloading files larger than cloud allows

====== ####Windows

Using from explorer requires enabled Basic Auth for WebDAV * Press Win+R, type `regedit`, click OK * HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters * Right click on the BasicAuthLevel and click Modify * In the Value data box, type 2, and then click OK. * Reset computer (or run `cmd` with admin rights and then `net stop webclient`, `net start webclient`)
Use as Windows disk ``` net use : http://127.0.0.1: /USER: ```
Faster WebDAV Performance in Windows 7 Windows 7 client might perform very bad when connecting to any WebDAV server. This is caused, because it tries to auto-detect any proxy server before any request. Refer to KB2445570 for more information.
  • In Internet Explorer, open the Tools menu, then click Internet Options.
  • Select the Connections tab.
  • Click the LAN Settings button.
  • Uncheck the “Automatically detect settings” box.
  • Click OK until you’re out of dialog.
By default, Windows limits file size to 5000000 bytes, you can increase it up to 4Gb * Press Win+R, type `regedit`, click OK * HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters * Right click on the FileSizeLimitInBytes and click Modify * Click on Decimal * In the Value data box, type 4294967295, and then click OK. * Reset computer (or run `cmd` with admin rights and then `net stop webclient`, `net start webclient`)
Wrong disk size when mapped as Windows drive [Microsoft says - "It's not a bug, it's by design"](https://support.microsoft.com/en-us/kb/2386902)

====== ####Linux

You can simply use Package for Gentoo Linux by powerman

...or by hands (tested under Elementary OS and Lubuntu)

Mount with davfs2 * `mkdir /mnt/` * edit `/etc/davfs2/davfs2.conf` set `use_locks 0` * `sudo mount --rw -t davfs http://: /mnt// -o uid=`
CERTIFICATE_VERIFY_FAILED exception [Issue 56](yar229#56) [default installation of Mono doesn’t trust anyone](http://www.mono-project.com/docs/faq/security/)

In short:

# cat /etc/ssl/certs/* >ca-bundle.crt
# cert-sync ca-bundle.crt
# rm ca-bundle.crt

====== ####Big thanks


####Remarks * [Discussion on geektimes.ru](https://geektimes.ru/post/285520/) * Using within [**Total Commander**](http://www.ghisler.com/) requires to update `WebDAV plugin` to [v.2.9](http://ghisler.fileburst.com/fsplugins/webdav.zip) * Avoid using #, %, + in file and folder names * If you have paid account - you can remove 2Gb filesize limitation using `--user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17/TCWFX(x64)"` (taken from [pozitronik/CloudMailRu]( https://github.com/pozitronik/CloudMailRu), no any guarantees, speed limit may exist)
####See also * [Mail.Ru.net-cloud-client](https://github.com/erastmorgan/Mail.Ru-.net-cloud-client) * [Total Commander plugin for cloud.mail.ru service](https://github.com/pozitronik/CloudMailRu) * [MARC-FS - FUSE filesystem attempt for Mail.Ru Cloud](https://gitlab.com/Kanedias/MARC-FS)

About

WebDAV cloud.mail.ru | WebDAV Облако Mail.Ru

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 89.1%
  • CSS 7.2%
  • HTML 3.7%