Configuration

1 min read • 213 words
Customize go-mapi installation options and behavior.

Installer Options  

The PowerShell installer supports several configuration flags:

.\install.ps1 [flags]
Flag Default Description
-Unattended false Silent installation, no prompts
-ExtensionId <id> Auto-detect Browser extension ID (32 characters)
-Version <tag> Latest Pin to a specific release (e.g., v1.0.0)
-InstallDir <path> C:\Program Files\go-mapi\ Custom installation directory
-Local false Install from local build instead of GitHub
-Uninstall false Remove go-mapi
-KeepFiles false Keep files when uninstalling (registry-only removal)

Installation Paths  

Component Location
DLL (go-mapi.dll) C:\Program Files\go-mapi\
Native host (go-mapi-host.exe) C:\Program Files\go-mapi\
Native messaging manifest C:\Program Files\go-mapi\
Installation log C:\Program Files\go-mapi\install.log
Runtime logs %LOCALAPPDATA%\go-mapi\logs\
Temp dropbox (IPC) %TEMP%\go-mapi\

Registry Keys  

go-mapi registers itself as a MAPI mail client in Windows:

HKLM:\SOFTWARE\Clients\Mail\go-mapi

Native messaging hosts are registered per browser:

HKLM:\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.marcfargas.go_mapi
HKLM:\SOFTWARE\Microsoft\Edge\NativeMessagingHosts\com.marcfargas.go_mapi

Extension Behavior  

The extension currently operates with sensible defaults. A settings page is coming soon, which will allow you to configure:

  • Default action: Draft or send immediately
  • Default account: Which Gmail account to use
  • Notifications: Enable/disable desktop notifications
  • Signatures: Append a configured signature

Logging  

Installation Logs  

The installer writes a detailed log to:

C:\Program Files\go-mapi\install.log

Native Host Logs  

The Go native messaging host logs to:

%LOCALAPPDATA%\go-mapi\logs\host.log

Extension Logs  

Access via the browser’s DevTools:

  1. Navigate to chrome://extensions or edge://extensions
  2. Find go-mapi
  3. Click “Inspect views: service worker”
  4. Check the Console tab
Follow me

I work on everything coding and tweet developer memes