summaryrefslogtreecommitdiff
path: root/aerc.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-07-11 20:11:19 +0200
committerRobin Jarry <robin@jarry.cc>2022-07-14 23:14:50 +0200
commitc24a57687697411cde3bdcf39700385e7a689798 (patch)
treef7f599ac90555db5dae8f5eeb06a675893ccf500 /aerc.go
parenta1a276e002b937e38585c1fe547bd0c00bc525c1 (diff)
downloadaerc-c24a57687697411cde3bdcf39700385e7a689798.zip
aerc: use aerc as an mbox viewer
Use Aerc as an mbox viewer. Open an mbox file from the command line in a new tab with the mbox backend. Provide a convenient and quick way to display emails from an mbox. Usage: aerc mbox://<path> where the path can either be a directory or an mbox file. If it is a directory, every file with an .mbox suffix will be loaded as a folder. The account config will be copied from the selected account. This allows the answer emails in the mbox account. Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'aerc.go')
-rw-r--r--aerc.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/aerc.go b/aerc.go
index 57259be..6144e53 100644
--- a/aerc.go
+++ b/aerc.go
@@ -200,6 +200,7 @@ func main() {
} else {
defer as.Close()
as.OnMailto = aerc.Mailto
+ as.OnMbox = aerc.Mbox
}
// set the aerc version so that we can use it in the template funcs