Some attachments converted to text

I bought a new powerbook last September (2006), and transfered my email from my previous Mail file on my older (2003) powerbook. It works fine, but occasionally converts attachments to text. I know that they are true attachments, because I can view them and save them if I access my mail from my older laptop (which has the same system and mail version), or from a web-based mail system. In the mail program on this computer, there is no indication that there is an attachment, but I get a huge amount of random text embedded below the message (e.g., for a jpg file).

Hmmm, but the mail body should be going through the right converter (i.e. RAW -> HTM) so we cannot just replace that. This is the whole issue - it just applies the same conversion for body and attachments. I still think it should leave attachments alone.
Another new oddity I've discovered is that it's not doing a proper HTML file for the attachment as it does if it were using a REAL html converter. A proper html file starts off with
<html style="font-family:sans-serif"> <head>
and so on.
This one simply has a mime type of .htm and
"<br>"
at the end of each line. No other tags whatsoever. Looking at the code it looks like it just replaces CRLFs with
<br>
This leads me to suspect it's not even using an HTML converter for the attachments (as I'd expect it should work), but somehow the text converter for the attachment is incorrectly picking up the HTML format of the parent object (email body). Smells like a bug, I think I'll see what the nice people from OSS have to say....
Thanks for the input,
Mike<b></b>
Message was edited by:
        Mike Pokraka - had to disguise html tags that caused havoc with message display

