I think this is a great mod and I really want to get it working. But, I need it to support IMAP. I've installed the
vB Mail Reply mod and that works with IMAP. The mod includes the file
vbemailreply.php which includes code for checking IMAP email. Perhaps we can try to incorporate that into gateway.php?
My PHP skills are very very limited but I'll try to figure it out when I have some time. Maybe someone else can help?