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

Similar Messages

  • How to read the content of .msg file type with attachments in SAP crm?

    Hi All,
    Need to develop a RFC FM which will take any BP number as input
    Read the attachments in the BP and identify the attachment which is an email( .msg).
    Identify by the mime type and file extension
    Scan through the email to get the attachments of that email read the content of the
    attachment as a binary file and return that binary file with file name, size
    etc.
    I need to read the data (in binary format) attachment of an attachment of .msg file type .
    I have done till step 2 .
    Please help me on step 3.
    Thanks&Regards,
    Pratap Naik

    Can any one help me on this ?
    Thanks in advance.
    Regards,
    Pratap Naik

  • Creating a .MSG file which has file attachments

    Hi
    If I wanted to create a Word document or an Excel file, I would simply use cfcontent and then save the content to disk using cffile.
    However, I now have a requirement whereby I would like to create a .MSG file.  (This is the equivalent, if you use MS Outlook, of saving an email that you have in your inbox to disc.)
    My question is, how do you accomplish this?
    I was thinking I could change the MIME type of the document to a type equivalent to MS outlook message files but how do include the attachments etc to the email?
    Has anyone done something similar before? Ideas please?
    Thanks
    Michael

    Changing the MIME type of a response doesn't magically convert the file format of the response, it just sets an HTTP header to reflect the desired MIME type.  What the browser does with that info is up to the browser, but when you save the file, it's still just plain text, unless you have specifically created the binary data that represents the file format you want (which it doesn't sound like you're doing).
    So simply using CFCONTENT to indicate the MIME type is application/msword (etc) and saving downloaded data as a .doc file does not make it a Word file, unless the data you send down is in the Word binary format.  It's just a text file with a .doc extension.  Word will have a stab at converting it to Word format - in memory - when you open it, but until you resave it, the file is still just text.
    The same applies to any other file format.  If you want to create an Outlook message file with attachments etc, you'll need to file the file format somewhere (and it's like to be proprietry, and not published, if it's a MS format), and replicate that.  No mean task.
    Why are you trying to create a file representing a saved email message?  It's an uncommon requirement...
    Adam

  • Cannot open email attachments that are .msg files from a PDF portfolio

    I have been creating
    PDF portifolios comprised of emails and their attachments. When I open .xls, .doc, .txt, .html attached messages they open fine. when I try to open an attached .msg file, I get an error message that the file cannot be read or that it it damaged. please advise what I need to do to be able to open these files
    thanks

    John, thanks for the suggestion. The messasge was created by outlook and is an email message. I brought it back into outlook and still cannot open it. I think it is more of an issue of the file not being converted properly by acrobat, but I can;t tell for sure.
    thanks

  • How do I open a .msg file...is it safe?

    Occasionally i get an email with a .msg file attached.  It is from a friend who is known to me.  How do I open it and is it safe?
    Thanks for the help..
    kathy

    The user has sent a message using MS Outlook, which packages attachments in it's own format ( arrogantly assuming that all recipients have Outlook too). This will take care of it for you by converting the file to its original.
    https://itunes.apple.com/us/app/klammer-open-msg-winmail.dat/id436780099?mt=12&i gn-mpt=uo%3D4

  • 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.

  • How to convert .msg files to PDF?

    Hello,
    I have a folder full of hundreds of .msg files, many with attachments.  I need to convert them to PDF.  I have a Mac with Adobe Pro X, and a PC on which I just installed a trial version of Adobe Pro XI.  I have tried to do this on my own, on both machines, with little success.
    I have tried the "drag and drop" method to try to "combine files into one PDF."  Unfortunately, .msg files do not appear to be a supported file type in either Pro X or Pro XI.
    On my PC, I am able to use the print to PDF function to individually turn each .msg file into a PDF.  However, there are two challenges I'm hoping to solve:
    1)  The print to PDF function writes any attachments as separate PDFs, instead of automatically merging them all into one file.  It takes time to have to enter a new file name for each attachment and save, and also requires me to name them very specifically, so I know which attachments go with which message file(s).
    2)  Even if I could solve the attachment issue, I expect that it will take a LOT of time to convert each of these files, one by one.  Is there a workaround or way to batch convert .msg files?  Or is there some kind of add-on or plug-in that will allow me to use the combine files into one PDF function with .msg files?
    Thanks!

    One approach would be to drag and drop your folder of.msg files into Outlook. Next, setup an automatic archive under the Adobe PDF ribbon by selecting the Setup Automatic Archival icon. Under the Automatic Archival tab you can select your folder of email messages in Outlook. Then, under the Settings tab make sure you have "Include all attachments in the Adobe PDF" selected as well.

  • Can't open *.msg files from Windows

    I am moving from PC to Mac and I used to store my e-mail messages as *.msg files in my hard drive and not Outlook 2011 nor Mail recognizes them so I can't open them, what can I do?

    But what about if I want to view the attachments as well? I have Office for Mac 2011 and I've been trying to open some .msg files from Outlook 2007. I received them as files on a disk, and I was able to open them on my PC at work just fine. However, I can't open them on my Mac. I downloaded a free trial of Mail Raider (and a couple other programs, but none of them worked.) It only opens some of the files. They come out as a mess and the attachments aren't accessible. And the rest of the files just don't open at all, or sometimes it doesn't realize there are attachments. I was able to randomly extract one attachment and a jumbled email message, and that's my only success so far. I used the same method on another email/attachment and got nothing. According to what I've seen on Microsoft blogs/forums, it seems like Outlook 2011 should be able to open these files, so I shouldn't even need another program, right? Please help!

  • .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.

  • .MSG files. Problem with getting requested values from crawled properites

    Hi
    I have a lot of msg files on my file server. I use SharePoint Enterprise Serach engine to crawl all these MSGs.
    I would like to get extra managed properties out of these files. I am most interested in getting Mail:5(text) / Mail:12(Date and Time) / Mail:53(Date and Time) from MAIL category in Managed Properties.
    This thread is very similar to one already posted by SpinnerUp:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/82d69df0-5cb2-4e51-a485-34209e111f4b/problem-with-crawling-msg-files-doesnt-seem-to-return-requested-values-from-crawled-property
    Please be aware that I do not use Public Folders. These MSGs are exproted from Outlook and are stored on File Server not Exchange.
    I tried to link Crawled Properties to new property however I cannot get any results back.
    Thank you for you help.
    Regards, Marcin (Please mark as helpful or answered if it helps)

    Thank you for your replay.
    However I am not keen to write custom connector at this stage.
    Is it possible to simply get "Subject", "Sent", "Received" info from msg file and then map it to managed properties.
    Does SharePoint create any crawled properties which contain information about let's say "Subject" which then can be used to create managed properties?
    I tried playing with "MAIL" properties however I cannot get them to work. I guess this is because the file is a msg file rather than mail which is stored in Exchange Public Folder.
    Regards, Marcin (Please mark as helpful or answered if it helps)

  • Viewing attachments to PDF files in Preview

    Hi all,
    Sometimes files are attached to PDFs so that the attached file (spreadsheet, movie, whatever) comes along with the PDF. It's easy to see the attached files using Acrobat Reader (you click on the paperclip icon), but I can't figure out how to see them in Preview. Is this possible? Please note that I am talking about attachments within PDF files, not PDFs attached to emails!
    Thanks in advance,
    wrathkeg

    I have exactly the same problem with PDFs containing bitmaps created by Illustrator CS3 (and CS4) -- the bitmap appears as negative.
    It has to do with the compression method used for the bitmaps in the Adobe PDF creation. If it is JPEG or JPEG2000 the problem occurs, if it's ZIP or no compression, the image is fine.
    If have reported this to Apple as a bug already.
    10.6.2 has NOT fixed this behaviour.

  • 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 files open in new tab or window, not with the default program

    Hello,
    I am having an issue with .msg files not opening with the default program, Outlook. They are opening in a new tab and it is just a bunch of gibberish from the email header. Does anyone know how to force IE to open the .msg files in Outlook? They open fine
    in Chrome and Firefox.
    Thanks for your help!

    Hi,
    First I suggest we take a try in IE with no-addons.
    Follow the steps below:
    1. Click Start -> All Programs -> Accessories -> System Tools -> Internet Explorer (with no add-ons)
    2. Press Shift, then right click Internet Explorer icon on taskbar, select run as administrator;
    Please also take a verify that if the outlook is set to the default open program of .msg files:
    Control Panel\All Control Panel Items\Default Programs\Set Default Programs, find the .msg file and take a look.
    Then we may try to use process monitor to track the root cause of this issue:
    The download link here:
    Process monitor
    And here is
    a blog talking about how to use it:
    Process Monitor - Hands-On Labs and Examples
    Hope this may help
    Best regards
    Michael Shao
    TechNet Community Support

  • I want to import a MS Word Index into a .pdf file using Adobe Pro.  How do I do that?

    I want to import a MS Word Index into a .pdf file using Adobe Pro. It is for a book.  The book has been converted to a .pdf for printing, but it needs an Index for the last page of the book.  I tried to embed a new index (starting from scratch but no luck.  Any suggestions?  Thank you for your time.

    Now I want to search this "myArrayStrings.get(r)" in another file. How to do that?Store the returned String. Do the same thing you did to read the first file to read the second file (i.e. read it in line-by-line and store the lines in a list). Then check if that list contains the String you stored from the first list.
    E.g. (using your code):
    String name = myArrayStrings.get(r); // assuming r is initialized somewhere before this
    if ( otherList.contains( name ) ) { // assuming otherList is your second list
        // do something
    }

  • How to customize error message using oraus.msg file?

    Hi,
    Is there a way to modify the oracle error message (for example: instead of ORA-01481: invalid number.. we modify it to "hello ! use a valid format.." ), is it possible using the oraus.msg file if not is there a solution?
    Many thanks

    968420 wrote:
    Hi Gauyav and Keith,
    i thak you for your quick responses , but i want the customized message to be displayed wherever the oracle error appears (in oracle forms screens , sql tool requests, ) not only in pl/sql code,That is a really bad idea
    {message:id=1007020}
    It would render the database completely unsupportable by anyone, and based on the quality of exception handling that is generally seen on these forums would result in databases that simply don't work.
    SQL> declare l_dummy number;
      2  begin
      3    select null into l_dummy from dual
      4    where 0 = 1;
      5  exception when others then
      6    raise_application_error(-20666, 'It doesn''t work!');
      7  end;
      8  /
    declare l_dummy number;
    ERROR at line 1:
    ORA-20666: It doesn't work!
    ORA-06512: at line 6
    as we've a lot of forms screens and it's not possible to modify all of them.These are strange kinds of forms that it is possible to create a lot of them but not possible to modify them.
    Is there a solution for this?Fix the forms.

Maybe you are looking for

  • How do I restore the "close tab" button to the END of the tab bar, WITHOUT USING AN ADDON

    Up until FF31, I used to have the following setting configured which moved the little 'X' button that closed tabs off of the tabs themselvs and onto the far right of the tab bar. browser.tabs.closeButtons; User Set; Integer; 3 No, this no longer work

  • Connecting a WAP4410N to a E3000

    Is there a FAQ on how to set up the WAP4410N as range extender to E3000 (or similar router)? Can I configure it from my pc that is hardwired to the E3000 or must I hardwire the pc to the WAP4410N first to configure it?

  • ICloud not synching

    I recently noticed that Syncing from calendar to my two iOS devices is no longer working. It might have been since I updated to Mavericks. Yes, although I don't like it, I have all the devices set to use iclown to sync the calendar. I also followed a

  • Color temperature setting on camera and in Lightroom do not match

    I found that Lightroom shows different value of color temperature then was set on the camera body when the photograph was taken. For example I have set up color temp. to 3700K for the given scene according to what the external color meter was showing

  • Sharing fonts in flash

    Hi, is it possible for sharing fonts across different movies? We use embedded fonts in our movie and since we have many of them, it is making the movie size bigger and longer time to load. We wanted to check if we can embed a font in a movie and then