VBA check save Outlook .msg files

hello guys, how do i check saved msg file on a folder or network share  via VBA  and determine whether it is an Inbox item or a Sent Item?
Of course, can open the msg file and check whether its an inbox or a sent item.
But it's ideal only for a few outlook msg files.
Is there anyway to check save outlook mail files (.msg files) via VBA?
Like check if it is an inbox or receive msg file then put to receive folder and if it is a sent item put to sent folder.
Thank you.
Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
IT Stuff Quick Bytes

Once you save an email to an .msg file you cannot determine what folder it originated from.  However, you'd know it was a sent item by looking at the MailItem.SenderName or .SenderEmailAddress property IF you know the name of the sender.
Eric Legault (MVP: Outlook;
About me)
Outlook Appins: Store social media fields in your Outlook Contacts!
Co-author, Microsoft Office 2013 Professional Step-By-Step
Thanks Eric, that's sad to know.
Wish that there could be some flags or whatever property to check which folder it originates from.
Can we suggest this thing to MS? :)
Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
IT Stuff Quick Bytes

Similar Messages

  • Can't open Outlook msg files

    Hi,
    We are using Windows Phone with Nokia Lumia and we can't open outlook msg files.
    From Desktop, we save Outlook messages into msg format in SharePoint libraries, but When I try to open this message using Internet Explorer with Nokia Lumina, it can't do it. Windows Phone can't open msg files.
    It is this possible? Can't install Outlook client into Windows Phone? Exists any msg reader?
    Thanks

    Hello,
    I am not really sure what that means?
    Did you set it up manually on the sequencer, or did you create it manually on after monitoring?
    Is whats captured the same thing as whats setup when its working?
    Have you compared how it works on a manually setup client vs whats actually configured within your package?
    /Znack

  • I need help creating PDF files from Outlook .msg files.

    I am trying to create a single PDF file from a group of Outlook .msg files. I need the attachments to be preserved and I am hoping that the individual .msg messages will be separated / bookmarked.
    I am trying to remove large quantities messages from my mailbox and store them elsewhere as a record of correspondence. 

    Try running Repair Disk on the external drive.
    With the drive connected go to Applications / Utilities / Disk Utility and double click DU.
    In the left column click to select the name of the external (the item indented to the right).
    Click First Aid.
    Click Repair Disk.
    Unless you get a message the drive cannot be repaired, you should run Repair Disk again and again until you see green text saying the disk was repaired.
    Quit DU.
    If you get the message that the disk cannot be repaired, you will need a more powerful repair utility.

  • Parse Outlook msg files in ABAP

    Hi,
    I'm looking for a way to parse Outlook MSG-Files in ABAP. E.g. to extract the subject line of a message. In my scenario the files are stored in DMS and have to be processed within a background job. Right now i had no luck in converting the binary data of this file format. Any help is welcome.

    It is possible to write ABAP code to extract subject lines using .MSG File Format details.

  • How can I open Outlook .msg files?

    How can I open Outlook .msg files?
    I have FireFox 3.6.15

    It's not an apple solution but you can try MailRaider by 45 RPM software. I have not used it personally but it was one of the hits that came up when I did a google search for .msg on Mac.
    Hopefuly the link posts but if not then just head over to macupdate and do a search for MailRaider
    http://www.macupdate.com/app/mac/31845/mailraider
    Hope this helps.

  • Save Outlook attachement files of type MSG

    Hello everybody,
    I hope I'm right here.
    I have some difficulties with an application scheduling the incoming mailbox of an user. The application checks  periodical the mailbox. Existing emails will be read and related attachments will be saved to a folder. There are no problems except for attachments of type MSG (e.g. u201Cexample.msgu201D), this file canu2019t be read or saved.
    It would be great, if you could  give me a hint how I can read and save these msg-type attachments.
    Thanks for your help,
    Nils

    Remove these three lines
        ExtensionFilter imageFilter=new ExtensionFilter(".gif",
                             "Graphics Interchange Format(*.gif)");
        files.addChoosableFileFilter(imageFilter);
        files.setFileFilter(imageFilter);from the showDialog method and place them into the initComponents() method.

  • Converting Outlook .msg files to .one files

    Hello,
    I am facing a few difficulties regarding the conversion of .msg files to .one files.
    A colleague of mine is using around 200 .msg files which he could view on his phone but since that suddenly did not work, I am tasked with converting those .msg files to .one (or a file format that is compatible with OneNote).
    I then encountered the possibility of converting .msg files to .pdf, but you can't edit .pdf files within OneNote (therefore requiring another conversion progress).
    Also I'd like, if possible, to convert the .msg files in one large batch without having to click and convert every single one of them (could be done but would take a while though).
    If there are any questions, feel free to ask!

    Hi,
    I haven't found a method to directly convert .msg file to .one files. However, as a workaround, we can try inserting these .msg files as printouts in OneNote notebook. To do this, click Insert tab > File Printout button, then, hold Ctrl key and select
    all the .msg files you want to import into OneNote. Click Insert button.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]
    Hello Steve,
    I have already converted the Outlook notes to .doc format with a third party tool (it was a big hassle but I am one step closer to importing them in OneNote).
    At the moment, I'm importing the Outlook notes into OneNote which will take a while since there around 270 notes.
    I'll keep you posted when it's done or I have tried something else.

  • .msg file format of outlook

    Hello,
    I'm looking for a solution to convert an e-mail from .eml format, to .msg file format. This format belong to outlook, and that's why it's very difficult to find informations.
    So, does anabody could give me information about .msg file format ?
    thank you so much
    Tizzy

    Actually, the outlook msg file format has nothing to do with RFC822. I wrote a library in pure java that will allow you to read/write this file format via the POI framework from the Apache Foundation.
    travis (at) overwrittenstack.com

  • Can't open .msg files more then once, saved or as an attachment to an email

    we use :
    microsoft xp & office/outlook 2003
    can't open .msg files more then once, saved or as an attachment to an email
    If we save an email as a outlook.msg file , we can only open it once, close it,
    when trying to open it again it gives an error that it is not possible due to a scurity issue or it is already open.
    After closing outlook and starting it again, we can open it once again.
    Same when clicking an .msg that is attached to an email, but here we can switch to another email, go back to the one and open it again.
    We have installed all updates for both xp and office 2003 also internet explorer 8.0 to test if that would work, normally we have ie7.0.

    Hi,
    1.  What is the detail error information, please try to reproduce the issue and then post the detail error information here.
    2.  Did you save the msg file locally or on a network drive?
    3.  Please try to check security on the msg file and also check the drive NTFS permission. 
    4.  Copy over the email messages from the affected user machine to a different machine and check if the issue persist.
    5.  Test if the issue persist after saving a new email on Mailbox to local drives.
    6.  Copy over the affected email messages from local drive to a PST file and check if these emails can be opened fine.
    1)    Create a new PST file .
    2)    Added to user’s Outlook profiles.
    3)    Launch Outlook .
    4)    Highlight a folder under this PST.
    5)    Drag and drop or copy/paste the emails from local drive to Folder highlighted under the PST files.
    Besides, please try to remove all the add-ins like Entrust and then test the issue again.
    1.     Remove add-ins
    1)    Uncheck all Third-Party Add-ins selected in Outlook , found under Tool\Options\Other\Add-ins managers.
    2)    Export the registry hive below for backup.
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook \Addins
      HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Outlook \Addins
    3)    Delete the registry entries under the above path for all Third-Party Add-ins.
    4)    Close , Open Outlook and attempt to open email message on local drives.
    2.     Temporarily stop all third-party application running following the steps
    below.
    1)    Run MSCONFIG
    2)    Go to Services Tab\Select Hide all Microsoft Services check box.
    3)    Click Disable All.
    4)    Restart the Machine Test if the issue persist.
    5)    To revert back the above setting Run MSCONFIG, Go to General Tab , Select Normal
    Startup and restarted the machine.
    Regards,
    Xiu
    1 Translated from dutch as good as i know :
    "Can't open : c:\test.msg, it might not exist, do you have the required permission to open the file or is it open in another application. Click
    with the right mousebutton on the map click properties to view/check the rights for that map."
    2 tried both, the network and locally, i have the rights to save it in the map and open it once, so thats not the problem, iseems that outlook locks the file after it is openen once.
    3 security and ntfs permissions are ok, see 2
    4 tried it from different pc's networks maps etc.
    5 done.
    6 in a pst file the msg can be openen ore than once, but thats not the problem, tried and this works, but i need to save an email as an .msg file.
    7 addins removed and doen all of that part, didn't help.
    We also have tried:
    -Installing all updates and ie8
    -going back to xp sp2 (fresh install of xp)
    Only thing that did work was an msg file attached to an email, we couldn't open that more then once,
    but after  checking "Use exchange modus with cache" at the account properties we could open that more than once.
    Now we need to be able to open the email's saved as .msg more then 1 time.

  • Index attachments in MSG files

    I am trying to use Oracle Text to index and search msg files with attachments. For testing purposes, I have set up a table called TEST_DOCUMENTS. The table has two columns - a blob column containing the data to be indexed and a varchar2 column describing the data as follows:
    Description - Test 1 - simple email no attachments
    Blob - Outlook MSG file.
    Description - Test 2 - an email including a PDF attachment
    Blob - Outlook MSG file.
    Description – Test 3 - an email including a Word attachment
    Blob - Outlook MSG file.
    Description – Test 4- a PDF document
    Blob – Adobe PDF file.
    Description – Test 5 - a Word document
    Blob – Ms Word Doc file.
    When I index the above using the following:
    CREATE INDEX TEST_DOCUMENTS_IDX ON TEST_DOCUMENTS
    (DATA_BLOB )
    INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('filter ctxsys.auto_filter');
    And search using
    Select description
    from test_documents
    where contains(data_blob,:’search string here’) > 0;
    The email attachments are not included in the search, i.e., I can search the content of the emails but not the attachments. Note: Test 4 and Test 5 are the same as the attachments linked to Test 2 and Test 3. These are returned when the appropriate string is entered!
    If I drop the index and create it as:
    CREATE INDEX TEST_DOCUMENTS_IDX ON TEST_DOCUMENTS
    (DATA_BLOB )
    INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('filter ctxsys.mail_filter');
    I can search the email with the word attachment but not the body of the email. Test 2 with PDF attachment is not indexed. Test 4 and Test 5 as expected are not indexed as they are not email documents.
    On checking the drmailfl.txt file I can see that the default behavior is as follows:
    [behavior]
    text          INCLUDE
    application     IGNORE
    application/msword AUTO_FILTER
    image          IGNORE
    audio          IGNORE
    video          IGNORE
    model          IGNORE
    i.e., only process word attachments. However, if I add application/pdf to the file it makes no difference. The PDF attachment is not indexed.[ Note: each time I make a change I drop and recreate the index..] I even tried setting the behavior to ignore for everything! You would expect it to not index anything but it still indexed the word attachment! I tried shutting down the database and restarting it to see if it made any difference.
    The documentation for Oracle 11g does imply that the ‘AUTO_FILTER’ should index the attachments, but I cannot get it to do it. Has anybody successfully indexed emails with PDF or Word attachments using either ‘AUTO_FILTER’ or ‘MAIL_FILTER’?

    Hi James
    Strictly speaking, you can't. The Workflow system has its own mechanism for handling attachments - they are attached via Form Manager's custom "attachment" user interface, rather than being attached "inside" the PDF.
    You could get at these attachments, and attach them to your outbound email as regular attachments, rather than embedded within the PDF.
    If you have a strong requirement to embed the attachments inside the PDF, there may be something we could do. Please email info-at-avoka.com if you want to discuss further.
    Howard
    http://www.avoka.com

  • Syntax Error When Synchronizing *.msg files

    I am running SyncToy 2.1, version 2.1.0.0.
    When synchronizing folders that contain Outlook messages saves as *.msg files, I recieve the message "Error: Cannot write to the destination file. The filename, directory name, or volume label syntax is incorrect (Exception from HRESULT: 0x8007007B)..."
    If I modify the synchronization settings to exclude *.msg files, the synchronization runs without errors.
    I have browsed this SyncToy support forum and haven't found any posts that relate to this error.
    Any help would be appreciated.
    Thanks.

    I know it's a long shot but I had this error message when trying to write files from a local drive to a mapped SharePoint location. The problem came down to the name I'd used when I mapped the SharePoint library. I'd mapped it as something like this:
    Z: --> \\intranet\myteams\erp\Shared%20Documents
    and kept hitting this issue. However, when I mapped it like this:
    Z: --> \\intranet\myteams\erp\Shared Documents
    it worked.

  • Will office web apps preview msg files in Sharepoint 2013

    We are filing Outlook msg files into sharepoint and want to be able to preview the files without opening them one by one.
    Will office web apps do the work?
    Thanks

    No, OWA does not support msg file types.
    SharePoint - Nauplius Applications
    Microsoft SharePoint Server MVP
    MCITP: SharePoint Administrator 2010
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • .msg File Uploads/Opening via Link

    I have a ColdFusion app that allows users to upload attachments, normally text files, Word docs, Excel files, and images.  These uploaded attachments can then be opened from inside the ColdFusion app by clicking on the generated links to each attachment.  Works great, no issues until somebody decided that they needed to upload Outlook .msg files.  The .msg file uploads to the server but will not open when the link is clicked, get a 404 file not found error.  I can browse to and open the file.
    So, is there a trick to open a .msg file via a web link?  I would expect it to work like a Word doc, launch Outlook and open the file.

    Thanks, works as expected now.

  • Jacob - save outlook message as .msg file

    Hi,
    I need to save an outlook mail item as a .msg file using Jacob.
    In C# I would use the syntax
    mail.SaveAs(savePathAndName, Outlook.OlSaveAsType.olMSG) where 'mail' is an outlook mailitem, the first parameter is a string and the second parameter is a type.
    In Jacob I've tried various combinations of
    Variant saveResult = Dispatch.call(mailItem, "SaveAs", "Microsoft.Office.Interop.Outlook.OlSaveAsType.olMSG");
    with no success
    Any ideas?
    tvm
    RCF

    Variant saveResult = Dispatch.call(mailItem, "SaveAs", directory + "newEmailName.msg");
    thanks you, i found it because of you :)

  • Outlook Add-In Mail Item How to save the mail item (which is in compose mode) as a .msg file in non editable form?

    Hello,
    I am working on an outlook add-in where I have a custom button on the ribbon tab of compose mail item.
    My requirement is to save the mail item currently being composed as a .msg file at a predefined location on click of my custom "Save" button. I am able to do it using "mailItem.SaveAs(...)".
    But my problem is, when I open the .msg file in outlook, it is opened in compose mode but I want to see it as a read-only item. For e.g. exactly the way it looks when I save it after it's sent.
    Could you share any ideas on how to achieve this?
    Thanks,
    Vinay
    -Vinay Pugalia
    If a post answers your question, please click "Mark As Answer" on that post or
    "Vote as Helpful".
    Web : Inkey Solutions
    Blog : My Blog
    Email : Vinay Pugalia

    Strictly speaking you need to *remove* the MSGFLAG_UNSENT bit (=8), not set the MSGFLAG_READ bit, so setting the PR_MESSAGE_FLAGS property to either 0 or 1 will work. Keep in mind that you can remove the MSGFLAG_UNSENT bit only before the message
    is saved for the very first time. If you touch the bit after the message was saved, the message will stay unsent.
    Also note that this may not be what the user wants since the message will become read-only when reopened.
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

