beam / redmine-email-oauth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Register Azure app

Add gems to Gemfile.local

  • oauth2
  • gmail_xoauth

Patch lib/task/imap.rb

  • patch < lib_redmine_imap.patch

Add task into lib/tasks

  • lib/task/email_oauth.rake

Run bundle install

Init email account token (interactive)

  • rake redmine:email:o365_oauth2_init token_file=/app/redmine/config/email_oauth2 client=uuid tenant=uuid secret=key

Download emails

  • params are same as standart rake task, password not needed and add token_file=/app/redmine/config/email_oauth2
  • rake redmine:email:receive_imap_oauth2 token_file=/app/redmine/config/email_oauth2 ...

About


Languages

Language:Ruby 100.0%