converting your mail signatures for Mail in Mountain Lion

Discussion in 'OS X Mountain Lion (10.8)' started by markemark, Jul 26, 2012.

  1. markemark, Jul 26, 2012
    Last edited: Jul 26, 2012

    markemark macrumors newbie

    Joined:
    Mar 18, 2010
    #1
    In Mountain Lion the Mail Signatures are no longer stored in .webarchive but in .mailsignature files

    using
    - http://forums.macrumors.com/showthread.php?t=1403888
    - http://regischapmandesign.com/blog/files/convert-web-archive-files-into-HTML.html

    I have found a 'hack' way to convert them so you can have your signatures working, but I am sure there is a better solution out there.

    a) in Mail recreate blank signatures to match your old ones.
    - this will create new .mailsignature files
    - I put some large text in them so I could identify them later
    b) Now close Mail down
    c) open up finder and navigate to
    ~/Library/Mail/V2/MailData/Signatures
    - here you should now see your old .webarchive and new .mailsignature files
    d) open up a terminal window and navigate to the same location
    e) convert your .webarchive files to html files using the command in the terminal window
    textutil -convert html <name>.webarchive
    f) in a editor (I used TextMate) edit the .mailsignature and cut and paste to replace the <body>...</body> with that from the old .webarchive file.
    g) repeat for each of your signatures
    i) Now using finder click 'get Info' and then select locked, so that Mail does not over write this
    h) Now open up Mail again and check all is ok


    Notes
    --------
    - If you have any styling, this has to be inline
    - I tried with <head> but styling is not being shown

    Hope this helps

    Regards

    Mark
    http://www.bamboorocketapps.com
     
  2. PercyHanna macrumors member

    Joined:
    Feb 11, 2010
    #2
    Simpler trick

    I tried this and it didn't seem to work for me for some reason.

    Anyway, I found an easier solution:

    1. Open all the signature web archives in Safari
    2. Create the same number of signatures in Mail
    3. Just copy the signature from Safari and paste it in Mail. It should preserve all formatting
     
  3. elchinero macrumors newbie

    Joined:
    Aug 30, 2012
    #3
    << Just copy the signature from Safari and paste it in Mail. It should preserve all formatting >>


    Perform this for all 246 Signatures? Uh, er, um ... this would be "somewhat" time consuming (I did a few ... Zzzzzzzzz)

    I "think" that we (so to speak) were looking for a batch action ...
     
  4. sysbalear macrumors newbie

    Joined:
    Mar 19, 2015
    #4
    Great Mark!
    it worked perfect.
    nice work around!
    Thanks for the info!
     

Share This Page