
December 15th, 2002, 03:44 AM
|
|
Junior Member
|
|
Join Date: Dec 2002
Location: Germany
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
how to "foward" an email using IMAP
Hi!
I have 2 email accounts:
account 1
|
spamcop.net
|
account 2
Account 1 is my majour email account which is read by spamcop to filter spam emails and the rest of the emails is being forwarded to ac**** 2
Account 2 is a "secret" one, but I receive spams directly on account 2, they started 7 hours after the "creation".
Now I want to write a php script which reads all email header of account 2, checks the header for "spamcop.net" entries. If not, I will forward that email to accout 1. It will be filterd then.
I have too less experience with pop3 and imap - so perhaps someone could help me on that problem. I know how to read the email - but the "forwarding" part is not really understood by me. What header do I have to create. How should I do this.
Thanks for any help
Bernd
|