mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 18:11:03 +01:00
Append signature/referenced message only when sending
This commit is contained in:
@@ -338,12 +338,15 @@ public class MessageHelper {
|
||||
StringBuilder body = new StringBuilder();
|
||||
body.append(Helper.readText(message.getFile(context)));
|
||||
|
||||
if (identity != null && !TextUtils.isEmpty(identity.signature))
|
||||
body.append(identity.signature);
|
||||
// When sending message
|
||||
if (identity != null) {
|
||||
if (!TextUtils.isEmpty(identity.signature))
|
||||
body.append(identity.signature);
|
||||
|
||||
File refFile = message.getRefFile(context);
|
||||
if (refFile.exists())
|
||||
body.append(Helper.readText(refFile));
|
||||
File refFile = message.getRefFile(context);
|
||||
if (refFile.exists())
|
||||
body.append(Helper.readText(refFile));
|
||||
}
|
||||
|
||||
String plainContent = HtmlHelper.getText(body.toString());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user