RealRaven2000 / SmartTemplates

Thunderbird Add-on: SmartTemplates
http://smarttemplates.quickfolders.org/
Other
25 stars 15 forks source link

Add a "Randomiser" Variable #76

Open KonstabelKen opened 4 years ago

KonstabelKen commented 4 years ago

The idea is to insert a file or line of text at random from a given selection or folder.

People use this kind of thing to insert a random quote, joke or saying into their signature.

Could also be used to insert a random customer review or a random link to one of your own blog articles, link to a random product in an online store etc.

Example: Warm regards, Ken

PS. Have your read %random(blog article)% yet?

RealRaven2000 commented 4 years ago

Now the main question is what is this pulling from. If it is a text / html file, the input could just be a whole folder, and maybe a filter pattern, such as .txt or .html.

As regards blog articles you could cover them with the above method too, by inserting the link into a single file as html snippets:

article1.html - would only have to contain a single anchor tag with a link: <a href="some link">article title</a>

The new variable syntax could maybe be: %file.random(path,pattern)%