info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: message-send-news-hook : external filter and "raw utf-8" body


From: Andrzej A. Filip
Subject: Re: message-send-news-hook : external filter and "raw utf-8" body
Date: Thu, 28 Jan 2016 15:59:29 +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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]