hmLoadTopic({
hmKeywords:"Auto Response Messages,Autoresponders,Creating,Creating Auto Response Messages,oof.mrk files,Setting up,Setting up Auto Response Messages,Auto Response Script Samples,Autoresponders",
hmTitle:"Creating Auto Response Messages",
hmDescription:"OOF.mrk files are plain ASCII text files contained in each user\'s root \\data\\ folder, which define the messages that are returned as the result of an autoresponder. When an...",
hmPrevLink:"ar_options.html",
hmNextLink:"ar_auto_response_script_samples.html",
hmParentLink:"index.html",
hmBreadCrumbs:"Accounts Menu &gt; Account Settings &gt; Autoresponders",
hmTitlePath:"Accounts Menu > Account Settings > Autoresponders > Creating Auto Response Messages",
hmHeader:"<h1 class=\"p_Heading1\" style=\"page-break-after: avoid;\"><span class=\"f_Heading1\">Creating Auto Response Messages<\/span><\/h1>\n\r",
hmBody:"<p class=\"p_BodyText\"><span class=\"f_BodyText\">OOF.mrk files are plain ASCII text files contained in each user\'s root <\/span><span class=\"f_PlainText\">\\data\\<\/span><span class=\"f_BodyText\"> folder, which define the messages that are returned as the result of an autoresponder. When an auto response message is triggered by an autoresponder, the file is processed and scanned for macros, which will then be replaced by actual data from the incoming message that triggered the response. Lines beginning with the &quot;<\/span><span class=\"f_PlainText\">#<\/span><span class=\"f_BodyText\">&quot; character are ignored and are used for comments. There are <a href=\"ar_creating_auto_response_scripts.html#samples\" class=\"topiclink\">two sample messages<\/a> listed below.<\/span><\/p>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><span class=\"f_Heading2\">Auto Response Macros<\/span><\/h2>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0.5000rem 0 0.1875rem 0;\"><table style=\"border:none; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$HEADERS\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro will be replaced by all of the incoming message\'s headers. Text immediately preceding this macro will be duplicated at the start of each expanded line.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$HEADER:XX\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro will cause the value of the header specified in place of &quot;<\/span><span class=\"f_PlainText\">xx<\/span><span class=\"f_BodyText\">&quot; to be expanded in the message. For example: &nbsp;If the incoming message has &quot;<\/span><span class=\"f_PlainText\">TO:<\/span><span class=\"f_BodyText\"> <\/span><span class=\"f_PlainText\">joe@example.com<\/span><span class=\"f_BodyText\">&quot; then the <\/span><span class=\"f_PlainText\">\$HEADER:TO\$<\/span><span class=\"f_BodyText\"> macro will expand to &quot;<\/span><span class=\"f_PlainText\">joe@example.com<\/span><span class=\"f_BodyText\">&quot;. If the original message has &quot;<\/span><span class=\"f_PlainText\">SUBJECT: This is the subject<\/span><span class=\"f_BodyText\">&quot; then the <\/span><span class=\"f_PlainText\">\$HEADER:SUBJECT\$<\/span><span class=\"f_BodyText\"> macro would be replaced with the text &quot;<\/span><span class=\"f_PlainText\">This is the subject<\/span><span class=\"f_BodyText\">&quot;.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$BODY\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro will be replaced by the entire message body. In an attempt to preserve character sets for different languages, MDaemon will read the message body as binary data rather than pure text, thus allowing a &nbsp;byte-for-byte copy of the message body.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$BODY-AS-TEXT\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">Like the <\/span><span class=\"f_PlainText\">\$BODY\$<\/span><span class=\"f_BodyText\"> macro, this macro will be replaced by the entire message body, but as text rather than binary. Text immediately preceding this macro will be duplicated at the start of each expanded line. So, using &quot;<\/span><span class=\"f_PlainText\">&gt;&gt;\$BODY-AS-TEXT\$<\/span><span class=\"f_BodyText\">&quot; in a script would place each line of the original message into the generated message, but each line would begin with &quot;<\/span><span class=\"f_PlainText\">&gt;&gt;<\/span><span class=\"f_BodyText\">&quot;. Text can also be added to the right of this macro.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$SENDER\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the full address contained in the incoming message\'s &quot;<\/span><span class=\"f_PlainText\">From:<\/span><span class=\"f_BodyText\">&quot; header.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$SENDERMAILBOX\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the mailbox of the sender. The mailbox is the portion of the email address to the left of the &quot;@&quot; symbol.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$SENDERDOMAIN\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the domain of the sender. This is the portion of the email address to the right of the &quot;@&quot; symbol.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$RECIPIENT\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the full address of the message recipient.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$RECIPIENTMAILBOX\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the mailbox of the message recipient. &nbsp;The mailbox is the portion of the email address to the left of the &quot;@&quot; symbol.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$RECIPIENTDOMAIN\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the domain of the message recipient. &nbsp;The domain is the portion of the email address to the right of the &quot;@&quot; symbol.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$SUBJECT\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the value of the &quot;<\/span><span class=\"f_PlainText\">Subject:<\/span><span class=\"f_BodyText\">&quot; header.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$MESSAGEID\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the value of the &quot;<\/span><span class=\"f_PlainText\">Message-ID<\/span><span class=\"f_BodyText\">&quot; header.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$CONTENTTYPE\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the value of the &quot;<\/span><span class=\"f_PlainText\">Content-Type<\/span><span class=\"f_BodyText\">&quot; header.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$PARTBOUNDARY\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the value of the MIME &quot;Part-Boundary&quot; value found in the &quot;<\/span><span class=\"f_PlainText\">Content-Type<\/span><span class=\"f_BodyText\">&quot; header for multipart messages.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$DATESTAMP\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro expands to an RFC-2822 style date-time stamp line.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$ACTUALTO\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">Some messages may contain an &quot;<\/span><span class=\"f_PlainText\">ActualTo<\/span><span class=\"f_BodyText\">&quot; field which generally represents the destination mailbox and host as it was entered by the original user prior to any reformatting or alias translation. This macro expands to that value.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$ACTUALFROM\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">Some messages may contain an &quot;<\/span><span class=\"f_PlainText\">ActualFrom<\/span><span class=\"f_BodyText\">&quot; field which generally represents the origination mailbox and host prior to any reformatting or alias translation. This macro expands to that value.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$REPLYTO\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro resolves to the value found in the &quot;<\/span><span class=\"f_PlainText\">ReplyTo<\/span><span class=\"f_BodyText\">&quot; header.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$PRODUCTID\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">This macro expands to the MDaemon version information string.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$AR_START\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">Returns the auto-responder start date\/time.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:11.5625rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\" style=\"text-align: right;\"><span class=\"f_PlainText\">\$AR_END\$<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:22.1875rem; padding:0.1875rem; border:none\"><p class=\"p_BodyText\"><span class=\"f_BodyText\">Returns the auto-responder end date\/time.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><span class=\"f_Heading2\">Header Replacement Macros<\/span><\/h2>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">The macros listed below control the auto response message\'s headers.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">%SetSender%<\/span><\/p>\n\r<p class=\"p_Code\"><span class=\"f_Code\">ex: %SetSender%=mailbox@example.com<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Just for the purpose of the auto-response message, this macro resets the sender of the original message before constructing the auto-response message headers. Thus, this macro controls the auto-response message\'s <\/span><span class=\"f_PlainText\">TO<\/span><span class=\"f_ControlIndent\"> header. For example, if the sender of the original message were &quot;<\/span><span class=\"f_PlainText\">user2@example.org<\/span><span class=\"f_ControlIndent\">&quot; and recipient\'s autoresponder used the <\/span><span class=\"f_PlainText\">%SetSender%<\/span><span class=\"f_ControlIndent\"> macro to change it to &quot;<\/span><span class=\"f_PlainText\">user1@example.com<\/span><span class=\"f_ControlIndent\">&quot; then the auto-response message\'s <\/span><span class=\"f_PlainText\">TO<\/span><span class=\"f_ControlIndent\"> header would be set to &quot;<\/span><span class=\"f_PlainText\">user1@example.com<\/span><span class=\"f_ControlIndent\">.&quot;<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">%SetRecipient%<\/span><\/p>\n\r<p class=\"p_Code\"><span class=\"f_ControlIndent\">ex: <\/span><span class=\"f_Code\">%SetRecipient%=mailbox@example.com <\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Just for the purpose of the auto-response message, this macro resets the recipient of the original message before constructing the auto-response message headers. Thus, this macro controls the auto-response message\'s <\/span><span class=\"f_PlainText\">FROM<\/span><span class=\"f_ControlIndent\"> header. For example, if the recipient of the original message were &quot;<\/span><span class=\"f_PlainText\">michael@example.com<\/span><span class=\"f_ControlIndent\">&quot; and Michael\'s account had an autoresponder using the <\/span><span class=\"f_PlainText\">%SetRecipient%<\/span><span class=\"f_ControlIndent\"> macro to change it to &quot;<\/span><span class=\"f_PlainText\">michael.mason@example.com<\/span><span class=\"f_ControlIndent\">,&quot; then the auto-response message\'s <\/span><span class=\"f_PlainText\">FROM<\/span><span class=\"f_ControlIndent\"> &nbsp;header would be set to &quot;<\/span><span class=\"f_PlainText\">michael.mason@example.com<\/span><span class=\"f_ControlIndent\">.&quot;<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">%SetReplyTo%<\/span><\/p>\n\r<p class=\"p_Code\"><span class=\"f_Code\">ex: %SetReplyTo%=mailbox@example.com<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Controls the value of the auto-response message\'s <\/span><span class=\"f_PlainText\">ReplyTo<\/span><span class=\"f_ControlIndent\"> header.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">%SetSubject%<\/span><\/p>\n\r<p class=\"p_Code\"><span class=\"f_Code\">ex: %SetSubject%=Subject Text<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Replaces the value of the original message<\/span><span style=\"font-family: \'Times New Roman\',Times,Georgia,serif; color: #010100;\">\'<\/span><span class=\"f_ControlIndent\">s subject.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">%SetMessageId%<\/span><\/p>\n\r<p class=\"p_Code\"><span class=\"f_Code\">ex: %SetMessageId%=ID String<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Changes the ID string of the message.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">%SetPartBoundary%<\/span><\/p>\n\r<p class=\"p_Code\"><span class=\"f_Code\">ex: %SetPartBoundary%=Boundary String<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Changes the part boundary.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">%SetContentType%<\/span><\/p>\n\r<p class=\"p_Code\"><span class=\"f_Code\">ex: %SetContentType%=MIME type<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Changes the content-type of the message to the declared value.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">%SetAttachment%<\/span><\/p>\n\r<p class=\"p_Code\"><span class=\"f_ControlIndent\">ex: <\/span><span class=\"f_Code\">%SetAttachment%=filespec<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Forces MDaemon to attach the specified file to the newly generated auto-response message. Only files specified on the <a href=\"ar_attachments.html\" class=\"topiclink\">Attachments<\/a> screen can be attached to autoresponders.<\/span><\/p>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><a id=\"samples\" class=\"hmanchor\"><\/a><span class=\"f_Heading2\">Auto Response Message Samples<\/span><\/h2>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">A simple oof.mrk auto response message using several auto response macros:<\/span><\/p>\n\r<p class=\"p_Code2_LastItem\"><span class=\"f_Code2_LastItem\">Greetings \$SENDER\$<\/span><\/p>\n\r<p class=\"p_Code2\"><span class=\"f_Code2\">Your message regarding \'\$SUBJECT\$\' won\'t be read by me because I\'m on vacation. Hurray!!!<\/span><\/p>\n\r<p class=\"p_Code2_LastItem\"><span class=\"f_Code2_LastItem\">Yours truly,<\/span><\/p>\n\r<p class=\"p_Code2_LastItem\"><span class=\"f_Code2_LastItem\">\$RECIPIENT\$<\/span><\/p>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">&nbsp;<\/span><\/p>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">You can also use some of the header replacement macros to expand this script and control the headers that will be generated when the auto response message is mailed back to <\/span><span class=\"f_PlainText\">\$SENDER\$<\/span><span class=\"f_BodyText\">:<\/span><\/p>\n\r<p class=\"p_Code2_LastItem\"><span class=\"f_Code2_LastItem\">Greetings \$SENDER\$<\/span><\/p>\n\r<p class=\"p_Code2\"><span class=\"f_Code2\">Your message regarding \'\$SUBJECT\$\' won\'t be read by me because I\'m on vacation. Hurray!!!<\/span><\/p>\n\r<p class=\"p_Code2_LastItem\"><span class=\"f_Code2_LastItem\">Yours truly,<\/span><\/p>\n\r<p class=\"p_Code2_LastItem\"><span class=\"f_Code2_LastItem\">\$RECIPIENT\$<\/span><\/p>\n\r<p class=\"p_Code2\"><span class=\"f_Code2\">%SetSubject%=RE: \$SUBJECT\$<\/span><\/p>\n\r<p class=\"p_Code2_LastItem\"><span class=\"f_Code2_LastItem\">%SetAttachment%=c:\\photos\\me_on_vaction.jpg<\/span><\/p>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">Using that script the auto response message will have &quot;<\/span><span class=\"f_PlainText\">RE: <\/span><span class=\"f_BodyText\">&quot; added to the beginning of the subject and have the specified file attached.<\/span><\/p>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">The &quot;<\/span><span class=\"f_PlainText\">%SetSubject%=RE: \$SUBJECT\$<\/span><span class=\"f_BodyText\">&quot; line is handled like this:<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">1.<\/span><span class=\"f_List1\">The <\/span><span class=\"f_PlainText\">\$SUBJECT\$<\/span><span class=\"f_List1\"> portion is expanded and replaced by the original message\'s subject text. This makes the string equivalent to:<\/span><\/p>\n\r<p class=\"p_Code2_LastItem\"><span class=\"f_Code2_LastItem\">%SetSubject%=RE: Original Subject Text<\/span><\/p>\n\r<p class=\"p_List1_LastItem\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">2.<\/span><span class=\"f_List1_LastItem\">MDaemon replaces the original subject, which it has stored in its internal buffers, with this newly calculated one. From that point forward, any use of &quot;<\/span><span class=\"f_PlainText\">\$SUBJECT\$<\/span><span class=\"f_List1_LastItem\">&quot; in the script will return the new result.<\/span><\/p>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">Note the placement of the new macros - they are listed at the bottom of the response script. This is needed to avoid side effects. For example, if the <\/span><span class=\"f_PlainText\">%SetSubject%<\/span><span class=\"f_BodyText\"> macro were placed before the <\/span><span class=\"f_PlainText\">\$SUBJECT\$<\/span><span class=\"f_BodyText\"> macro, which appears in the second line of the response script, the subject text would have already been changed by the time the <\/span><span class=\"f_PlainText\">\$SUBJECT\$<\/span><span class=\"f_BodyText\"> macro was expanded. Therefore, instead of replacing <\/span><span class=\"f_PlainText\">\$SUBJECT\$<\/span><span class=\"f_BodyText\"> with the content of the original message\'s &quot;<\/span><span class=\"f_PlainText\">Subject:<\/span><span class=\"f_BodyText\">&quot; header, it would be replaced with whatever you have set the value of <\/span><span class=\"f_PlainText\">%SetSubject%<\/span><span class=\"f_BodyText\"> to be.<\/span><\/p>\n\r<p class=\"p_SeeAlso\" style=\"page-break-after: avoid; border-right: none; border-bottom: none; border-left: none;\"><span class=\"f_SeeAlso\">See:<\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"ar_creating_auto_response_scripts.html\" class=\"topiclink\">Creating Auto Response Messages<\/a><\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"ar_accounts.html\" class=\"topiclink\">Autoresponders » Accounts<\/a><\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"ar_white-list.html\" class=\"topiclink\">Autoresponders » Exempt List<\/a><\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"ar_options.html\" class=\"topiclink\">Autoresponders » Settings<\/a><\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"ae_auto_responder.html\" class=\"topiclink\">Account Editor » Autoresponders<\/a><\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">&nbsp;<\/span><\/p>\n\r"
})
