Skip navigation

How can I configure Mail in Mountain Lion to default the "from" field to match the account indicated by the "to" field of the message being replied to?

13309 Views 87 Replies Latest reply: Apr 3, 2013 8:03 AM by ohkami RSS
  • Kawanaut Level 1 Level 1 (50 points)

    Idea: What if it was possible to create an AppleScript that, whenever you hit "Reply" or CMD+R, the script would check who the recipient email was, and then auto-pick that as "from" in the reply-window?

     

    The last part I know is possible via shortcuts already, just go into System Preferences and set up a keyboard shortcut for whatever name is in the "from" drop-down box, ie. the full text there "first lastname <email@address.com>", but then you need to memorize shortcuts for your most-used "from" accounts, plus you have to both hit cmd+r to reply and then the shortcut afterwards to select "from" (instead of selecting it with the mouse) - so it would be great if this could be automated via an AppleScript that runs each time you hit CMD+R.

  • windermerelodge Level 1 Level 1 (0 points)

    I thought I might have found the answer - I filter my mail into a large number of malboxes and in  each mailbox under account info there is an account listed - by default this is the first account listed in your account list. You can change the account associated with the mail box - but you can't save the change

     

    Don't tell me I'm going to have to revert to Outlook 2011 again :-(

  • Chrispcritters Level 1 Level 1 (15 points)
  • jklinephd Level 1 Level 1 (0 points)

    Ok, This is how i got it to sort of work.  IMAP.  I configured everything to work with IMAP on my server.  I created subfolders within each IMAP sub folder to allow me to sort. I use rules to sort into the folders.  AS long as the folders are on the server then the From Address is correct.  When I am using Mail app at home, I have smart mailboxes that grab the emaisl also and display them further up the Left side list of mailboxes. 

     

    On my iOS devices, I do not have hte rules of course, but I ususally leave my desktop machine running and when it is not in sleep mode it appleis the rules and the emails are sorted. 

     

    I dreaded trying IMAP since I had not liked it onder Snow Leopard, but under Mountain Lion it works well.  I just have to remmeber that when I delete the emails on my iPhone that they are deleted (though the server does not empty the tash right away so I can find the email later). 

     

    Jeff

  • Tommytune72 Calculating status...

    I just wanted to add little drop of water in the bucket with the hope that Apple might take notice.  I have the same issue. Forwarding my work email through icloud worked perfectly in Lion.  I use both my work email and my iCloud (mac.com) addresses.  If somebody sent email to the iCloud address, it would reply to the iCloud address; and if somebody sent email to the work address, it would set the reply-to correctly.  However, since upgrading to ML, whenever anyone sends email to my work address and I reply, the reply-to address is iCloud/mac.com.

     

    Very inconvenient and frustrating.

     

    I've tried everything above except the automation, and still no luck.  Maybe the automation will work; but I switched to Mac so that I wouldn't have to hack at things like I used to in Windows, so I'm hoping we can get a fix for this soon rather than running a script every time I want to reply to an email.

     

    I would also like to add that if your computer is out of warranty, like mine, don't bother calling Apple Support.  I asked for an exception since the issue was related to my recent purchase and installation of ML, and the guy hung up on me!  Everyone has a bad day from time to time; but maybe a little explanation would be helpful.  And polite.

  • MoJoKs Calculating status...

    I am having the same problem and find it HORRIBLY time consuming and frustrating.  I need a simple fix.


    I have the following types of accounts in my mountain lion mail program:

    icloud

    gmail

    cox.net

    two with my business domain at bluehost.com

     

    None of them are forwarded. All of them receive mail directly.  All I want to do is reply directly as well without any adjustments.

     

    APPLE why is this so difficult?  It worked fine for me in Snow Leopard.  I KNOW YOU DO IT!  Come on!  Fix this!

     

    PLEASE!

  • Athtart Calculating status...

    @MoJoKs - Nice summary! I posted a long while ago hoping for some fix, but NOTHING from Apple and as you note, this is something that worked perfectly in Snow Leopard. Thanks for restating the issue perfectly. We don't need some convoluted hoops to jump through we just need Apple to FIX THE ISSUE PLEASE! How can you (Apple) miss such a glaring mistake?

  • jklinephd Level 1 Level 1 (0 points)

    The only thing that I got to work was to set my counts as IMAP not POP3.  That way each account has its own inbox (but there is a unified inbox). The outgoing reply emails are correctly addressed.  This works well on my iPad, iPhone, and iMac.  I have gmail, and several emails from my own domain.  I tried iMap amfew years ago, but found the Mail apps on iOs and OSX crappy, but now they work fine.  No problems. 

  • Athtart Level 1 Level 1 (0 points)

    @jklinephd - Try replying to an email in any other folder on your Mac, like a local folder of client email or any local folder. The reply to address is NOT the one from the original email as it USED TO BE IN Snow Leopard. When you hit "reply" to an email no matter WHERE it resides, the message should have the same address that the original email was addressed to and not some other address. Lion and Mountain Lion break this obvious functionality.

  • jklinephd Level 1 Level 1 (0 points)

    I know, that is why I use only folders on the server or Smart Mailboxes.  For each iMap account i create several additional folders, the rules on my local iMac sort the emails into the folders, but the folders are still on the server under each IMAP account.  Those  folders show up on my iPad and iPhone.  None of my folders are local. 

     

    The Negative is that the local imac only activates these rules when the machine is awake and when Mail is forefront.  So when I am away from my desk I have to check the inbox to find some emails.  THey get moved later when I am at home.  I may set up an automator or applescript to run every 2 hours to bring Mail to the front and make it rune all of the rules. 

     

    The negative of having no local folders is that I cannot access email when I have no internet, though that has been rare in my case.  There are easy ways to down load IMAP accounts and back them up.  You could run POP versions of your accounts and just take them offline, or get a freeware email app that runs POP and have it download emails (but set to leave them on the server). 

     

    I agree that the change is stupid, which is why I posted originally and started following this thread.  The IMAP works, but it drove me nuts for a few weeks.  I was hesitant to switch to IMAP, but I have been happy with the results and problem is solved, I still want Apple to fix it, but until they do, IMAP works.  There are also advantages to IMAP over POP.  I can search my IPAD to find emails sent from home.  Works nice for my business. 

  • malzbier Calculating status...

    This topic is already being talked about here:

    https://discussions.apple.com/thread/4404087?start=30&tstart=0

     

    very annoying indeed. Apple hasn't addressed it yet, it seems.

  • ohkami Calculating status...

    Building on the work at http://techpatio.com/2012/guides-how-to/mountain-lion-mail-default-from-field-se nder-bug I made an Applescript that solves (for me) two really annoying bugs that Apple introduced in Mail with Mountain Lion. Specifically, it achieves the following:

     

    1. Reply or reply-to-all mails are sent from your account as found in the to field of the message you are replying to (as opposed to the default Mountain Lion Mail behavior where Mail uses the mailbox in which the replied-to-mail is stored to set the sending account, which is the issue described in this thread)

     

    2. Reply-to-all mails don't contain your email in to or cc fields (as opposed to the default Mountain Lion Mail behavior where Mail often places your address in the cc or to field so you have to remove it manually, which is the issue described e.g. here: https://discussions.apple.com/message/19113964#19113964)

     

    It's probably not pretty or optimized in any way but it does the job for me. http://techpatio.com/2012/guides-how-to/mountain-lion-mail-default-from-field-se nder-bug includes instructions how to replace the default Mail key combinations for reply and reply-to-all with executions of this script.

     

    Note that you will need to compile two versions of this script, one as below for the reply-to-all command replacement and another one for the reply command replacement in which you replace the line:

                set theReply to reply selectedMessage with reply to all

    by the line

                set theReply to reply selectedMessage

     

    Otherwise the two scripts are identical.

     

    Here is the script for reply-to-all:

     

    on run

        tell application "Mail"

            set theSelection to selection

           

            if ((count of theSelection) > 0) then

                set selectedMessage to item 1 of theSelection

               

                set addresses to address of every recipient of selectedMessage

                set theccRecipients to address of cc recipients of selectedMessage

                set thetoRecipients to address of to recipients of selectedMessage

                set theSender to sender of selectedMessage

               

                set sentTo to ""

                repeat with selectedAccount in accounts

                    set accountemails to email addresses of selectedAccount

                    repeat with accountemail in accountemails

                        if addresses contains accountemail then

                            set sentTo to full name of selectedAccount & " "

                            set senttoAddress to accountemail

                            exit repeat

                        end if

                    end repeat

                end repeat

               

                set theReply to reply selectedMessage with reply to all

                tell theReply to set sender to sentTo

                tell theReply to delete cc recipients

                tell theReply to delete to recipients

               

                repeat with a from 1 to count theccRecipients

                    set insertccRecipient to item a of theccRecipients

                    if insertccRecipient does not contain senttoAddress then

                        tell theReply to make new cc recipient with properties {address:insertccRecipient}

                    end if

                end repeat

               

                tell theReply to make new to recipient with properties {address:theSender}

                repeat with a from 1 to count thetoRecipients

                    set inserttoRecipient to item a of thetoRecipients

                    if inserttoRecipient does not contain senttoAddress then

                        tell theReply to make new to recipient with properties {address:inserttoRecipient}

                    end if

                end repeat

               

                tell theReply to set visible to true

               

            else

                display dialog ("Select a message before running this script.")

            end if

        end tell

    end run

  • ohkami Level 1 Level 1 (0 points)

    I just realized that I made a mistake in my previous post. The script with which to replace the reply function in Mountain Lion Mail is a bit more different from the one for the reply-to-all function I posted.

     

    Here is the script to use for the normal reply:

     

    on run

        tell application "Mail"

            set theSelection to selection

           

            if ((count of theSelection) > 0) then

                set selectedMessage to item 1 of theSelection

               

                set addresses to address of every recipient of selectedMessage

               

                set sentTo to ""

                repeat with selectedAccount in accounts

                    set accountemails to email addresses of selectedAccount

                    repeat with accountemail in accountemails

                        if addresses contains accountemail then

                            set sentTo to full name of selectedAccount & " "

                            exit repeat

                        end if

                    end repeat

                end repeat

               

                set theReply to reply selectedMessage

                tell theReply to set sender to sentTo

                tell theReply to set visible to true

            else

                display dialog ("Select a message before running this script.")

            end if

        end tell

    end run

Actions

More Like This

  • Retrieving data ...

Bookmarked By (2)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.