Don't prefix Re: if prefix already present
This commit is contained in:
parent
e367469e1a
commit
7f97e0b605
1 changed files with 6 additions and 1 deletions
|
@ -74,7 +74,12 @@ func Reply(aerc *widgets.Aerc, args []string) error {
|
|||
}
|
||||
}
|
||||
|
||||
subject := "Re: " + msg.Envelope.Subject
|
||||
var subject string
|
||||
if !strings.HasPrefix(msg.Envelope.Subject, "Re: ") {
|
||||
subject = "Re: " + msg.Envelope.Subject
|
||||
} else {
|
||||
subject = msg.Envelope.Subject
|
||||
}
|
||||
|
||||
composer := widgets.NewComposer(
|
||||
aerc.Config(), acct.AccountConfig(), acct.Worker()).
|
||||
|
|
Loading…
Reference in a new issue