Roundav: a Roundcube plugin to save to/attach files from your WebDav (ex: Nextcloud)

Roundav is a Roundcube plugin that links your webmail to your Nextcloud

Roundav: a Roundcube plugin to save to/attach files from your WebDav (ex: Nextcloud)

I don't think I need to introduce Roundcube (or Roundcubemail), the well-known email web client, nor Nextcloud, the "drive" web application, so I'll just cut to the point.

I had a need to link both of those apps together, to either save an attachment to my Nextcloud or attach a file from my Nextcloud to my email.

After searching for a while I found a Roundcube plugin answering my needs: Roundcube-Plugin-Roundrive. It is itself a fork a kolab plugin. However the thing has not been updated nor alive as it looks like from the pending PR, for 9 years!

So I forked it, fixed all the bugs I could find, and published "Roundav". I did not refactor much and the code feels kind of outdated to me, but it works.

I also cached the folders list, in the session, as it can take a while to build it from WebDAV. In case of obsolete list, the user can refresh the folders list thanks to a button.

After installing the plugin (either by downloading it, running composer install), enabling it in your roundcube's config file (add roundav to the list in $config['plugins']) and configuring it to setup your WebDAV's URL and credentials, you'll have access to new email actions to save an attachment, or all of them, to your cloud

Screenshot of the 'Save to cloud' buttons

, which will then (after a minute, once it has loaded your directories structure) ask you to selected the folder where you want to save the file(s):

Screenshot of the folder selection

And also in the composition view, a "From cloud" button:

Screenshot of the 'From cloud' new button in the attachment's view

which will ask you which file(s) you want to attach from your WebDAV/Nextcloud:

Screenshot of the file selection

I hope this will be useful to some of you as well, and work without to much hassle.