fix bug 4167, 'Max line length exceeded when forwarding mail'
authorPaul <paul@claws-mail.org>
Sun, 21 Apr 2019 10:44:00 +0000 (11:44 +0100)
committerPaul <paul@claws-mail.org>
Sun, 21 Apr 2019 10:44:00 +0000 (11:44 +0100)
src/compose.c

index d2ca99cfaa55a3d47dac78d329303613a066ef84..3657a113fbe85653d0f00e7534f7105f9f7bb70a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2018 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2019 the Claws Mail team and Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -6469,7 +6469,7 @@ static int compose_add_attachments(Compose *compose, MimeInfo *parent)
                if (mimepart->type == MIMETYPE_MESSAGE
                    || mimepart->type == MIMETYPE_MULTIPART)
                        ainfo->encoding = ENC_BINARY;
-               else if (compose->use_signing) {
+               else if (compose->use_signing || compose->fwdinfo != NULL) {
                        if (ainfo->encoding == ENC_7BIT)
                                ainfo->encoding = ENC_QUOTED_PRINTABLE;
                        else if (ainfo->encoding == ENC_8BIT)