Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

move mail message to new folder

Status
Not open for further replies.

tswitz00

IS-IT--Management
Joined
Jan 26, 2005
Messages
67
Location
US
I currently have a script that reads in a message via
my $conn = Net::POP3->new( $opts{server} )
my $msg = $conn->get($msg_num)
and it parses it through the MIME::Parser to remove the email attatchment.

What I need it to do after that is move that message to a new folder so when I run the script it wont look at the same email twice. I tried to just use move($msg,''new folder') with no luck. Any suggestions?
 
Hi,

Looking at the documentation for Net::POP3 I don't see a move() method. My approach would be read a message, save it locally and then call the delete() method to remove that message from the server.

Mike

I am not inscrutable. [orientalbow]

Want great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top