summary refs log tree commit diff stats
path: root/lib/keystore.go
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2020-04-24 11:42:22 +0200
committerDrew DeVault <sir@cmpwn.com>2020-04-24 12:59:21 -0400
commit3102ac3680ba5fcfb126894a7b7b950b07b6c735 (patch)
treec017e43203fcadf978fd919222628581f6b11b1b /lib/keystore.go
parent7f033278eb3afc3b9ae2dca28efe8d4a3514d14a (diff)
downloadaerc-3102ac3680ba5fcfb126894a7b7b950b07b6c735.tar.gz
Add recall command
This command allows recalling the selected postponed email to edit in
the composer. The command only allows recalling from the postpone
directory.
type GopherType* = enum
  UNKNOWN = "unsupported"
  TEXT_FILE = "text file"
  ERROR = "error"
  DIRECTORY = "directory"
  DOS_BINARY = "DOS binary"
  SEARCH = "search"
  MESSAGE = "message"
  SOUND = "sound"
  GIF = "gif"
  HTML = "HTML"
  INFO = ""
  IMAGE = "image"
  BINARY = "binary"
  PNG = "png"

func gopherType*(c: char): GopherType =
  return case c
  of '0': TEXT_FILE
  of '1': DIRECTORY
  of '3': ERROR
  of '5': DOS_BINARY
  of '7': SEARCH
  of 'm': MESSAGE
  of 's': SOUND
  of 'g': GIF
  of 'h': HTML
  of 'i': INFO
  of 'I': IMAGE
  of '9': BINARY
  of 'p': PNG
  else: UNKNOWN