Closed (fixed)
Project:
Mailhandler
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2011 at 17:28 UTC
Updated:
29 May 2011 at 08:31 UTC
Jump to comment: Most recent file
Currently it is possible to test an imap connection, but it does not guaranty the retrieval operation would succeed. This function must check that the mailbox can be read (not just opened) by getting the number of emails in the folder. Also, the test must not be done in the validate function, but in its own callback.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mailhandler_mailbox_test.patch | 5.56 KB | ilo |
Comments
Comment #1
ilo commentedtypo :)
Comment #2
ilo commentedThis patch removes the mailbox test operation from the form validate handler, providing a custom mailhandler_mailbox_test() function that can be called programatically to verify the mailbox settings.
The patch still keeps the changed values in the form to be able to verify the new settings without saving the mailbox first.
Comment #3
ilo commentedCommitted as: http://drupalcode.org/project/mailhandler.git/commit/99bf236