Current status:
6.x-2.x doesn't work on testbot: #1344316: Use recommended release rather than just sorting
Try to add a test case to make sure messages get purged: #1363372: Authenticated messages not being purged
Verify importing works (waiting on #1368648: Improve retrieval from local folders)
Verify multiple emails work
Also verify that things fail when necessary (authentication, etc...)

Comments

danepowell’s picture

Agreed, this would be nice. Will probably need support though.

danepowell’s picture

Status: Active » Postponed

I don't imagine test cases will be much help if the testbot can't actually retrieve any mail... #1038922: Verify basic mailbox operations in simpletest testcase.

danepowell’s picture

Title: Tests for 2.x » Test cases
Category: task » feature
Status: Postponed » Active

This is now theoretically possible, following: #275926: Message retrieval library plugins (in order to avoid PHP IMAP dependency)

We'd have to write a 'test' retrieval library that just supplies dummy text.

danepowell’s picture

Another good test would be automatic coder review.

danepowell’s picture

Status: Fixed » Needs work

I guess this isn't quite done... 7.x-2.x works, but 6.x-2.x still has issues. I can't figure out why.

danepowell’s picture

danepowell’s picture

Status: Needs work » Postponed
danepowell’s picture

Status: Postponed » Active

Additionally, more test cases need to be written to verify that importing messages works.

danepowell’s picture

Try to add a test case to make sure messages get purged: #1363372: Authenticated messages not being purged

danepowell’s picture

I updated the summary to take care of suggestions to this point.

danepowell’s picture

Issue summary: View changes

Updated summary

danepowell’s picture

Oh man... I just spent so long discovering terrible things about imap_open() and local folders.

Okay, so apparently the library underlying imap_open() has changed somewhat recently- it used to allow you to pass any absolute file path to an mbox file, but due to security reasons it now takes paths relative to the home directory of the web server user (www-data, so /var/www, for instance).

Thanks to this post for the info: http://www.webmasterworld.com/php/3738080.htm

Obviously the docs need to be updated to reflect this. I don't know if it can be worked around for testing purposes.

danepowell’s picture

Issue summary: View changes

a

danepowell’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Component: Code » Mailhandler
Status: Active » Patch (to be ported)

Finally got test imports from local folders working: http://drupalcode.org/project/mailhandler.git/commit/619a66e

More tests can be added later.

danepowell’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

a