RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.11k stars 891 forks source link

Integrate Nextcloud ? #1329

Open Loooooouuuuu opened 7 years ago

Loooooouuuuu commented 7 years ago

Hello !

I am using the Nextcloud version of Rainloop, and there is options to integrate Google Drive, Dropbox, ... but I can't find any option to integrate Nextcloud

I would like to send attachments to mails directly from the cloud (With a file picker or something like that)

Is it possible ?

Thanks !

aleks-nl5 commented 7 years ago

Also interested in the issue! Save attachments possible in NC (called truth - 'save to owncloud') But I can not attach a file...

DJCrashdummy commented 7 years ago

i would appreciate such a feature! well... maybe a generic connector to any WebDAV-storage (like the CardDAV-function for the adressbook) will also fit the bill and bring the most benefit.

maybe this could be achieved with a plugin, but i doubt external developers will/could do this when there is no useful documentation although it was already asked for it a while ago... https://github.com/RainLoop/rainloop-webmail/issues/898 :-(

ghost commented 7 years ago

It would be really nice to be able to save/attach files from our own cloud provider :)

pierre-alain-b commented 7 years ago

Saving attachments does work. Attachments are saved into an "attachment" folder at the root of the data folder.

Do you know if this works with owncloud? I assume it does not - otherwise I would try to backport the functionality from the owncloud version and make it work with nextcloud.

ghost commented 7 years ago

Unfortunately, I don't see any way to save an attachment to the server hard drive :( Is there any options to activate to enable this function ?

Thank you

pierre-alain-b commented 7 years ago

When you have an attachment in the mail, you can make this appear: image

ghost commented 7 years ago

Ok now I see it :) I works indeed (with nextcloud) !

Now do you know if it would be possible to browse the server files to attach them to an email ?

Thank you (and thank you for your work also !)

pierre-alain-b commented 7 years ago

Well, this is much more challenging. There is a Mail app that has been recently published and seems to do so - so maybe we could get some inspiration from there. That being said, I expect this will require some heavy changes within Rainloop base code.

If someone is really motivated, I am sure a pull request would be welcome by the Rainloop team!

ghost commented 7 years ago

I'd like to, but I'm pretty sure I don't have the skills to do that :) But I'm willing to help testing the functionality some day !

akmet commented 7 years ago

This sounds very interesting! Maybe I have a look at the source of the Mail App after my exams next week :-)

mehrdad-shokri commented 6 years ago

@Perdouille did you find a way?

mehrdad-shokri commented 6 years ago

hey @pierre-alain-b sorry for noob question, but would you tell me how to achieve this as illustrated in the picture?

pierre-alain-b commented 6 years ago

There is a small cog in the bottom right corner of the header box in Rainloop when the message has an attached file, just click on the cog!

mehrdad-shokri commented 6 years ago

Saw it! Is it possible to integrate it with nextcloud? since what you're mentioning is for owncloud(correct me if I'm wrong)

mehrdad-shokri commented 6 years ago

@pierre-alain-b correct me if I'm wrong but option of saving to owncloud is available if rainloop is installed as an app in owncloud right?

pierre-alain-b commented 6 years ago

yes but this is similar if the app is installed in nextcloud, this appears and works as well

Loooooouuuuu commented 6 years ago

@mehrdaad Sadly I couldn't find a way to do what I wanted (Attach a file from cloud to mail) :(

mehrdad-shokri commented 6 years ago

@pierre-alain-b so what should a developer do if his rainloop instance is not on owncloud/nextcloud.
Is there any api or sth to do this?

pierre-alain-b commented 6 years ago

You mean if the app is standalone? ah well, in such case clearly it will not be automatic. Maybe the simplest would be to develop a plugin for Rainloop to push a file into a owncloud/nextcloud through WebDAV? https://docs.nextcloud.com/server/12/developer_manual/client_apis/WebDAV/index.html

mehrdad-shokri commented 6 years ago

Right. Just to clarify suppose that each account in rainloop has an account in nextcloud.
Now, save to nextcloud option will save an attachment to that user's storage.
Also there should be an option to upload from the cloud, which will open the user's storage directory in nextcloud and the user will be able to choose a file.
Does using webdav supports this use case?
What would be the authentication process? Also don't you consider using OAuth2 instead?