Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > perl script to move email

Reply
Thread Tools

perl script to move email

 
 
Jim
Guest
Posts: n/a
 
      05-21-2004
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
 
Reply With Quote
 
 
 
 
Ben Morrow
Guest
Posts: n/a
 
      05-21-2004

Quoth (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]
 
Reply With Quote
 
 
 
 
Jim
Guest
Posts: n/a
 
      05-23-2004
Ben Morrow <> wrote in message news:<c8ljh8$ffd$>...
> Quoth (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


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 ":ersonal
Folders::folder"

Jim

Jim
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PERL ---> Move email from Inbox folder to another or vice versa in OUTLOOK bony_dev@yahoo.com Perl Misc 2 08-14-2006 08:44 PM
perl script to move email Jim Perl Misc 0 05-21-2004 06:47 PM
cannot script-delete / script-move folders Apostolis K. ASP General 12 02-03-2004 08:15 PM
Help with script to move email files based on date field in header mw Perl Misc 3 10-31-2003 09:16 PM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57