[Script] How the auto respond to an address specified when receiving any mail

I need to send an email with the text previously set to exactly 1 address but I need it to be sent to every mail I receive, except those that are sent from an address.

For example, any email me, with the exception of the ' [email protected]', I would answer "admin@mydomain" with the response of multi doublet with paragraphs of:

"You lucky dog.

Someone has sent you the just

I think someone like you.

Don't let your wife know.

I tried to set up a mail rule, but mail only allows me to reply to the sender. It gives me the opportunity to call a script but I can't make an Apple script in Automator. Whatever I do in here, Mail can not see it.

I managed to write send an Automator application which opens the message in Mail for me when I double click on it and then I just need to hit, but the whole point is that I want not automated. If I get an email from [email protected] then I want to admin@mydomain to receive an e-mail to tell him that he is loved by someone and I want all this to happen automatically.

So basically what I need is an Apple Script which includes a static message and sends it to a static address, so I can tell Mail to use as the action when he receives an e-mail. Unfortunately, as far as I know about AppleScript is 'say Mail' and 'end tell '...

Can someone help me, please?

You can watch it too deeply. You won't answer at all – looks like you want to open a new message coming out when a new coming. It is not serious what who is, or who he came (with the exception of yourself).

So, here's an example - it checks the incoming message for make sure there is at least a message that is not your own address. Is there then it creates a new message and sends it.

Use AppleScript version "2.4" - Yosemite (10.10) or later version

Use Scripting additions

property myAddress: "[email protected]."

property myMessageBody: "you lucky dog.

Someone has sent you the just

I think someone like you.

Don't let your wife know.

terms of application "Mail".

we messageList perform the action of mail with messages in the mailbox mbox for rule agouverner

-make a new message

say application "Mail".

game of newMessage to (make new outgoing message with properties {subject: "new mail", content: myMessageBody})

tell newMessage

do the new to recipient with properties {"address:"[email protected]""}

end say

Send newMessage

end say

end perform the action of mail with messages

end terms of


It is written as a mail rule, so add it to your ~/Library/Application Scripts/com.apple.mail directory, and then configuration a rule in Mail.app to run this script for incoming mail.

You implement audit "not post me" in the rules dialog box (for example only call the script when the sender is not yourself).

Tags: Mac OS & System Software

