-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
First-class support for Nextcloud #96
Comments
Thanks for the heads up
Well, that's the problem. I have no time to make a better integration (maybe someone else does).
|
We're about to switch 600 users from Exchange/Outlook to Nextcloud/rainloop, but a snappymail Nextcloud app should be greater. Is it complicated to reproduce the rainloop-nextcloud app with SnappyMail ? |
@the-djmaze Thank you for your reply! I completely agree with you that having a half-baked integration is not ideal. I guess that a Nextcloud integration fits better in a plugin. |
For that i've started a branch named OwnCloud
Read https://github.com/the-djmaze/snappymail/blob/master/CONTRIBUTING.md And get https://apps.nextcloud.com/apps/rainloop as example |
P.S. i've downloaded it and see that owncloud is different from nextcloud these days. I will wrap up some basic code so you have a better start. |
Thanks for this!
Yes, indeed, Nextcloud is a fork of Owncloud, which started back in 2016. I guess they still share most of the code base, but they will definitely continue diverging Rainloop mail has some default options to add attachments to owncloud, dropbox, etc. I haven't tried snappy mail yet, but from what I've read, you removed all the related code. In that case, do you think about adding something similar, in this case to Nextcloud, but better as a plugin? |
@CarlosPerezM i've modified and put the NextCloud code of pierre alain in the branch. |
If I can make 3 wishes to developers of Snappymail/Nextcloud app(s) :
That would be awesome ! |
I've forgotten a 4th wish : be able to insert .ics attachments in the Nextcloud calendar ! |
nextcloud integration plans is great news! thank you for your fantastic work! |
The code is merged into master You can use that to further develop the integration. |
I've installed NextCloud 22.1 locally to see if i can do something. |
Any news on nextcloud rainloop integration with add attachments feature? Thanks. |
Work in progress here : we were able to add a button into the compose window and, using the Nextcloud Filepicker project, it opens a dialog box where we can select one or more files in Nextcloud and generate and copy the link(s) in the message body. Stay tuned ! |
I've modified the way how Login() on SMTP, IMAP & Sieve are processed. Example plugin code mockup for v2.8+: <?php
class LoginOAuth2Plugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'OAuth2',
VERSION = '1.0',
RELEASE = '2021-10-22',
REQUIRED = '2.8.0',
CATEGORY = 'Login',
DESCRIPTION = 'IMAP, Sieve & SMTP login using OAuth2';
public function Init() : void
{
$this->UseLangs(true);
$this->addJs('LoginOAuth2.js');
$this->addHook('imap.before-login', 'ImapLogin');
// $this->addHook('smtp.before-login', array($this, $oSmtpClient, &$aCredentials));
// $this->addHook('sieve.before-login', array($this, $oSieveClient, &$aCredentials));
}
public function ImapLogin(\RainLoop\Model\Account $oAccount, \MailSo\Imap\ImapClient $oImapClient, array &$aCredentials) : void
{
$sPassword = $aCredentials['Password'];
$aTokens = \json_decode($sPassword);
$sAccessToken = !empty($aTokens[0]) ? $aTokens[0] : '';
$sRefreshToken = !empty($aTokens[1]) ? $aTokens[1] : '';
if ($sAccessToken && $sRefreshToken) {
$aCredentials['Password'] = $this->refreshTokenCallback($sAccessToken, $sRefreshToken);
$aCredentials['UseAuthOAuth2IfSupported'] = true;
}
}
} P.S. And LoginOAuth2.js mockup code (rl => {
if (rl) {
addEventListener('rl-view-model', e => {
if (e.detail && 'Login' === e.detail.viewModelTemplateID) {
const LoginUserView = e.detail,
submitCommand = LoginUserView.submitCommand;
LoginUserView.submitCommand = (self, event) => {
if (LoginUserView.email().includes('@gmail.com')) {
// TODO: redirect to OAuth URI
} else {
submitCommand.call(LoginUserView, self, event);
}
};
}
});
}
})(window.rl); |
Hi, I'm sorry but am I right that at the moment the Nextcloud integration isn't officially available? |
yip, that is correct. |
And someone else also seems to be working on the file picker #307 |
@the-djmaze I am very excited about a Snappymail integration with Nextcloud. I'd be happy to help with testing. Is this thread the best place to discuss the project? |
I would be very happy too to test it :) Rainloop is very good and "well integrated" with Nextcloud, but Snappy seems far better and modern ! |
Hello, |
What can a non-code do to help ? :) |
I´ve got the same problem. Snappymail is not in the app library (NC 24.0.2) and after copying snappymail manually in the app directory and activating, only gives a "null" response on the app site and the admin site. |
Great work! Replaced rainloop without effort, and much faster than native nextcloud mail For saving, it doesn't save the .eml file; for attachments it creates the Attachments folder (or different, in changed in the plugin setting, i guess), but then doesn't save the file |
Same issue : Attachments folder created, but empty |
Regardung this setting: Improvement idea: let each user choose an attachment folder in the user settings as I know of cases where each user needs to have a different folder |
Upon uninstalling and re-installing snappymail, I get this error from Nextcloud UI: "App with id snappymail has invalid signature" |
Ha, @relikd beat me to the punch. Earlier, I was able to install Snappymail via console, version 2.19.0r RC1, and was running just fine, sans plugins, as they did not seem to work. Which was fine, main functionality was there. Noticed an update available and from console, got the same error as them, with version 2.19. "Error: App with id snappymail has invalid signature" |
I will look into this issue
Actually there is a webdav.js that works. The idea is to create a popup view where you can select/create folder to put them in.
Correct! I uploaded a new version with same name to see what will happen. |
Alright. Tried it again, and it works. Downloaded and enabled successfully. |
@Mer0me i've fixed the plugin for you. |
Great to hear @Magneticdud ! |
admin panel Constant Loading: Browser: safari, firefox Im try change password on the example: 12345W and drop cache browser = result the same After changing the password from the admin panel, I checked the default configuration file - the password data did not change:
Solution Remove app snappy mail or folder:
Result |
Indeed, removing SnappyMail completely and installing again solved the issue. Thanks @webagroprom. |
When changing the password to the snappy mail admin panel through the admin panel, the authorization data disappears: When you try to log into the admin panel with a new password: If I change the password not through the admin panel, but through the file: Error: |
Ok, saving .eml works now. Nice work ! |
@webagroprom and @SelfRef i've figured it out! When debug mode is on, SnappyMail uses the
Correct, that file is only temporary and should not be edited. |
Release 2.19.0.1 and 2.19.01 not possible and 2.19.0-1 gets marked as unstable. You must manually update extension/plugin to 2.5! It includes:
I shall close this ticket and any further issues/features can be done in new issues. |
Just installed this. Once I'd set-up my domains in the admin settings it works great, many thanks! |
works like a charm (y) |
thanks a lot @the-djmaze works like a charrmmm :) |
Yesterday i installed snappymail on my nextcloud 24.0.5 via the app menu. It worked without any problems. Thanks you @the-djmaze for your amazing support. |
Well, this looks promising! Rant about old Rainloop or weird plugin setup in RoundcubeSince Rainloop is currently old (and probably unsecure) pain, I've pluginned the hell out of Roundcube to get multiple emails. I made it work well, but as it's a plugin it does create some weird behaviour like: you can setup special folders like Inbox for every account separately but you cannot setup Archive folder separately as that is a plugin. So you have to have the archive folder under the same name for all accounts (which is pain because of Gmail - in Czech it's called "Všechny zprávy" not Archive and it's not an imap folder, urghh...). But it kinda works I'll sure take a look into this plugin as it's what I wanted in the begining. Simple, multiemail webapp that's easy to run with nextcloud (Roundcube doesn't run with Nextcloud at all...). Looks way to promising to be true actually! I've seen that the Nextcloud integration is WIP, but I'll take that and thank you for it. This has just made my day and I haven't even tried it yet LOL |
Firt of all, thank you for this rewrite of the Rainloop app, it is really needed.
After reading the documentation, I saw that you removed support for all 3rd party apps, to ensure GDPR compliance.
But I wanted to know if you would be open to support Nextcloud - as an open source project where you are guaranteed to have control of your data, this should make sense.
Thanks a lot for your consideration
Is your feature request related to a problem? Please describe.
I have been using Rainloop with Nextcloud. In my opinion, it is the best email option available. Nevertheless, the integration between the two is currently less than perfect.
Describe the solution you'd like
Have a better integration with Nextcloud
Describe alternatives you've considered
Modify the Rainloop app to improve this, but the code is a bit outdated. I would prefer to work with this fork :)
Additional context
There is currently a Rainloop app for Nextcloud: https://github.com/pierre-alain-b/rainloop-nextcloud
Adding attachments from Nextcloud: RainLoop#2023
UPDATE 2022
It's alive at https://apps.nextcloud.com/apps/snappymail
The text was updated successfully, but these errors were encountered: