As an User with Write permission
I want to create and configure an imap folder
So that I can sync with my mail account
Proposed solution
User ability to create a new imap folder that contains details and configuration to access. This should be available with imap folder create layout.
They should allow the following fields:
Name of your email folder
Values: free string
Email
Email address of the account from which the emails will be fetched.
Values & Validation: email format
Password
Password of the email account from which the emails will be fetched.
Password field
Protocol
Select the receive protocol used for the email account.
Values: one of [IMAP, POP3, IMAPS,POP3S]
Host
Type the name of the host of the email account.
Values: free string
Port
Type the port number.\ Default value is 993, which should be ok in most cases. Check with your administrator if this value should be changed.
Values: integer
Socket factory fallback
Default value is set to "Yes". This parameter sets the behaviour in case the socket used to connect the Nuxeo server to the email server fails to be created using the implemented socket factory.
Values : yes or no
Socket factory port
Port used to connect the Nuxeo server to the email server. Default value is set to 993.
Calues: integer
Start TLS (IMAP)
Default value is set to "Yes" to secure exchanges with the email server.
Values: yes or no
SSL protocols (IMAP)
Default value is "SSL". You can add other protocols, separated by whitespace.
Values: one of [SSLv3,TLSv1.2,TLSv1.1,TLSv1,SSLv2Hello]
Limit of new fetched emails
Indicate the maximum number of emails to be fetched at the same time.
Values: integer
Add all fields in https://doc.nuxeo.com/userdoc/nuxeo-imap-connector/#email-folder-parameters
to create layout.
This document type should be hidden from import, so, no Import layout needed.
Acceptance criteria
Given I have write permission in a folder that allow email folder
When I a press create
Then a email folder document type appear in the list of possible documents
Given I have write permission in a folder that allow email folder
When I press create and choose Email Folder
Then A form with all the specified fields and types appear with the correct validation
Given I have write permission in a folder that allow email folder
When I create an Email Folder
Then I navigate to that document and visualise a empty email folder
Given I have write permission on a Email Folder document
When I press edit
Then I see the same form as on creation with the same fields and behaviour and it is field with the document info