about summary refs log tree commit diff stats
path: root/commands
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-04-23 20:55:18 +0200
committerDrew DeVault <sir@cmpwn.com>2020-04-24 12:59:21 -0400
commitacf69b7490f4848066f2df4b3c2f675a8d57661a (patch)
treeb3442983879619331b753c4edfc2dcbdd8c746b6 /commands
parent3fa9ae3edb0c2193ef333a77b710ccbe54ee4368 (diff)
downloadaerc-acf69b7490f4848066f2df4b3c2f675a8d57661a.tar.gz
Remove ability to specify headers in the editor
Due to headers being essentially free text, we constantly run into issues
with parts of the body being interpreted as headers.

Remove the ability to overwrite headers to avoid that, while keeping the ability
to specify headers in the template files.

Fixes #383
Diffstat (limited to 'commands')
-rw-r--r--commands/account/compose.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/account/compose.go b/commands/account/compose.go
index c214441..8115faa 100644
--- a/commands/account/compose.go
+++ b/commands/account/compose.go
@@ -46,7 +46,7 @@ func (Compose) Execute(aerc *widgets.Aerc, args []string) error {
 		}
 		tab.Content.Invalidate()
 	})
-	go composer.PrependContents(strings.NewReader(body))
+	go composer.AppendContents(strings.NewReader(body))
 	return nil
 }
 
mitter Kartik Agaram <vc@akkartik.com> 2020-09-15 22:52:41 -0700 6781 - new app: RPN (postfix) calculator' href='/akkartik/mu/commit/308allocate-array.subx?h=main&id=ae470b42f102d5da4f7d4255a47e3cf582079f33'>ae470b42 ^
15b98801 ^
5e0ae917 ^


15b98801 ^
5e0ae917 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25