Maybe you are looking for

  • NEW VISION BOX UPDATE IS USELESS

     i have recently had the new update it worked for a while until tonight 15/11 now it is worse than ever the lights flash on the remote but no response from the Vision Box all i get now is a green screen and nothing else i have rebooted a few times un

  • Connecting a vga monitor to mini displayport with 2 adapters

    Hi. I have a 21.5 inch iMac and I want to attach a second monitor. The monitor that I bought, the MultiSync LCD1560m, says it is mac compatible. it has two inputs; one DVI-D and one VGA. The monitor came with a vga cable, but not a DVI-D cable. I bou

  • ITunes 10.7 upgrade - 'Please Wait While Windows Configures iTunes'

    Upgraded to iTunes 10.7, which I now regard as one of the poorest pc-related decisions I've ever made.  The time suck on this issue is massively depressing. Running Windows Vista.  Have completely uninstalled and re-installed (clean registries, re-bo

  • I want a fresh load with each reload not a page from history i need my changes to show up each time i load a page

    I am a web designer and need to be able to reload the entire page fresh each time i make a change so i can test things i just changed on the website how do ni make this happen this was not an issue in the past but now the banners on the site stay the

  • Script/menu question

    on our menu, we have it set to repeat if no option is taken. at the end of the menu, we get the system "are you still there" then the menu repeats. is there a way to stop that system message from playing? Thank you