Similar Questions

  • Sending ' reported an error (0x800CCC69): "the server responded: 550 IP address 78.150.58.218 in XBL'"

    Although I am able to receive emails Outlook 2007 will not send any emails and let this error message: sending ' reported an error (0x800CCC69): "the server responded: 550 IP address 78.150.58.218 in XBL'"

    Can anyone advise me as to why this is happening and how to put this right?

    Thank you for your support. The problem is solved mysteriously himself.  I'll keep your advice where I have the same problem in the future.

    Thank you very much

  • How the auto uppercase the first letter of each sentence

    I use the latest version of the Pages on the Sierra of the OS and I am trying to find a way to automatically capitalize the first letter of each sentence with nothing doesn't. I've been a user of Pages for years and every time announced a new update is all what I care about is adding this feature simple but important. So, now that the new update is here I can not yet understand how to take advantage of the auto and I can't find workarounds online to help me do it. Any idea?

    You can use WordService from DEVONtechnologies, free in the Mac App Store. You can then go to System Preferences > keyboard > shortcuts > Services & enable those you want. You can then select the text you want to apply the service to & go to Pages > Services & select initial caps of sentences. It is also possible to assign a keyboard shortcut to services. With the help of this device, or similar functionality in any word processing application still not to revert to words in a sentence that should be capitalized as 'I' or pronunciations. You will also have the problem of it capitalized words after the period for the abbreviation.

    I do it the traditional way, using the SHIFT key when necessary. It is advisable to learn to type using the SHIFT key, rather than relying on the software to do it for you. Just like the use of a spellchecker. It's good, but it will not go back on the words that are spelled correctly but not the correct spelling of the situation.

  • How the auto join a jabber chat room

    Does anyone know how auto join a jabber chat room when the account becomes available, I have not found the way, and whenever I go online I have to join the chat room.

    9.1 messages

    Thank you very much

    Hello

    If the cat is left in the main message window as an item in the side bar and of course the cat showing the app needs to 'join' as it is open.

    He may have limits however if the cat needs a password and that you had to sign out when leaving at the end of the previous session.

    As to automatically join such a room I don't think it's possible.

    20:44 Thursday. February 18, 2016

     iMac 2.5 Ghz i5 2011 (Mavericks) 10.9
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     a few iPhones and an iPad

  • How the auto you can organize the desktop icon anywhere?

    How can I auto arrange desktop icons in Windows 7 where I want them instead of how Windows wants them to be?

    I have turned auto organize off and arranged the icons in the order and location I would, but when I click Auto arrange to keep

    to place their return to order of Windows needs changes.

    That's what arrange made by design. A tool like this might meet your needs.
     
    The intensive care unit icon Configuration utility
    http://funk.EU/ICU-icon-configuration-utility/ 
     
  • 12 ELEMENTS HAS CHANGED HOW THE FILES IN A FOLDER ARE DISPLAYED WHEN OPENING A FOLDER

    In the past, when I opened a file to select a file to process, the files I created were in order - first the RAW file, then the JPG file. I put the camera upwards in this way so that I could visually choose the RAW file in the process. Approximately 2 weeks, the two types of files are separated. First the RAW files, then the JPG files displayed. Given that I have maybe 20 or if the files in the folder, so it's difficult for me to choose the right RAW file in the process. I did a system restore and elements began to show the files in the desired sequence of JPG RAW. Today, it has returned again.

    Windows 7, PC. I did not any changes to the program that I know. I don't want to have to restore every week or two in order to resume the desired files opening sequence. Either way, when I open the files outside of the elements, they are in the order: RAW, JPG.

    I'd appreciate any help.

    rockyc wrote:

    Sorry to be so obtuse, but what page I'm on when I want to do a right-click on the menu bar? Thank you

    You're in Windows Explorer, not in a page of items or view:

    You right-click on the free space of the title bar with the file name, date etc.

    Opens the Windows menu on the right,

    and if you click on the last option (other = other), you get the full list of criteria, you can choose for another column.

  • The last automatic update I can't send / receive e-mails of Sience

    Yesterday, everything was working fine.
    There was an automatic update and then the sience
    I could ' t receive or send e-mail messages.
    I checked all the details of the server, and it should be ok.
    In any case, I did not anything there.

    I could log into your webmail account and see what information they have on the parameters. They have updated information or settings.

    Article copied and translated from:
    http://alfahosting.de/Antworten-auf-ihre-Fragen/?CID=7
    We recommend the SSL encrypted connection for retrieval and delivery of your emails to use. Select in the security of the connection 'SSL or TLS', and apply the instructions for the Inbox server and outgoing port:

    This, what they suggest to use SSL, as stated in the previous comment...
    Mail server incoming POP3 port 995
    Server port out 465

    Now, you seem to have use of this...
    In call unencrypted port following specifications apply:
    Mail server incoming POP3, port 110
    Outgoing port 25 mail server (otherwise the port 587)

  • Receive the same message several times, and does not receive any other emails.

    Using Outlook Express, I got the same email, while I can't receive any other emails of revenue due to downtime. I increased the time to 5 minutes.

    The file that retains a number of messages downloaded probably has been corrupted.  Remove the pop3uidl.dbx file (hidden) and see if that fixes the problem.

    Steve

  • How the auto rename teststep loop

    Hello

    in the sequence attached, I rename a teststep in a loop.

    The new stepname should be the former stepname + a prefix which is the loopcounter

    So former name is: 123

    New names should be

    loop: 1-123

    loop: 2-123

    loop: 3-123

    But the sequence creates:

    loop: 1-123

    loop: loop 2 -: 1-123

    loop: loop 3 -: 2 - loop: 1-123

    No idea how to solve this problem?

    THX

    You can use:

    "Loop:" + Str (Locals.i) + "-" + (find (RunState.NextStep.Name, "-") "."<0?RunState.NextStep.Name:Mid(RunState.NextStep.Name,Find(RunState.NextStep.Name," -="" ")+len("="" -="">

    The comparison is necessary because the first round is not a dashboard in it.

    Pulido Technologies LLC

  • How the auto startup oracle XE if she gets down

    Hello

    SQL > select * from V version $;

    BANNER

    --------------------------------------------------------------------------------

    Oracle Database 11 g Express Edition Release 11.2.0.2.0 - 64 bit Production

    PL/SQL Release 11.2.0.2.0 - Production

    CORE Production 11.2.0.2.0

    AMT for Linux: Version 11.2.0.2.0 - Production

    NLSRTL Version 11.2.0.2.0 - Production

    -bash-4: $1 cat/etc / *-release

    CentOS version 6.5 (Final)

    LSB_VERSION=base-4.0-AMD64:base-4.0-noarch:core-4.0-AMD64:core-4.0-noarch

    CentOS version 6.5 (Final)

    CentOS version 6.5 (Final)

    One day my oracle XE become down for example today it automatically closed database giving following error:

    Wed Jun 25 03:49:03 2014

    QMNC started with pid = 28, OS id = 12612

    Completed: ALTER DATABASE OPEN

    Wed Jun 25 03:49:03 2014

    20480 MB db_recovery_file_dest_size is 29.91% used. It is a

    user-specified limit on the amount of space that will be used by the present

    for the files related to the recovery of databases and does not reflect the amount of

    space available in the underlying file system or ASM diskgroup.

    From CJQ0 background process

    Wed Jun 25 03:49:03 2014

    CJQ0 started with pid = 29, OS id = 12626

    I mean before you see and error fixing I intend to auto restart the instance.

    Please notify

    Best regards

    Y did he think any useful links in this especially java

    Personally I do not use one of them, so I couldn't say, but you should find a bunch of stuff on Google.

  • How the Auto Login Horizon view 5.3

    Hello

    I added the following to my icon automatically fill in the URL of the server, the user name and the password: serverURL - XXXXXXXXXX - userName XXXXXXXXXX-password XXXXXX

    Is there a way to auto, press the "connect" button? who's going to take then the dialog box choose which Office I would like to load?

    Thank you

    Ash

    Sure the parameter - desktopName still works with all versions of the client, even if I have not tested with the latest version. It corresponds with the FQDN of the pool. Should launch automatically directly in the office, if the credentials are provided. Add the automatic switch for silent operation.

    http://pubs.VMware.com/view-50/index.jsp?topic=/com.VMware.view.Administration.doc/GUID-07710760-80F1-4775-9CCB-0046BF6D9167.html

  • How the auto fill contents table

    Guy from hell,

    I am creating this table which will automatically fill in the description of the object and get the price after you enter the item code in the fist column. I used the 'purchase model' samples to achieve this. The way they did was create array variable and then pulling the data. It works fine with me, but the question is when I try to write my "2500" lines of code. In my view, there is a restriction on the total lines allowed. I've pasted below a copy of the code that I use. I have not changed anything in the design, with the exception of the number of items (the code below works fine)

    Root.Main #variables [0]. .partNoScript - (JavaScript, client)

    This script object control the interaction between the number of piece, description and unit price fields.

    When you complete the partDesc and partPrice, tables of partNo, ensure that they have the same number of array indices in

    each table for each part number, there should be a corresponding description and price.

    Table of part numbers.

    var partNo = new Array("",)

    "27001");

    An array of descriptions of the part.

    var partDesc = new Array (null,

    'MR. SHORING BEAM 4');

    Table of prices for the part.

    var partPrice = new Array (null,

    113.44);

    Fill the drop-down list part number.

    function populatePartNo (dropdownField)

    {

    var i;

    for (i = 0; i < partNo.length; i ++)

    dropdownField.addItem (partNo [i]);

    }

    Fill in the fields description and price unit.

    getDesc (partNumber, descField, itemPrice) function

    {

    var i;

    for (i = 0; I < partNo.length; i ++) / / Go through the complete list of part numbers to find the one that is currently selected.

    {

    If (partNo [i] == partNumber) / / where to find us the part number currently selected.

    {

    descField.rawValue = partDesc [i];          Enter a description in the description field

    itemPrice.rawValue = partPrice [i];          and the unit price in the price field unit.

    break;                                                                                No need to go further if there is a football game.

    }

    }

    }

    Untitled-1.jpg

    Thanks in advance

    Just a quick note about your script, it fails because it is not valid javascript. In one of the tables, you have the following errors

    ...

    "Hairpin multifaceted 'R' safety."

    ...

    #NAME?

    ...

    Here is the syntax invalid js. What causes the entire to be corrupted script block and function is not found

    Note to use nested quotes ("")

    "Multifaceted \"R\' security hairpin. "

    Once those have been fixed your code works correctly. Use the check Syntax button to highlight the problems of js.

  • How the auto fill a field based on the drop-down list unless the specific item is selected

    Hi all

    My apologies if I posted this in in the wrong place, but I am new to these forums, JavaScript and Adobe LiveCycle.

    I am trying to build a form using LiveCycle Acrobat but have problems with the drop-down lists.

    Inititaly I just wanted to fill in the fields in a table based on a matching menu selection dropdown in another table.

    I used the following code and it worked fine:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    The problem is that now I want the code above works UNLESS one of the items in the drop-down list is enabled specifically in this case, I want the text box in the other table to display a message such as "Details of the entry in the field below.

    I tried to create an If Else statement using the following code:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    If (fFrom.item (i) .rawvalue = "Option 3") {}

    fTo.item (i) .rawValue = "enter the details in the field below.

    }

    else {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    }

    The code now filled the field with "Enter the details in the field below" any item I select in the drop-down list.

    Your help is greatly appreciated.

    See you soon,.

    ozzy_q

    Hello

    You use .rawValue in the change event. This will cause problems because the selection of the users has not received .rawValue from the drop-down list at the time when the change event is triggered.

    Move your script as it should to the output of the dropdown event.

    Hope that helps,

    Niall

  • How the auto repeat 'position title (continued)' in the text block

    Hi guys,.

    I've looked everywhere and couldn't find it.

    Here's what I'm trying to achieve:

    I have a few blocks long text which flows into a framework of text block and I would like to have the title for each of the items be repeated first of all in the first line of the block of text on each page as follows (suite).

    I know that I can use master pages and can have a separated with my title text box. But then, if the number of page change, I can end up with a title (continued) where shouldn't.

    The next and previous page number line break does not work for me, because I need it to be the title of the article and it must be in the same frame of definition as title x.

    It's somewhat similar occurs when your table across more than one page. The header is repeated on each image.

    I really tried to find it but no luck. Whenever I have tryied the anwes only I got was to line breaks, next and previous page number.

    Much appreciated if anyone can save me.

    Thank you

    Mau

    I think that we know exactly what you're trying to do, and we told you how to do it in code.

    Word has a few features that allow you to have different headers and footers for section home pages and use them automatically when you set up a new section. This is equivalent to using two masters in ID and one without the variable grant your section start pages. The difference is that you have to do that yourself.

  • How the Auto commit works at APEX

    Hello

    I have a process PL\SQL consisting of assume that insert / update / delete statements.
    insert into emp ()
    values ()
    
    update emp
    set
    
    delete from emp
    where empno = 
    I just want to know... When the apex do Auto commit... I mean after every DML operation.

    Thank you
    Deepak

    Deepak:

    As Ben notes, the validation between the insert and delete statements is not needed to see the result of the front remove the insert statement. In addition, if the insert and delete are required to be part of the same operation, a commit after the insert would violate this requirement. You will not be able to "rollback" changes caused by "insert" If for some reason you need to do after the execution of the delete statement.

    CITY

Maybe you are looking for

  • Time Machine - how to restore the files it deleted?

    I used Time Machine to restore your desktop earlier. In doing so he erased the current Office - which I had not saved. I know, I know. But is it possible to get the most recent desktop and its folders and files again?

  • iMessage works is not without FULL wifi

    Hi, so my iPhone iMessage 5 c works fine while I have given mobile, but when the data too iMessage starts to spoil. When you are connected to FULL (3 bars) iMessage wifi still works perfectly, but as soon as the wifi falls to 2 bars or lower iMessage

  • Treo 600 screen does not turn off

    Usually my treo 600 stops automatically after 2 minutes, but at times it stays on and I can't turn it off by pressing the power button.  The only way I can turn it off is by doing a HotSync first. It's OK when I'm home with my computer, but can't whe

  • HP DV6 3210US CAPS LOCK FLASHING &amp; WIFI AMBER CLEAR

    I have 32310us dv6 that will not start. It starts at a flashing caps lock button and onrange and soild key wifi in light of strong Pentecostal power button.  No other lights on the area of the main panel. No beeps are heard spin cd just in a first ti

  • When I unplug my TV video cord from my laptop, the resolution does not return to normal

    Original title: bought a TV video cord for my toshiba lap top. And when I unplug my lap top, the computer screen is not back to its original appearance. There's just a big... any suggestions?