Mail saving text attachments with DOS line endings

dear all,
i just noticed that Mail saves text attachments with DOS line endings (CR+LF), even if the original contains UNIX line endings (LF). how can i disable this behaviour?

Using Automator, one can make a Desktop application that simulates dos2unix.
The Automator application shown here, will prompt the user to choose one or multiple (using command key) text files, and will then use Perl to process each file in-place, replacing the carriage return-line feed pairs with just a line feed. I tested this on a folder of text files where each file had more than 1 CRLF pair. Afterwards, there were only LF. The last thing this application does is slide out an OS X notification with processing status and number of files affected. I borrowed, and adapted the Perl block from Stack Overflow.

Similar Messages

  • Converting dos line endings to unix

    What is the simplest way a Macintosh user can convert a text file with DOS/Windows (CRLF) line endings to Unix/Mac (LF) using only the tools available in a standard OS X distribution?
    In the command-line environment (Terminal), I don't see the old standard, dos2unix. And I don't see an option in TextEdit to specify which. More capable text editors, e.g., TextWrangler, have such an option, but I don't want to require the user to have to download anything more.
    I want to share some Perl scripts I wrote with other Macintosh users. The scripts work on text files with Unix/Mac (LF) line endings, but the users' files on which the scripts operate may have DOS/Windows (CRLF) line endings. I want to tell them how to convert their files without having to install anything more.
    Is that even possible? Seems like it should be.

    Using Automator, one can make a Desktop application that simulates dos2unix.
    The Automator application shown here, will prompt the user to choose one or multiple (using command key) text files, and will then use Perl to process each file in-place, replacing the carriage return-line feed pairs with just a line feed. I tested this on a folder of text files where each file had more than 1 CRLF pair. Afterwards, there were only LF. The last thing this application does is slide out an OS X notification with processing status and number of files affected. I borrowed, and adapted the Perl block from Stack Overflow.

  • The color of text item with multi-line in web

    I tried to change the background color of text item with multi-
    line, but it does not work when I run in the web, if some body
    knows that, please give a hint.
    Thanks
    Frank
    null

    I tried to change the background color of text item with multi-
    line, but it does not work when I run in the web, if some body
    knows that, please give a hint.
    Thanks
    Frank
    null

  • Text editor with 15 lines

    Hi all,
    I have a requirement to create a text editor.
    I created a Text editor,but where i need only 15 lines to update into it .
    But it showing 22 lines and some times 30 lines .
    Anybody let me know how to update Text editor with 30 lines .
    Regards,
    Madhavi

    solved myself

  • Text Field with multiple lines

    I am trying to create a text field in the selection screen where it can insert a text with multiple lines for instance those text fields which you can see online where you can key in text lines after lines.
    How do you do that in ABAP?

    Hi
    See any Std program code for CREATING long Text lines
    See any application document HEADER or ITEM text and copy that code
    first declare a field with some table field
    like
    PARAMETERS: p_text like Tline-tdname.
    then keep a button (for Long text) and in the program write a code such that when you press on that line it will take you to text ediotr
    using the CREATE_TEXT fun module
    copy it from a std program text..
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to add an animation to a text field with two lines?

    I have a text field with two or more lines. Why isn't it possible now to apply a text animation?

    For certain tasks, Titler and its Presets can be very good, and can simplify things greatly.
    However, when one gets beyond the limitations of the Titler, I really like to create my Titles in Photoshop, and Import those as Still Images into my Project. I then use the power of Keyframing various Effects over time. This allows me much more control, BUT does require more hand-work. Still, that added control is too important to me, and I sort of like doing the handwork.
    For the "alignment" of multiple Titles, to get multiple lines of Text, you can create the first Title, and then chose Duplicate Title. Initially, that will be identical, but you just change it, as is necessary. After you have changed that "second line of Text," place that Duplicate on the next Video Track, above the first Title, and use the Fixed Effect>Motion>Position, to move it down, to where it would be (by the height of the font, plus any desired Leading), if one had created a second line of Text on one Title.
    I also like to use Alignment Grids, when things get critical, and create those in Photoshop, with a trasparent background, and just place them, on say Video Track 2, with all of my Titles above that. Just do not forget to remove any Alignment Grids, before you Export/Share the Timeline, or they will be part of the output video.
    For more background on Keyframing (so very useful with more than just Titles), Steve Grisetti has done a multi-part tutorial, available as Basic Keyframing on Muvipix.com. I highly recommend it. Keyframing is simple to do, but can be a bit of a tough concept to grasp initially, and it's a subject that is tough to write about - takes longer to type instructions, than to do the work.
    Good luck,
    Hunt
    PS - Do not know if you saw them, but Titler has two Alignment Tools - Align Horizontally, and Align Vertically, that can be helpful to center Text.

  • Mail saving all emails with attachments in "Drafts"

    Since I upgraded to Mavericks (not Maverick or Maverick's...??) Mail has put a copy of every email I send that has an attachment into the "Drafts" folder.  The email has been sent and received by the recipient, and you can find it in the "Sent" folder as well.  Never had this issue before.  I can't find a preference that has any effect on it.
    Any ideas??
    Tks!

    I'm using a PC for my email at the moment. I'm not sure if all my wife's emails have been downloaded. However, Mail has made a Home/Mail/MessageUidsAlreadyDowloaded file. This was created when I sent an email to test what happened. I was unable to make Mail download all her emails, so I guess they must have gone from the server. She has a different email address to mine, but it's run from the same ISP account; as I said, she logs in, automatically, through Mail to her email. I have contacted the ISP about it, but they are unable to see any trace of emails that colleagues have sent my wife and which she sends home to herself. All of these files happen to have attachments, but I cannot see any setting of Mail which would account for them being rejected. Also, I can't be entiurely sure that only emails with attachments don't get through; there may be others, 'unattached'.
    Thanks for your continued assistance.

  • Text variables with multiple lines

    Like in my other question: we typeset a lot of juridical books.
    We use text variables in the header for showing the current chapter and for example current author of that chapter.
    So we let the paragraph style of the chapter show in the header.
    When the title is longer then 2 lines in the header, Indesign pushes everything on 1 line. It becomes unreadable.
    We have a solution by putting 2 character style variables underneath each other on the master page or just manually make a new master with the good title on 2 or more lines.
    I have to ask Adobe to look to this 'issue', is this the right place?

    No this isn't the right place - this is a user to user forum -
    You can add your request here https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    What I do is - setup a nested style for
    Runhead line 1 up to 50 characters 
    Runhead line 2 up to end nested style
    Of course you need to have 2 running head styles based on Character Styles
    And insert those into the master page
    Or this will save you tonnes of work
    http://in-tools.com/products/plugins/power-headers/

  • How to create text box with multiple lines in selection screen.

    Hi,
    i need to create a text box to capture comment with 300 characters. i want to achive this without using module pool,is there any posibilities to that
    regards
    raja

    Since text on Report screens is limited basically to what's left on a line in the selection screen, you'll have to use Module Pool.
    however, you can call a screen from a report program and use the editor within a Custom Control on the screen.  Not a tough thing to do.

  • How to print a text file with long lines?

    I am trying to print a text file which contains many long lines. I find that the long lines are truncated on the printouts. How do I wrap up these long lines? Could you give me some examples?
    Thank you very much!

    Here's an example. The "\n" makes anything after it go to the next line. I hope this helps. Look at the Private void getTable() section.
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class LabNine extends Frame implements ActionListener, WindowListener {
         private TextField txtInfo;
         private List lstInfo;
         private Button btnAddInfo;
         private BorderLayout borderlayout;
         private Connection databaseConnection;
         Statement statement;
         ResultSet resultSet;
    public LabNine( ) {
         super("Lab Nine");
         // addWindowListener to close application
         addWindowListener(this);
         // create layout
         borderlayout = new BorderLayout();
         setLayout(borderlayout);
         // create text field so the file input that is selected will be seen in here
         txtInfo = new TextField();
         txtInfo.setEnabled(false);
         Color color = new Color(255, 136, 183);
         txtInfo.setBackground(color);
         add(txtInfo, BorderLayout.NORTH);
         // create list so the file input can be populated in here
         lstInfo = new List();
         add(lstInfo, BorderLayout.CENTER);
         // create button to add selected input file in the text field
         btnAddInfo = new Button("Add Info");
         btnAddInfo.setBackground(Color.cyan);
         btnAddInfo.setFont(new Font("TimesRoman", Font.BOLD, 16));
         btnAddInfo.addActionListener( this );          
         add(btnAddInfo, BorderLayout.SOUTH);
         // set frame attributes
         setSize(450, 250);
         setResizable( false );
         show();
         // get the table/ get the query
         loadConnection();
         getTable();
    public void actionPerformed(java.awt.event.ActionEvent e) {
         // if add button is pushed then it will check to see if an item was selected.
         // if not, then an error message will be displayed else the selected item will be in the text box
         if ( e.getSource() == btnAddInfo ) {
              if ( lstInfo.getSelectedIndex() == -1 ) {
                   System.out.print( "You have not selected an item" );
              else {
                   txtInfo.setText(( lstInfo.getSelectedItem() ));
    private void getTable() {
         try {
              String query = "SELECT FIRST, LAST, EMAIL FROM Names";
              statement = databaseConnection.createStatement();
              resultSet = statement.executeQuery( query );
              while ( resultSet.next() ) {
                   lstInfo.add( resultSet.getString( "FIRST" ) + " " + resultSet.getString( "LAST") + " " +
                        resultSet.getString( "EMAIL" ) + "\n" );
              statement.close();     
         catch ( Exception e ) {
              System.err.println( e );
    private void loadConnection() {
         // define the data source for the driver
         String sourceURL = "jdbc:odbc:people";
         String username = "";
         String password = "";
         // load the driver
         try {
              // load the drive class
              Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
              // create a connection through the drivermanager
              databaseConnection = DriverManager.getConnection( sourceURL , username, password );     
         catch( ClassNotFoundException cnfe ) {
              System.err.println( cnfe );
         catch( SQLException sqle ) {
              System.err.println( sqle );
    public static void main(java.lang.String[] args) {
         LabNine aLabNine = new LabNine( );
    public void windowActivated(java.awt.event.WindowEvent e) {
    public void windowClosed(java.awt.event.WindowEvent e) {
         // closes the application
         System.exit( 0 );
    public void windowClosing(java.awt.event.WindowEvent e) {
         // closes the application
         System.exit( 0 );

  • How to handle text files with Header lines

    Hi,
    Eventhough the number of header lines is specified, when I do Reverse to get columns, its considering only header line.
    I have file format like
    ffserver started.
    192.168.11.30 - - [Fri Apr 20 19:28:01 2007] "GET /robots.txt HTTP/1.1" 404 150
    192.168.11.30 - - [Fri Apr 20 19:28:02 2007] "GET /V23WASTINGPETROL HTTP/1.1" 200 310
    first line is header line and there are spaces within a field value, and the field separator also is space.
    regards,
    Vivek

    in this scenario of urs ,ur file has multiple delimiters like -- and spaces.
    in this case u need to convert the file in a file with single delimiter .
    this can be done by writing a code in java in ODI procedures.
    once you have the same delimiter all over the file.
    u can extract multiple headers using typical Procedure

  • I cannot e-mail microsoft word attachments with Windows Live mail

    I receive error message - Logon failed, you must logon to Microsoft Exchange to access address book. Error Code: Unspecified error.  Another message pops up:  There is no e-mail program associated to perform the requested action.  Please install
    an e-mail program or if one is already installed, create an association in the Default Program Control Panel.
     My Windows Live mail is working - I receive messages and can send them but I cannot send Microsoft Office Word 2007 attachments which I could before.  Yahoo mail sent a message to use Firefox instead of Internet Explorer and I tried it and then
    uninstalled it and something apparently got messed up.

    I recommend you post in a Windows Live Mail forum.  This forum is for Microsoft Exchange Server 2013.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • What to do with Saved iCal attachments?

    Hi,
    Since I started using iCloud, I noticed that iCal automatically created 2 new folders in the "documents" folder called "Saved iCal attachments with a date behind them.
    What are they doing there and is it safe to remove them?
    Thank you!
    Michaël Duwyn

    Hi Michaël,
    iCloud Calendar does not store file attachments. The files will have been removed from your iCal calendars while moving them to iCloud. The attachments will have been saved there to avoid data loss.
    Whether you delete them would very much depend on if you have an alternate copy and if the files contain something useful to you.
    Best wishes
    John M

  • No line endings in ID-exported XML!

    I exported a pretty big XML file. When I open it in my text editor (TextMate), there are no line endings. It took a while to open probably because of that. I asked the TextMate folks about it and they said that the file itself literally has no line endings. I've exported it again and the same thing happens. Why in the world doesn't InDesign populate the XML with any line endings?
    Thanks,
    Peter

    Umm, which editor to use is a Religious War. Please don't expect to say anything is "the best" and expect to get away with it unchallenged.
    TextMate is commercial Mac software. By defnition it's not multi-platform. It's also not open source. Perhaps it is best or very good in some domains, but I certainly have a lot of editing requirements for which each of those are deal-breakers, and so there's no way I would consider it "best." BBEdit loses on these two.
    (The traditional rivalry in the universe of text editors is Emacs versus vi.)
    In this case, it's pretty disappointing that you sent them a file and they said "the file itself literally has no line endings" because that's simply false. (Well, unless,  I guess, you sent them a file with no paragraph breaks?).
    Maybe they meant it in the xkcd.com/725 sense? You know:
    (Don't forget the little snarky alt-text underneath; highlight to show: "The chemistry experiment had me figuratively -- and then shortly thereafter literally -- glued to my seat.")
    Anyhow, if TextEdit can manage it, well, ouch, y'know?
    In fairness, in Emacs I did have to use M-x find-file-literally and M-x hexl-find-file to look at this file to decide, and I defnitely am off my game when it comes to Unicode and non-single byte encodings, but I wasn't quite sure how to ask emacs to deal with this properly, and the default display was not encouraging. Still, it certainly answered my question.

  • Printing PDFs with Multiple lines enabled

    Hi, I need some help with Designer. I have no clue how to really use it, I've been playing with it for a week, but some things I can't figure out.
    I have a text field that fits about 1 line of text on it. I enabled multiple lines in the field, because people are going to be typing a lot. However, when I print it, only 1 of the lines shows up. Is there any way that I can fix the settings so that the box expands as the text is typed, and that if it can expand, the entire page shrinks to keep it to the same amount of page numbers instead of bumping everything down the page? If someone out there knows, please help!!!
    Thanks!!!

    Hi,
    Maybe this can help:
    1 - Save your form as a Dynamic Form
    2 - Place a subform with Flow content
    3 - Place a text box with multiple line in the sub form. Make it expand to fit (layout tab) and Data Format XHTML (binding tab)
    4 - Put the contents in the field
    5- Click outside the field and print it.
    regards

Maybe you are looking for

  • Error when Activate an DataStoreObject while transport

    Hi experts: I Try to transport an DataStoreObject From QAS to PROD. 1. I transport all Infoobjects from DEV - QAS . PROD OK. 2. I transport an ODSO  from DEV - QAS OK. 3. When y try to transport to PRD y have the folowing error: Error / Warning in pr

  • Mandatory creation profile on scheduling agreements

    Hello Gurus, I need to put a value on creation profile field on schedulling agreements. I have to choices:      - Put the value on supplier data. It is a plant-dependant value i my client doesn't want to create this data.      - Made it mandatory. Th

  • Recommendations Needed Please

    I just purchased a 13 inch MacBook Pro (2011) and I want to get a Case and a carring sleeve for my new laptop. Can someone please direct me to a high quality Case and Sleeve with a link to a official place to buy it. I am thinking about getting the S

  • Creating a table in the application pages and pasting it into iWeb 08

    I have learned today that if you create a table in pages and then copy and paste it into iWeb 08 it uses the the ORIGINAL entry in the upper left cell as the name of the png file that is created as the image for the iWeb folder. If that ORIGINAL name

  • Status Codes for repairing T500

    I use the Electronic Service Call yesterday and a guy called me and asked some questions about the symptoms . He gave me a IBM problem number and told me I can get a box within 2 business days. I check the  The Electronic Service Call application (ES