Skip to content

Similar for Outlook also works #2

Description

@kevincobain2000
╰─$ ./target/debug/xoutlook auth status                                                                                                                                               127 ↵
Signed in : pulkit.kathuria@company-you-know.com
Tenant    : 53axxx-xxx-xxx-8d5b
  substrate (OWA)      aud=https://substrate.office.com  exp=85 min

Following were able to

╰─$ ./target/debug/xoutlook mail -h
Your inbox and mail operations

Usage: xoutlook mail [OPTIONS] <COMMAND>

Commands:
  list    List messages in a folder (default: inbox)
  read    Read a single message by id
  send    Send a new email
  reply   Reply to a message
  search  Search mail
  help    Print this message or the help of the given subcommand(s)

I have tested on local, it worked. Probably you are already working on it on a repo (not submitting a PR for that reason). Other reason is that I am not a Rust, and mostly was Claude coded.

Added xoutlook as a second binary in the xteams-cli rep, that works without Graph API or any Azure app registration. It reuses xteams' existing FOCI device-code auth and token cache to mint tokens for outlook.office.com, then calls the OWA v2.0 REST API directly. A cookie-based path (for One Outlook / PWA) is scaffolded in creds.rs for future use once that app flavor is available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions