Don't prefix Re: if prefix already present
This commit is contained in:
parent
e367469e1a
commit
7f97e0b605
|
@ -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 New Issue