From 943b2560c1a56f6a038c8873ef39cb578b1b2d7c Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Tue, 3 Sep 2024 19:36:37 +0600 Subject: [PATCH] chore: add Readme file for nextcloud plugin + fix typo --- plugins/nextcloud/README.md | 14 ++++++++++++++ plugins/nextcloud/index.php | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 plugins/nextcloud/README.md diff --git a/plugins/nextcloud/README.md b/plugins/nextcloud/README.md new file mode 100644 index 000000000..fc2c6ed37 --- /dev/null +++ b/plugins/nextcloud/README.md @@ -0,0 +1,14 @@ +# SnappyMail plugin for nextcloud + +## Nextcloud Addressbook for recipients + +This plugin can let user to choose which nextcloud addressbook to use save recipients. This is opt-in feature (enabled by admin). After admin enable this, user will find a dropdown in his/her SnappyMail's `Contacts` section, containing all his/her addressbook. + +### Admin settings + +- `enableNcAddressbook` : Enable User to choose Nextcloud addressbook for recipients. Default value: `false` +- `disableSnappymailContactsUI` : Disable SnappyMail internal addressbook. This is recomended if nextcloud addressbook is being used. Default value: `false` +- `defaultNCAddressbookUri` : Default nextcloud addressbook URI for recipients. Default value: `webmail` +- `defaultNCAddressbookName` : Default nextcloud addressbook Name for recipients. Default value: `WebMail` +- `defaultNCAddressbookDescription` : Default nextcloud addressbook description for recipients. Default value: `Recipients from snappymail` + diff --git a/plugins/nextcloud/index.php b/plugins/nextcloud/index.php index 5f419c7b2..578604345 100644 --- a/plugins/nextcloud/index.php +++ b/plugins/nextcloud/index.php @@ -495,11 +495,11 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin ->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL) ->SetDefaultValue(self::ENABLE_NC_ADDRESSBOOK_DEFAULT_VALUE), - \RainLoop\Plugins\Property::NewInstance(self::DEFAULT_ADDRESSBOOK_URI_KEY)->SetLabel('Default nextcloud addressbook URI for recipinets') + \RainLoop\Plugins\Property::NewInstance(self::DEFAULT_ADDRESSBOOK_URI_KEY)->SetLabel('Default nextcloud addressbook URI for recipients') ->SetType(\RainLoop\Enumerations\PluginPropertyType::STRING) ->SetDefaultValue(self::DEFAULT_ADDRESSBOOK_URI), - \RainLoop\Plugins\Property::NewInstance(self::DEFAULT_ADDRESSBOOK_NAME_KEY)->SetLabel('Default nextcloud addressbook Name for recipinets') + \RainLoop\Plugins\Property::NewInstance(self::DEFAULT_ADDRESSBOOK_NAME_KEY)->SetLabel('Default nextcloud addressbook Name for recipients') ->SetType(\RainLoop\Enumerations\PluginPropertyType::STRING) ->SetDefaultValue(self::DEFAULT_ADDRESSBOOK_NAME),