- 2017-01-01以降に送信され、送信者に「corec.jp」を含むメール
- gmailアカウントやパスワードは .env ファイルから読み込む
- gmailの設定で「IMAPを有効」及び「安全性の低いアプリからのアクセスの許可」をオンにしておく
検証環境
Windows10
ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]
https://rubyinstaller.org/downloads/
Ruby+Devkit 2.6.3-1 (x64)
cp .env.sample .env
# .env を任意のエディタで開き、ACCOUNTとPASSWORDを編集する
bundle install
bundle exec ruby gmail.rb
検証環境
Windows10
node -v
v10.16.0
npm install --global --production windows-build-tools
npm install -g node-gyp
cp .env.sample .env
# .env を任意のエディタで開き、ACCOUNTとPASSWORDを編集する
npm install
npm start