Closed (fixed)
Project:
Inmail
Version:
8.x-1.x-dev
Component:
Deliverer
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2015 at 07:16 UTC
Updated:
19 Aug 2016 at 14:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
miro_dietikerComment #2
miro_dietikerHint: There's an imap_ping() method to test a connection.
Comment #3
mbovan commentedAdded a "Connect" button.

imap_ping()requires opening an IMAP connection, so it seemsdoImap()call is enough. It fails in case connection cannot be open.Also, about the tests, I'm only asserting there is a "Connect" button. PHP IMAP extension is needed to test it properly which doesn't seem to be available in tests...
Comment #4
miro_dietikerWe should move all connection credential specific elements into a fieldset and put the Connect button there as last element.
For instance, the Batch size is NOT related to the connection credentials. :-)
Yeah, the IMAP php module isn't that common on server environments... Likely it's missing on testbot.
Testing this would need abstracting it / with mocking capability. Seems to be way too much overhead.
Comment #5
mbovan commentedMakes sense. :)
Added a fieldset:
Comment #6
miro_dietikerIf i click on "Connect" with wrong credentials, i see no error message. We need one.
The fieldset "IMAP" is repetitive. Let's name it "Account".
I think the button should be labeled "Test connection", because it does not save...
Comment #7
mbovan commentedImplemented suggestions above.
Comment #8
berdirmaybe throw an exception here, so implementations see what they need to do if they forget?
Comment #9
mbovan commentedAddressed #8.
Comment #11
miro_dietikerCommitted! Thx for adding. :-)