Add app name to receipts

This commit is contained in:
M66B
2021-02-01 09:10:47 +01:00
parent 46b69f1c09
commit aabfc099b3

View File

@@ -555,7 +555,10 @@ public class MessageHelper {
from = ((InternetAddress) message.from[0]).getAddress();
StringBuilder sb = new StringBuilder();
sb.append("Reporting-UA: ").append(BuildConfig.APPLICATION_ID).append("; ").append(BuildConfig.VERSION_NAME).append("\r\n");
sb.append("Reporting-UA: ")
.append(BuildConfig.APPLICATION_ID).append("; ")
.append(context.getString(R.string.app_name)).append(' ')
.append(BuildConfig.VERSION_NAME).append("\r\n");
if (from != null)
sb.append("Original-Recipient: rfc822;").append(from).append("\r\n");
sb.append("Disposition: manual-action/MDN-sent-manually; displayed").append("\r\n");