Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 783 Bytes

File metadata and controls

22 lines (16 loc) · 783 Bytes

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 ...