rainloop-webmail icon indicating copy to clipboard operation
rainloop-webmail copied to clipboard

plugin hmail-alias integration

Open Oxymoron290 opened this issue 1 year ago • 1 comments

This Pull request is not quite a duplicate of #1863

While @karobolas did admirable work on that pull request, there were a few issues. The major one being direct database access to hmail. This isn't recommended as the hmail COM api is a better choice. This Pull request uses that com api to get the user's first name and last name to use as the user identity in rainloop.

Also, instead of using direct filesystem IO to read/write to the json file that stores the user identity, I am now using the existing mechanisms in place to do such work.

I have tested this in my environment and confirmed it is working.

Oxymoron290 avatar Mar 01 '23 23:03 Oxymoron290

Test cases

Scenario: Logging in for the first time Result: default identity 'name' set to same values as hMailServer upon login. All over properties on the identity remain the same.

Scenario: Logging in for the second time Result: No change

Scenario: Logging in after changing the 'name; on the default identity Result: default identity 'name' set to same values as hMailServer upon login. All over properties on the identity remain the same.

Scenario: Logging in with an account which has multiple identities Result: Only the default identity 'name' set to same values as hMailServer upon login, additional identities remain untouched.

Oxymoron290 avatar Mar 02 '23 03:03 Oxymoron290