Setup
The mount needs a Microsoft Graph access token withMail.Read. A delegated
token reads the signed-in user’s mailbox; an app-only token names the
mailbox with user_id.
Quick token (Graph Explorer)
Quick token (Graph Explorer)
The fastest way to try it. The token lasts about an hour.
- Open Graph Explorer and sign in.
- Run
GET /me/mailFoldersand consent toMail.Readwhen asked. - Open the Access token tab and copy the token.
Device-code token (own app registration)
Device-code token (own app registration)
A delegated token from an app registration. The first sign-in is
interactive, so this is a development bootstrap, not an unattended
credential.
- In the Microsoft Entra admin center, go to Entra ID > App registrations > New registration.
- Under Authentication, set Allow public client flows to Yes.
-
Under API permissions > Microsoft Graph > Delegated
permissions, add
Mail.Read. -
Request a device code with the Application (client) ID and the
Directory (tenant) ID from the registration’s Overview, open
https://microsoft.com/deviceloginand enter theuser_codeit prints. A registration that accepts accounts in any tenant can usecommonfor the tenant: -
After signing in, exchange the
device_codefor tokens:
access_token that returns a fresh token.Connect
- YAML
- Python
- TypeScript
workspace.yaml
Layout
- A mail folder is named by its display name; child folders nest inside it, beside its day folders.
- A message file is Microsoft Graph’s message JSON, its body as plain text.
- The part after
__is the message’s immutable Graph id, which stays the same when the message moves folders.
Sample runs
himalaya CLI signed in with a token (see
Email setup); the sent copy shows in Sent Items.
SDK guides
Python
Every config field, the layout and the VFS.md.
TypeScript
Every config field, the layout and the VFS.md.