Gmail Imap import script available for download
I have now made my Gmail Imap import script available for download below.
The script will resend all imap mail from a certain to your Gmail account. The script will add the original date and folder name to the title of the email if you want. The folder name can be used to automatically apply a label to the email when it arrives at Gmail by using a filter in Gmail.
The script handles attachments and most type of encoding, but I am pretty sure not all as it really is a jungle.
These are the release notes:
Disclaimer. Use this at your own risk. No guarantees what so ever are given.
This is a php script and requires to be installed on a php server. It also requires that the PHP Imap module is installed.
It is throttled in order not to get your Gmail account locked…
The script locks up for me once in a while. If it does, just press next after the last title that has been sent and it will resume from there.
Some imap server have a root folder called mail/. If not just remove “mail” and just enter “{www.myimapserver.com/imap:143}/” instead.
Usage is
http://www.yourserver.php/scripts/getmail.php?folder=Myimapfolder
Bits of pieces of this script are from the internet. Credit to those who deserve the credit.
February 15th, 2006 at 2:03 pm
[…] Drasko Markovic has posted a PHP script on his site that will resend all the email in an IMAP account to your Gmail account. […]