Home > Archive > PERL Miscellaneous > May 2004 > perl script to move email
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
perl script to move email
|
|
|
| Hi all,
I have written a perl script to read emails in my Outlook inbox and
then parse the emails based on part of the Subject line. What I need
to add is moving the emails to one of my Personal Folders after I am
finished with it, so that multiple days worth of data are not scanned.
This is so that when/if I go on vacation I don't have to worry about
putting the program on somebody elses PC. Anybody have any thoughts
here?
Thanks in advance,
Jim
| |
| Ben Morrow 2004-05-21, 3:32 pm |
|
Quoth jwarter@coldedge.com (Jim):
> I have written a perl script to read emails in my Outlook inbox and
> then parse the emails based on part of the Subject line. What I need
> to add is moving the emails to one of my Personal Folders after I am
> finished with it, so that multiple days worth of data are not scanned.
> This is so that when/if I go on vacation I don't have to worry about
> putting the program on somebody elses PC. Anybody have any thoughts
> here?
How are you accessing the inbox? Win32::OLE? Reading the file directly?
I would have thought you could move mail between folders in the same way.
Ben
--
Every twenty-four hours about 34k children die from the effects of poverty.
Meanwhile, the latest estimate is that 2800 people died on 9/11, so it's like
that image, that ghastly, grey-billowing, double-barrelled fall, repeated
twelve times every day. Full of children. [Iain Banks] ben@morrow.me.uk
| |
|
| Ben Morrow <usenet@morrow.me.uk> wrote in message news:<c8ljh8$ffd$1@wisteria.csv.warwick.ac.uk>...
> Quoth jwarter@coldedge.com (Jim):
>
> How are you accessing the inbox? Win32::OLE? Reading the file directly?
> I would have thought you could move mail between folders in the same way.
>
> Ben
I am using Win32::OLE. And thanks to another reader I was able to
learn the command to use and the way of defining a folder. Command is
$item->Move(folder) where item is the email message. Also since I am
using MAPI the folder is defined like this "::Personal
Folders::folder"
Jim
Jim
| |
|
| In article <a712d8b1.0405231029.6f76515e@posting.google.com>, Jim wrote:
> Ben Morrow <usenet@morrow.me.uk> wrote in message news:<c8ljh8$ffd$1@wisteria.csv.warwick.ac.uk>...
>
> I am using Win32::OLE. And thanks to another reader I was able to
> learn the command to use and the way of defining a folder. Command is
> $item->Move(folder) where item is the email message. Also since I am
> using MAPI the folder is defined like this "::Personal
> Folders::folder"
Would this work for Outlook that attaches to Exchange? I have an
archival pst at work and I'd like to move all the messages in the
archive to my home server (which is imap).
Mike
|
|
|
|
|