Giter Club home page Giter Club logo

gyazo-mail's Introduction

gyazo mail

メールで送った写真等を手持ちのgyazo互換サーバーに上げる何か(公式に上げれるかは知らん
アップされたURLはメールの返信の形で届きます。

○必須ライブラリ
pear:Mail,Mail_Mime,HTTP_Request
以下のエントリの下部にあるReceiptMailDecoderクラスの定義されたファイルを"ReceiptMailDecoder.class.php"という名前で、lib/以下に置く。

http://d.hatena.ne.jp/ya--mada/20080415/1208318475

○動作方法
手元の環境ではpostfixでやったので、その方法だけ記載します。
aliasesに以下のような形で記載。

gyazo: | "/usr/bin/php /{設置先}/gyazo-mail/post.php > /dev/null 2>&1"

aliasesに設定するまでのアレコレはググれ。

○設定
conf.yml.sampleをconf.ymlにrenameして適当に頑張れ。

aliasesの最初のgyazoってのはメールの@以前の部分だが、confのインデントない部分(sampleでgyazoやpiyoの部分)がそれに相当する。
senderは送信者メアドでこれに一致してないと届いたメールは破棄される。
認証はかけてない場合は項目そのものを書かなくていい

基本的に送信メアドに返送するが、特定のメアドへの送信を希望する場合はreceiverのmailにメアドを書けばいける(かもしれないがテストしてない

○チップス1
aliasesの記述サンプルはdev/nullに投げてるけど、プログラム自体はデバッグ出力で情報吐いてるので、
> /tmp/hoge  とかに吐きだせば、直前のメールがどのように処理されたかが分かる。

○チップス2
receiverのfacebookにfacebookグループ等の投稿用メールアドレスを設定し
facebook-senderにそのグループ参加者のアカウントに結びついたメアドを設定する事で、
結果のURLをfacebookの投稿にする事が可能。

ただし、facebookの投稿は送信元ホストとアカウントにひもづいたメアドのhostが一致してないと多分弾かれる。

○ライセンス
WTFPL http://sam.zoy.org/wtfpl/

gyazo-mail's People

Contributors

tyoro avatar

Stargazers

Lycoris_i avatar d na avatar  avatar  avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.