/MastodonOnEmail

A tool for enjoying Mastodon on Email

Primary LanguageTypeScriptMIT LicenseMIT

Mastodon on Email(MoE)

A tool for enjoying Mastodon on Email

Languages

Description

MoE helps you toot with only e-mail.
It is quite useful for users who don't have any smartphones.

Requirement

Usage

Please follow the instructions.

  1. Copy all files to your GAS project
  2. Prepare any tokens to handle your account(See Token Settings)
  3. Launch launch()
  4. Make me busy by sending a lot of e-mails!(See Subject Format & Magics)

Token Settings

  1. Open "Applications" in settings(https://{:instance}/settings/applications)
    Where "Applications" is

  2. Generate a token with these settings
    ... Application's name: Mastodon on Email
    ... Application's website: https://genbuhase.github.io/
    ... Application's permissions: read, write, follow
    How you'll set properties

  3. Open "Project Properties" from "File" tab
    Where "Project Properties" is

  4. Write both the instance and the token to fields in "User Properties" tab
    Where "User Properties" is

Subject Format

A base format of MoE is MoE{:feature?}<{:args?}>@{:instance}.

{:feature?} ... A name of feature
{:instance} ... An instance you've connected with MoE
{:args?} ... Arguments of each features

These are examples of format-list.

MoE:Toot ... Equals to MoE:Toot@{:instance}
<1> ... Equals to MoE<1>@{:instance}
MoE:Toot<1> ... Equals to MoE:Toot<1>@{:instance}

Format of subject Description
Base Format Post contents in body
<{:privacy}> Post with selected privacy
0 ... Public
1 ... Unlisted
2 ... Private
3 ... Direct Message
Others(public | unlisted | ...) ... Provided privacy
MoE:Toot Equal to Base Format
MoE:Toot<{:privacy}> Equal to <{:privacy}>
MoE:Notify Send notifications to your address

Magics

You can put down them in body.

Format of magic Description
[CW | {:CWContent}] Post with warning
[{:emojiCode} | {:quantity}] Replaces with quantity pieces of an emoji defined as emojiCode

Author

License

MIT License