Similar Messages

  • How to read some lines from a text file using java.

    hi,
    i m new to java and i want to read some lines from a text file based on some string occurrence in the file. This file to be read in steps.
    we only want to read the file upto the first Occurrence of "TEXT" string.
    How to do it ,,,
    Kinldy give the code
    Regards,
    Sagar
    this is the text file
    dfgjdjj
    sfjhjkd
    ghjkdg
    hjkdgh TEXT
    ikeyt
    ujt
    jk
    tyk TEXT
    rukl
    r

    Hendawy wrote:
    Since the word "TEXT" is formed of 4 letters, you would read the text file 4 bytes by four bytes. Wrong on two counts. First, the file may not be encoded 1 byte per character. It could be utf-16 in which case it would be two byte per character. Second, even if it were 1 byte per character, the string "Text" may not start on a 4 byte boundary.
    Consider a FileInputStream object "fis" that points to your text file. use fis.read(byte[] array, int offset, int len) to read every four bytes. Convert the "TEXT" String into a byte array "TEXT".getBytes(), and yous the Arrays class to compare the equality of the read bytes with your "TEXT".getBytes()Wrong since it relies on my second point and will fail when fis.read(byte[] array, int offset, int len) does not read 4 bytes (as is no guaranteed to). Check the Javadoc. Also, the file may not be encoded with the default character encoding.
    The problem is easily solved by reading a line at a time using a BufferedReader wrapping an InputStreamReader wrapping a FileInputStream and specifying the correct character encoding.
    Edited by: sabre150 on Apr 29, 2009 2:13 PM

  • Attachments show as text

    It happened to me twice now that I got an email with attachments, I believe both times it was through my .mac account, which makes Mail painfully slow to begin with.
    Anyway, it has this funky behavior of showing a message before the attachments are downloading, so you start seeing the attached content as it downloads, but if you switch to another message and then back to the message with attachments they end up being gone...it's all text.
    In the last case it even "forgot" the sender's name and address in the header.
    It just went blank.
    Well, I guess that's called a bug, but I thought I post it here anyways...

    My only reference to POP was to say that I do not receive many large attachments in my .mac account, and yes, I would NOT expect any problems with your POP accounts.
    My statement about IMAP accounts was made because .mac accounts, set up as .mac type (you can use POP, but .mac is default when setting up) operate in the same way as IMAP accounts. IMAP access in Mail 2.0 is flawed, and with some IMAP servers, attachments, or at least large attachments, simply do not display, and we have found no setting or other change to correct.
    I have not seen the same problem reported, previously, for a .mac account. I would like to know the number of messages in your .mac Inbox, and also what is the size reported for the messages where the attachments show as text?
    I also would like you to test with selecting to NOT save messages and their attachments for Offline viewing -- there is no risk to messages, as they remain on the server, but it could be important to see if this makes any change to your situation.
    Ernie
    PowerMac G5 Dual 2.5, iBook, and QS G4 867   Mac OS X (10.4.5)  

  • Attachments received as text in Mail

    I have my email set-up as an IMAP account using Mail 3.5 under OS 10.5.6. I am having a reoccurring problem receiving attachments as plain text within the message. It happens with a variety of file types: .jpg, .xls, .igs. Rather than displaying the attached file available for download, the message contains a bunch of scrambled characters. Often, when I have the sender email again, the message displays correctly. I've tried clearing cache, but it does not help. I even re-created the IMAP account within Mail. It seems like others have posted similar problems, but haven't yet found a solution. The weird thing, is I can access the attachment from the IMAP web interface of my host.
    I do have growl mail and mail iconizer, but have tried removing, but it didn't help.
    Any ideas? This is annoying.

    Similar/same problem here.
    Sometimes, the attachments aren't recognized as attachment when downloaded using an IMAP Mail account.
    The fun is that downloading the same message using the terminal the "header" of the attachment is different from that one inside the message downloaded from Mail.
    Here there are the two different attachment's headers.
    FTP downloaded message (and working)
    ------=NextPart_001_020101C9D4AD.FC916EB0--
    ------=NextPart_000_020001C9D4AD.FC916EB0
    Content-Type: application/pdf;
    name="marelago.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
    filename="marelago.pdf"
    Mail's downloaded message
    ------=NextPart_001_020101C9D4AD.FC916EB0--
    ------=NextPart_000_020001C9D4AD.FC916EB0
    Content-Disposition: attachment;
    filename=marelago.pdf
    Content-Type: application/pdf;
    name=marelago.pdf
    Content-Transfer-Encoding: base64
    Seems that Mail changes this attachment's header.
    There is some Mail setting that I am not able to find or...it's a bug?

  • I can't open some attachments in my emails that require safari to download  them

    I Can't open or download some attachments in my emails that require safari to open or download them.

    What is the format of the attachments:
    The iPad suports:
    Viewable document types: .jpg, .tiff, .gif (images); .doc and .docx (Microsoft Word); .htm and .html (web pages); .key (Keynote); .numbers (Numbers); .pages (Pages); .pdf (Preview and Adobe Acrobat); .ppt and .pptx (Microsoft PowerPoint); .txt (text); .rtf (rich text format); .vcf (contact information); .xls and .xlsx (Microsoft Excel)

  • Bug when converting from text to date

    Hello Guys,
    I have a table with about 700 rows and the first column is for date.
    Most rows correctly have the cell content as date, but some rows show it as text, and even when I try to change it to date, nothing happens. It sticks as text.
    Main problem is I can't sort correctly of even do calculations.
    For me it really seems to be a bug.
    The only solution I see is to create a new column to convert the values with formula, but this is a shame to need to do this to workaround such simple bug.
    Best regards,
    Bruno

    Hi Wayne,
    LOL.
    Here's the cell that came from text file exactly like the next one. After setting as date in the format panel, it stays as expected:
    The row below came from another paste from the same text file, but it insists on not becoming date:
    After setting date, and leaving the cell selection, it goes back to "Automatic".
    In the bar at the bottom, it is shown as "Text".
    I have already tried to select the entire column and set as Date, and also to do it individually, but only some are converted. Other stays as Texts.
    Best regards,
    Bruno

  • Aspx.vb some how converted to hex

    I need some help getting my aspx.vb file back to normal view. Some how all the text values have been converted to hex in the code behind.

    I need some help getting my aspx.vb file back to normal view. Some how all the text values have been converted to hex in the code behind.
    Is this a windows vb.net project or asp.net project? If its asp.net go to
    http://www.asp.net for answers.
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to
    suffering - Yoda. Blog - http://www.computerprofessions.co.nr

  • HT5815 10.8.5: no fix for Mail failure to save attachments in rich text

    How hard is it to do 14 months after ML launched? The fault even goes back to Lion I believe. Pathetic. This discussion refers: https://discussions.apple.com/message/22797910#22797910. I bet the battery level indicator isn't fixed either.

    It is always best not to wait 14 months, or any length of time, before asking a question. I have no problem saving attachments in rich text from Mail. And I haven't even updated my machine to 10.8.5 yet.
    I also don't know what is wrong with the battery level indicator.
    This is a user-to-user support forum. Many of those users are flat out wrong. I'm sorry if you have been led to believe there is some bug with saving e-mail or battery icons and waited 14 months for a bugs fix that never arrived. I suggest starting start from the beginning and describe the problems you are experiencing.

  • Need to convert all text frames to intinal caps.

    Hi All,
    I need to convert all text frames in the eps files the text should be first letter to be caps.
    EXAMPLE:
    " The Example Text In The Discussion"   to be " The example text in the discussion "
    I am manually converting around 350 Eps files daily,
    Any help!!!
    regards,
    Vinoth

    Hi Larry,
    Thanks for the reply.
    Yes, excatly we do manually by Type>Change Case>Sentence Case
    But i need this to be done in scripting. My Knowledge in scripting is not good.
    Could you please help me regarding this issue.
    regards,
    Vinoth

  • SSRS report - A single selection dropdown list converted to text box

    Hello everyone,
    We created a single selection dropdown parameter (City parameter) on a report. The data in this parameter is populated using MDX query. Also, it is filtered based on selection of another single selection dropdown list (Country parameter) of a report.
    The problem is when there is no cities for the selected country the dropdown list is gets converted to free type text box and user can insert city data in it. Why SSRS is not keeping it as empty dropdown list with no data?
    Any help would be much appreciated.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

    Hello Charlie,
    We developed a fresh report only with two parameters but still the dropdown control gets converted to text box in our case. We have two single selection parameters, Location and Customers. Based on selected Location the customer
    dropdown gets populated.
    Location Parameter Query
    WITH MEMBER [Measures].[ParameterCaption] AS [Location].[Location Name].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[ParameterValue] AS [Location].[Location Name].CURRENTMEMBER.UNIQUENAME MEMBER
    [Measures].[ParameterLevel] AS [Location].[Location Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Location].[Location Name].ALLMEMBERS ON ROWS FROM [Model]
    Customer Query
    WITH MEMBER [Measures].[ParameterCaption] AS
    [Customer].[Customer Name].CURRENTMEMBER.MEMBER_CAPTION
    MEMBER [Measures].[ParameterValue] AS
    [Customer].[Customer Name].CURRENTMEMBER.UNIQUENAME
    MEMBER [Measures].[ParameterLevel] AS [Customer].[Customer Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel],[Measures].[Amt]} ON COLUMNS,
    nonempty([Customer].[Customer Name].ALLMEMBERS,[Measures].[Amt]) ON ROWS FROM ( SELECT ( STRTOSET(@LocationName, CONSTRAINED) ) ON COLUMNS FROM [Model])
    Regarding parameter settings on General tab for both the above parameters we did not select any of the following values, all these checkboxes are empty:
    Allow Blank Value ("") , Allow null value, Allow multiple values.
    I think it has something related to [Measures].[Amt] that we used in customer parameter. We are now trying to take other two parameters where we would be not using the [Measures].[Amt] to filter the data. Will update you soon.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

  • Converting a text file into a String

    I need to convert a text file (in whatever format, in my case it would be xml and xsl files) in a String.
    I made this methods:
    public static String createStringFromFile(File f) {
            StringBuffer buf = new StringBuffer();
            try {
                FileInputStream fInp = new FileInputStream(f);
                byte[] byteArray = new byte[fInp.available()];
                int bLetti = fInp.read(byteArray);  
                if (bLetti == fInp.available()) {
                    for (int i=0; i<fInp.available(); i++)
                        buf.append(Byte.toString(byteArray));
    else
    throw (new IOException("Errore nella lettura del file"));
    fInp.close();
    } catch (Exception e) {
    ErrorManager.getError(e);
    return (buf.toString());
    public static String createStringFromFile(String fileName) {
    StringBuffer buf = new StringBuffer();
    try {
    FileInputStream fInp = new FileInputStream(fileName);
    byte[] byteArray = new byte[fInp.available()];
    int bLetti = fInp.read(byteArray);
    if (bLetti == fInp.available()) {
    for (int i=0; i<fInp.available(); i++)
    buf.append(Byte.toString(byteArray[i]));
    else
    throw (new IOException("Errore nella lettura del file"));
    fInp.close();
    } catch (Exception e) {
    ErrorManager.getError(e);
    return (buf.toString());
    There are no compilation or runtime errors, but the result string is empty. Not null, empty. What should I do? :)

    Do you really want to use bytes and so on when java does it all for you?
    Here's how I did it, hope it's useful.
    public String getFileAsString(String fileName){
         StringBuffer buffer = new StringBuffer();
         try{
         BufferedReader bRead = new BufferedReader(new FileReader(new File(fileName)));
         String str = "";
         while( (str = bRead.readLine()) != null ){
              buffer.append(str);
         }//end while
         bRead.close();
         }catch(Exception e){
         System.err.println("in getFileAsString(): " + e.toString());
         }//end try
         return buffer.toString();
    }//end getAsString()

  • Some of google chrome text shows up as squares mess

    I love Google Chrome but I can't read certain headlines and pop up windows. I have uninstalled and reinstalled.
    I have managed my system fonts in fontagent pro and then not managed them. I have changed the encoding. I checked it on my laptop and it has the same problems strangely enough. This has been going on for years and I keep trying to use chrome but have to switch back to my old browser always out of frustration. When I first installed it, it used to work great. Something happed along the way. I posted this question to a chrome forum and no one seemed to have any suggestions. I did some research on the internet and someone suggested it was some sort of widget. But the way they worded it, I could not figure out if I had that widget or how to get rid of it in the first place. (How does one get rid of those?)
    My system is up to date running Lion OS 10.7.4 and my Chrome is up to date.
    When I try to pretend like I know what I am doing and check the source page of some of the highlighted text to see if its a missing font. It just refers to a headline style and not a typeface so it doesn't help me at my lay person's level.
    If I can figure out how to attach a screen shot, I will of the strange letters to see if anyone has any clues to help me.
    Thank you!

    The following is from the source of this page. The Browse button displays it's text correctly but the Preview Reply and Post Reply buttons just show blocks.
    <div class="add-attachment">
    <label for="id_image">Add images:</label>
    <input type="file" id="id_image" name="image" size="30"
    accept="image/jpeg,image/png,image/gif"
    title="Browse for an image to upload."/>
    <noscript>
    <input type="submit" name="upload_image" class="btn g-btn"
    value="Upload"/>
    </noscript>
    </div>
    <div class="adding-attachment"></div>
    </div>
    <div class="submit">
    <input type="submit" class="btn y-btn" name="preview" value="Preview Reply" />
    <input type="submit" class="btn g-btn" value="Post Reply" />
    </div>

  • TS3899 I can't open some attachments on my iphone or ipad?

    I can't open some attachments on my iphone or ipad. The little paper clip shows on the side but there is no attachment or file in the body of the email to click on to. It's not with all emails - all of the time???  This has happened on with older and the new iOS software. 

    why is it that I can't delete some photos on my iPhone and iPad?
    And in addition to gail's list: if you try to delete edited photos in iPhoto, they will remain on your device. To be able to delete them completely, revert the photo to original before deleting.
    See:  http://help.apple.com/iphoto/ipad/2.0/?lang=en#blnkb9b1e2a
    If you delete a photo from the Photos app on your device, the photo is deleted in iPhoto (unless the photo has been edited, captioned, tagged as a favorite, or used in a web journal, slideshow, or photo book).

  • Setting Font for converting multiple text files into PDF using VB 6.0

    Dear All,
    Am converting multiple text files into PDF using VB6.0. Currently, am unable to control the font face and size for the generated files. Below is the procedure am using for each file;
    Public Sub proc_convert_to_PDF(srcFilename As String, destFilename As String)
    Dim p_AcroApp As CAcroApp
    Dim p_VDoc As CAcroAVDoc
    Dim p_DDoc As CAcroPDDoc
    Dim IsOk As Boolean
    Set p_AcroApp = CreateObject("AcroExch.App")
    Set p_VDoc = CreateObject("AcroExch.AVDoc")
    Call p_VDoc.Open(srcFilename, "")
    Set p_VDoc = p_AcroApp.GetActiveDoc
    If p_VDoc.IsValid Then
    Set p_DDoc = p_VDoc.GetPDDoc
    ' Fill in pdf properties.
    p_DDoc.SetInfo "Title", Format(Date, "dd-mm-yyy")
    p_DDoc.SetInfo "Subject", srcFilename
    If p_DDoc.Save(1 Or 4 Or 32, destFilename) <> True Then
    MsgBox "Failed to save " & srcFilename
    End If
    p_DDoc.Close
    End If
    'Close the PDF
    p_VDoc.Close True
    p_AcroApp.Exit
    'Clear Variables
    Set p_DDoc = Nothing
    Set p_VDoc = Nothing
    Set p_AcroApp = Nothing
    End Sub
    What I need;
    1) to be able to set the font face of the destination file ( destFilename)
    2) to be able to set the font size of the destination file ( destFilename)
    Am using Adobe Acrobat 7.0 Type Library
    Kindly Help.
    Thanks in advance

    We didn't say it doesn't work. We said it isn't supported.
    There are a number of other ways to make a PDF. The one which would
    give the most control is if your application directly printed to GDI,
    controlling the font directly. This could print to Adobe PDF.
    You could look for an application that gives control of font for
    printing.
    You could use a text-to-PostScript system and distill the result. You
    could even look for a non-Adobe text-to-PDF.
    Working in the unsupported and dangerous world you chose, the font
    size for text conversion is set (and this is very bad design from
    Adobe) in the settings for Create PDF > From Web Page. There is no API
    to this.
    Aandi Inston

  • Problem in converting english text to arabic text in Acrobat XI professional

    Hi,
    One of our client is facing issue while converting english text to arabic text in Acrobat XI professional. Can somebody help me to find a solution for this.

    Ok , that is clear the customer has another query. He is trying to convert a pdf Arabic file into word formate but it is showing arabic font which is not in a proper form.i am attaching the print screen .

Maybe you are looking for