Project

General

Profile

Actions

Feature #43023

open

IMAP email retrieval via OAuth2

Added by Jan Catrysse 16 days ago. Updated 4 days ago.

Status:
New
Priority:
Normal
Category:
Email receiving
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

This patch adds IMAP email retrieval via OAuth2.

Example - Office 365 email retrieval via OAuth2:
  1. Register an application in Azure and grant "IMAP.AccessAsUser.All" permission. Note the tenant ID, client ID and client secret.
  2. Initialize the OAuth token:
    rake redmine:email:o365_oauth2_init token_file=config/email_oauth2 client=YOUR_CLIENT_ID secret=YOUR_CLIENT_SECRET tenant=YOUR_TENANT_ID
  3. Fetch messages using the token:
    rake redmine:email:receive_imap_oauth2 token_file=config/email_oauth2 host=outlook.office365.com port=993 ssl=1 username=YOUR_ACCOUNT

Duplicate of: #40325, #37688, #37705, #37705


Files

Actions #1

Updated by Marius BĂLTEANU 16 days ago

  • Assignee set to Marius BĂLTEANU
Actions #2

Updated by Marius BĂLTEANU 16 days ago

  • Target version set to Candidate for next major release
Actions #3

Updated by Jan Catrysse 15 days ago

I have completely refactored and reworked the code. It now includes support for Google, includes documentation, and has extra tests.
For me it all works for both o365 and Google, but please don't hesitate to do some extra testing for different use cases.

Actions

Also available in: Atom PDF