Replies: 2 comments 5 replies
-
There are several things possible.
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Hi @the-djmaze I've modified my plugin and now it works - but I'm using a different approach to solve the two things you mentioned:
How would you like to proceed with this plugin? Should I create a PR for this or do you prefer to leave this plugin in my repository? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
as already described in #616 I've began to write a plugin to automatically add additional mail accounts to SnappyMail basing on a ldap lookup.
As I'm new to SnappyMail and my programming skills aren't the best I've used the
ldap-identities
plugin as base of my plugin https://github.com/cm-schl/snappymail/tree/master/plugins/ldap-mail-accounts.The idea behind this:
Often you already use a ldap directory to manage the additional accounts a user has access to. For example a ldap object could contain a
member
attribute that contains the username of those users that have access to the additional mail account (=this ldap object).If SnappyMail could lookup the ldap for additional accounts the user / admin does not have to configure these additional accounts by hand.
My plugin therefore has to be configured before the first use with:
uid=<username>
etc.)When a user logs in to SnappyMail the plugin starts a search using this information and if some entry is found in the ldap it returns the username, domain part and display name of the additional mailbox. The fields which have to be returned are also configurable in the configuration of the plugin.
My first tests worked - but as said I'm new to this and have to learn a lot 🙂.
Actually this is on the todo list:
RainLoop\Model\AdditionalAccount::NewInstanceFromCredentials
to create the object...My hope is that someone who knows the details about SnappyMail (maybe @the-djmaze 😉) could have a look on my plugin so that I could get the best out of it and share it with others that have the same need (I think this could be useful for companies for example).
Beta Was this translation helpful? Give feedback.
All reactions