{"id":643,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=643"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"fortune-teller-as-email-signature","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=643","title":{"rendered":"Fortune teller as Email signature"},"content":{"rendered":"<p>If you like the idea of using fortune to give you a random message of the day at boot-up, try this: it not only gives a message, but also appends it as a motto to your e-mail signature (with the option of rejecting the message if you don&#8217;t much like it, and trying another).<br \/>\nTo begin, you need a basic signature with your name, address, URL, etc, configured in BeMail. It will exist as a file called <code>signature_0<\/code> in <code>\/boot\/home\/config\/settings\/bemail\/signatures<\/code>. Create it now if you haven&#8217;t already.<br \/>\nNow create two more blank signatures. Call the first something like &#8222;motto&#8220;, the second something like &#8222;Autosignature&#8220;. They don&#8217;t need to contain text, as long as they exist; they will be signature_1 and signature_2 respectively. In BeMail preferences, choose the second as your default email signature.<br \/>\nNow cut and paste the following into StyledEdit:<\/p>\n<pre>fortune &amp;gt;\n \/boot\/home\/config\/settings\/bemail\/signatures\/signature_1<\/pre>\n<pre>cat \/boot\/home\/config\/settings\/bemail\/signatures\/signature_0\n \/boot\/home\/config\/settings\/bemail\/signatures\/signature_1 &amp;gt;\n \/boot\/home\/config\/settings\/bemail\/signatures\/signature_2<\/pre>\n<pre>alert \"Today's e-mail motto is:<\/pre>\n<pre>   `cat \/boot\/home\/config\/settings\/bemail\/signatures\/signature_1`\"\n\"Uh... no. Try another\"  OK &amp;&amp; sigscript<\/pre>\n<p>And save the file as &#8222;sigscript&#8220; somewhere in your path, such as in <code>\/boot\/home\/config\/bin<\/code>. Finally, add the line &#8222;sigscript&#8220; (without the quotes) to UserBootscript. <br \/> Now, whenever you boot, sigscript will run and give you an alert box showing the day&#8217;s motto. Type &#8222;sigscript&#8220; in a terminal to test it. Open a new mail message to see the result.<br \/>\nThis could of course be adapted for other e-mail programs. Also, the wording of the alert box and its buttons can be altered to taste, as long as the syntax is preserved.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you like the idea of using fortune to give you a random message of the day at boot-up, try this: it not only gives a message, but also appends it as a motto to your e-mail signature (with the option of rejecting the message if you don&#8217;t much like it, and trying another). To [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[8],"class_list":["post-643","post","type-post","status-publish","format-standard","hentry","tag-misc"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=643"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/643\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}