From: "Andrzej A. Filip" <andrzej.filip@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: message-send-news-hook : external filter and "raw utf-8" body
Date: Thu, 28 Jan 2016 15:59:29 +0100 [thread overview]
Message-ID: <anfi+c0661fq6pf-g1s4@wp.eu> (raw)
In-Reply-To: <anfi+eehlohr9mf-g1q2@wp.eu> (Andrzej A. Filip's message of "Tue, 26 Jan 2016 14:19:34 +0100")
"Andrzej A. Filip" <andrzej.filip@gmail.com> wrote:
> 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
Setting coding-system-for-read and coding-system-for-write to binary
fixed the problem.
--
A. Filip
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
prev parent reply other threads:[~2016-01-28 14:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-26 13:19 Andrzej A. Filip
2016-01-28 14:59 ` Andrzej A. Filip [this message]
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+c0661fq6pf-g1s4@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).