rename msg file automaticly

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

I have made some shortcuts in the quicklaunch bar to mailfolders from
my projects in Explorer. When I drag and drop emails from Outlook 2003
on those shortcuts, the mails are archived on the right place.

At the company I work, this is the only way to archive...

Can anyone make a macro, that adds the date the mail was created, and
the sender to the msg file, somewhere between dragging and dropping?
( <date>-<name>-<subject>.msg )

Thanks!
 
If you mean you are dragging e-mails to folders in Windows Explorer, then no,
you cannot effect any changes on the e-mail as it has "left the Outlook
building".

Thank you, thank you very much.
 
So then how can this be achieved? I need to develop something that will
rename an email file to <date>-<name>-<subject>. either in Outlook or after
the email has been moved to a folder. I would prefer the later. The app will
go through a folder of .msg files and rename them.

Thanks for your help
Strychtur
 
When exactly are these e-mails getting saved to the file system? If you have
code that's already archiving the e-mails, can you not change the file name
to whatever you want at that point?

Otherwise, if you need to rename a file in a folder when something happens
in Outlook, you'll need to either know where the file is so that you can grab
it and rename it, or develop a file system watcher robot that can perhaps
work in tandem with Outlook to rename those files.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/
 
Sorry for the delay in responding, you know the holidays and all and thanks for your response.



Ok, I don’t have any code that does archiving. The way it works here is users get project emails sent to their inbox. Then they move the emails to the corresponding project folder outside Outlook. What I am looking for is writing and app or script that will rename the MSG file to sender, subject, date.msg.



So, after the emails have been moved manually to the project folder, I would like the user to select one or more email then right click. When they right click, where it says cut, copy, paste, etc. I would like to add something like ‘rename email’. When that is selected I want my code to go through each selected email by the user and rename it by going into the file itself and pulling out the appropriate data.



Thanks for your time, any information to point me in the right direction would be greatly appreciated.



Cheers

Strychtur





Eric Legault [MVP - Outlook] said:
When exactly are these e-mails getting saved to the file system? If you have
code that's already archiving the e-mails, can you not change the file name
to whatever you want at that point?

Otherwise, if you need to rename a file in a folder when something happens
in Outlook, you'll need to either know where the file is so that you can grab
it and rename it, or develop a file system watcher robot that can perhaps
work in tandem with Outlook to rename those files.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"strychtur" wrote:

> So then how can this be achieved? I need to develop something that will
> rename an email file to --. either in Outlook or after
> the email has been moved to a folder. I would prefer the later. The app will
> go through a folder of .msg files and rename them.
>
> Thanks for your help
> Strychtur
>
>
> "Eric Legault [MVP - Outlook]" wrote:
>
> > If you mean you are dragging e-mails to folders in Windows Explorer, then no,
> > you cannot effect any changes on the e-mail as it has "left the Outlook
> > building".
> >
> > Thank you, thank you very much.
> >
> > --
> > Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
> > Try Picture Attachments Wizard for Outlook:
> > http://www.collaborativeinnovations.ca
> > Blog: http://blogs.officezealot.com/legault/
> >
> >
> > "Martin" wrote:
> >
> > > I have made some shortcuts in the quicklaunch bar to mailfolders from
> > > my projects in Explorer. When I drag and drop emails from Outlook 2003
> > > on those shortcuts, the mails are archived on the right place.
> > >
> > > At the company I work, this is the only way to archive...
> > >
> > > Can anyone make a macro, that adds the date the mail was created, and
> > > the sender to the msg file, somewhere between dragging and dropping?
> > > ( --.msg )
> > >
> > > Thanks!
> > >
> > >
 
Back
Top