http://www.phpclasses.org/browse/package/2351.html

This allows you to check imap accounts WITHOUT the php imap extension!!!! yipee!

How much would it cost to get this written in as a workaround for hosts without php imap? an optional helper module?

I am on www.mosso.com and love everything but the lack of php imap, they leave it out for obvious reasons...

This would really make my life easier...

thoughts?

Comments

ilo’s picture

Version: 5.x-1.x-dev » master

I'm moving to the top, as long as even the testbot has imap extension enabled: see http://drupal.org/node/1038922#comment-4004732

Not sure how much dependant the module is right now, but this is a very big change that can't be even considered without having a good (I'd say excelent) testcase.

danepowell’s picture

Title: optional way around php imap dependency » Make retrieval library pluggable (avoid PHP IMAP dependency)
Priority: Normal » Minor

Just FYI, here's another issue that could potentially be solved by making the retrieval library pluggable... #1149060: MAPI retrieval library... however, this would involve a LOT of work, and I would guess that 99% of users have no problem using the PHP IMAP extension. So the ROI would be very low. I'm not keen on making it happen unless there are quite a few more compelling reasons.

danepowell’s picture

Version: master » 7.x-2.x-dev
Priority: Minor » Normal

Actually, I'm becoming a bit more receptive to this idea- it might not be that hard to implement after all. I think the best way to do it is to create a new plugin type (much like the existing command and authentication plugins) to contain retrieval libraries. The current IMAP functions would go into a plugin, and you could incorporate another retrieval library into your own implementation of the plugin. Then you could select in the Mailbox settings which plugin you want to use.

I don't have the resources right now to tackle this myself, unless someone is interested in sponsoring the development- if you are able to sponsor it please let me know.

danepowell’s picture

Title: Make retrieval library pluggable (avoid PHP IMAP dependency) » Message retrieval library plugins (in order to avoid PHP IMAP dependency)
danepowell’s picture

Ooh... and you could also make a "test" retrieval library that would work with the Drupal test bot, and also allow people to test Importer configurations without having an actual mailbox. I'm liking this idea more and more...

danepowell’s picture

Status: Active » Fixed

I made the retrieval library a plugin. There's still only just the PHP IMAP library though.
http://drupalcode.org/project/mailhandler.git/commit/f4a3242
http://drupalcode.org/project/mailhandler.git/commit/20fc488

Need to open separate issues for an alternate library and test library.

danepowell’s picture

For anyone interested in an alternative to the PHP IMAP library, please subscribe to #1357638: Alternative to PHP IMAP retrieval library

Status: Fixed » Closed (fixed)

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