aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/routes.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 7ba6253..0277174 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -334,7 +334,11 @@ func handleGetPart(ctx *alps.Context, raw bool) error {
return fmt.Errorf("failed to parse part Content-Type: %v", err)
}
if len(partPath) == 0 {
- mimeType = "message/rfc822"
+ if ctx.QueryParam("plain") == "1" {
+ mimeType = "text/plain"
+ } else {
+ mimeType = "message/rfc822"
+ }
}
if raw {