Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* message-send-news-hook : external filter and "raw utf-8" body
@ 2016-01-26 13:19 Andrzej A. Filip
  2016-01-28 14:59 ` Andrzej A. Filip
  0 siblings, 1 reply; 2+ messages in thread
From: Andrzej A. Filip @ 2016-01-26 13:19 UTC (permalink / raw)
  To: info-gnus-english

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: message-send-news-hook : external filter and "raw utf-8" body
  2016-01-26 13:19 message-send-news-hook : external filter and "raw utf-8" body Andrzej A. Filip
@ 2016-01-28 14:59 ` Andrzej A. Filip
  0 siblings, 0 replies; 2+ messages in thread
From: Andrzej A. Filip @ 2016-01-28 14:59 UTC (permalink / raw)
  To: info-gnus-english

"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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-28 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-26 13:19 message-send-news-hook : external filter and "raw utf-8" body Andrzej A. Filip
2016-01-28 14:59 ` Andrzej A. Filip

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).