In Progress

PHP script that copies email from an IMAP account to another

This should be a really simple script.

I have 2 Google Apps accounts. I want to be able to label messages in my main account with a specific label, then have the script periodically copy messages in that account to the inbox of another account. It then needs to remove the labels from the messages in the original account so they're not copied again the next time the cron job kicks off the script.

I figure this should be fairly straightforward to do via IMAP.

I found a script online designed to move all messages and folders from one IMAP account to another for a migration, but this is obviously a lot more complicated than I need. I'm not smart enough to redo it for my needs, but it may prove useful as a starting point:

[url removed, login to view]

I'd like there to be a header in the script that I can edit myself to set variables pertaining to the account info and folders.

So, in a little more detail:

1. The script should have a header where I can set the origin and destination accounts and folders

2. It logs into both accounts, then copies all messages from a specific IMAP folder on the origin side to a specific folder on the destination side

3. Removes the messages from the folder in the original account without deleting them or effecting their other Gmail labels

That's about it. Thanks!

Skills: PHP

See more: re label, online labels, online email job, moving without job, google apps email, gmail edit, copy edit online, apps script google, job apps online, imap google apps, google apps imap, little an, imap, google script gmail, email inbox, email copy, deleting account, cron script, apps script, gmail imap php, php header script, remove script, migration php, move email, script smart

About the Employer:
( 4 reviews ) Port Townsend, United States

Project ID: #1236366

Awarded to:

actio

Hello I can help You with those mail application. I can start today.

$35 USD in 1 day
(1 Review)
1.1

5 freelancers are bidding on average $103 for this job

SigmaVisual

We can help in your project, please check PMB and our ratings/reviews to get idea of our experience.

$200 USD in 7 days
(248 Reviews)
7.9
srinichal

I look forward to deliver the same

$180 USD in 5 days
(101 Reviews)
7.1
mickeylee112

I can help you, sir! I'm ready!

$50 USD in 1 day
(85 Reviews)
6.0
Xz9

Accuracy guaranteed. Later support guaranteed. Clean well documented code guaranteed.

$50 USD in 1 day
(0 Reviews)
0.0