INNER CODE UNIT · TypeScript
run
ahochsteger/gmail-processor · src/lib/index.ts:48
export function run(
config: Config,
runMode: string = RunMode.SAFE_MODE,
customActions: ActionRegistration[] = [],
ctx?: EnvContext,
envOverrides?: Partial<EnvInfo>,
): ProcessingResult {
const effectiveCtx =
ctx ??
EnvProvider.defaultContext({
runMode: runMode as RunMode,
...envOverrides,
})
return GmailProcessor.runWithJson(config, customActions, effectiveCtx)
}
/**
* Convert a GMail2GDrive v1.x config JSON into a Gmail Processor config