Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Andrzej A. Filip" <andrzej.filip@gmail.com>
To: info-gnus-english@gnu.org
Subject: message-send-news-hook : external filter and "raw utf-8" body
Date: Tue, 26 Jan 2016 14:19:34 +0100	[thread overview]
Message-ID: <anfi+eehlohr9mf-g1q2@wp.eu> (raw)

I am trying to deploy the answer regarding filtering typical usenet messages
„rewrite outgoing messages/posts by external program/filter”
http://stackoverflow.com/a/31451576/2139766

It fails to process message with "raw utf-8" bodies when deployed using
message-send-news-hook. It gives error:

Assertion failed: (save-excursion (goto-char (point-min)) (not (re-search-forward "^\000-\377]" nil t)))

[The error message is displayed slightly differently than defined in gnus/message.el.]

It seems that gnus threats legitimate "raw utf-8" characters in message
body as lack of proper encoding.

How to make the recipe process corectly "raw utf-8" message bodies?



Mime headers of the filtered message:

Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

             reply	other threads:[~2016-01-26 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-26 13:19 Andrzej A. Filip [this message]
2016-01-28 14:59 ` Andrzej A. Filip

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=anfi+eehlohr9mf-g1q2@wp.eu \
    --to=andrzej.filip@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).