memomail

command module
v0.0.0-...-a5718a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2018 License: MIT Imports: 1 Imported by: 0

README

Memomail

version GoDoc Go Report Card Build Status Maintainability MIT License

Memomail is a tool to write a memo to send mail.

Memomailはメモを書いて、メールで送るツールです。

Demo

asciicast

The above is a demo to write a memo using Memomail and send it by email.

For the demonstration, I set up a mail server with Docker so that I can check mail from localhost:1080.

上記はMemomailを使ってメモを書き、メールで送信するデモです。

デモ用にDockerでメールサーバーを立て、localhost:1080からメールを確認できるようにしています。

Overview

Easily take notes with your favorite editor and send them to your mailbox.

Of course, you can attach attachments as well.

好きなエディタで簡単にメモを取って、自分のメールボックスに送信します。

もちろん、添付ファイルもつけることができます。

Features

  • Write a note in your editor.
  • And send a mail to you.

好きなエディタで書いたメモをメールで送信します。

Usage

$ memomail
open editor and you write a note.

$ echo "hello, meilmemo" | mailmemo
# send stdin
# message will be "hello, meilmemo".

$ mailmemo -a hoge.txt -a huga.log
# send mail with some attachments
Config File

It is necessary to tell meilmemo the location of the mail server in the following installation of the setting file.

設定ファイルを下記のパスに設置し、メールサーバーの位置をmeilmemoに伝える必要があります。

  • /etc/memomail/memomail.yml
  • $HOME/.config/memomail/memomail.yml
  • $PWD/memomail.yml

The default configuration file is generated in $HOME/.config/memomail/memomail.yml the first time you start it.

最初に起動したときに、 $HOME/.config/memomail/memomail.yml にデフォルトの設定ファイルが生成されます。

This setting is described in YAML format.

この設定はYAML形式で記述します。 下記はサンプルです。

mailer:
  # about server
  host: localhost
  port: 25

  # about account
  email-address: test@example.com
  username: yourname
  password: secrEtpassw0rd

You can also specify an editor to use by default.

また、デフォルトで使うエディタを指定することもできます。

editor: vim

A sample file is in memomail.sample.yml.

サンプルファイルはmemomail.sample.ymlにあります。

Installation

$ go install -v github.com/kamiazya/memomail
github.com/kamiazya/memomail

License

MIT

Author

kamaizya

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
adapter
model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL