tyoro / gyazo-mail Goto Github PK
View Code? Open in Web Editor NEWメールドリブンでgyazoに投げる何か
メールドリブンでgyazoに投げる何か
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/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.