From d25f12fa16ab5b945a12f98151bdf3344e35adcc Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 4 Jan 2011 08:33:12 +0000 Subject: [PATCH] Switch K-9 from generating X-User-Agent to User-Agent headers. Fixes issue 1917 --- src/com/fsck/k9/activity/MessageCompose.java | 2 +- src/com/fsck/k9/mail/store/LocalStore.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index 8809ba554..493bbef73 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -952,7 +952,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc message.setRecipients(RecipientType.CC, getAddresses(mCcView)); message.setRecipients(RecipientType.BCC, getAddresses(mBccView)); message.setSubject(mSubjectView.getText().toString()); - message.setHeader("X-User-Agent", getString(R.string.message_header_mua)); + message.setHeader("User-Agent", getString(R.string.message_header_mua)); final String replyTo = mIdentity.getReplyTo(); if (replyTo != null) diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index fe8cf4c41..990b9a40f 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -89,7 +89,7 @@ public class LocalStore extends Store implements Serializable HEADERS_TO_SAVE.add("References"); HEADERS_TO_SAVE.add("Content-ID"); HEADERS_TO_SAVE.add("Content-Disposition"); - HEADERS_TO_SAVE.add("X-User-Agent"); + HEADERS_TO_SAVE.add("User-Agent"); } /* * a String containing the columns getMessages expects to work with