unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9805: 24.0.90; Gnus shows junk text at the beginning of some emails
@ 2011-10-20  7:36 Dmitri Paduchikh
  2012-01-06 23:18 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitri Paduchikh @ 2011-10-20  7:36 UTC (permalink / raw)
  To: 9805

[-- Attachment #1: Type: text/plain, Size: 2496 bytes --]

Hello,

In the attachment is a message which is displayed in Gnus with some junk
text at the beginning. It appears that the problem is in the header
X-Ham-Report. Removing this header in the incoming email fixes the
problem for me (it does not appear in further messages). This is a
header containing technical information and some unencoded UTF-8
characters (U+FFFD to be precise). Here it is with all U+FFFD characters
replaced by `?'.

~~~~~~~~~~~
X-Ham-Report: Spam detection software, running on the system
 "server2.ultrahost.us", has identified this incoming email as possible spam. 
 The original message has been attached to this so you can view it (if it
 isn't spam) or label similar future email.  If you have any questions, see
 the administrator of that system for details. Content preview:  ???????????.
 > ?? ???? ??????? ??????????? ?? ????????? ? ?????????? ??????? RHVoice?
 ?????? ??? ? ?????????. ???????? ??? ??????????? ??? ??????? ?????? ??????.
 ???? ?????????? ?????? ??????????? ?? 5 ??????, ?? ???????? ??????????
 ???????? ?????? ?????? ?????. [...] Content analysis details:   (-0.4 points,
 8.0 required) pts rule name              description ----
 ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
 trust [94.100.176.154 listed in list.dnswl.org] 0.0 FREEMAIL_FROM         
 Sender email is commonly abused enduser mail provider
 (georgiexxx-146[at]mail.ru) 0.1 FREEMAIL_ENVFROM_END_DIGIT Envelope-from
 freemail username ends in digit (georgiexxx-146[at]mail.ru) -1.9 BAYES_00    
           BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.4 AWL    
                AWL: From: address is in the auto white-list
~~~~~~~~~~~
I also have mangled the sender address a bit in order to protect it from
spamming. But this shouldn't make any difference. For me it looks like
Gnus misdetects the start of message body due to this header.

D. Paduchikh

In GNU Emacs 24.0.90.1 (i386-unknown-linux-gnu, GTK+ Version 2.24.7)
 of 2011-10-20 on ait
configured using `configure  '--prefix=/opt/emacs' '--program-suffix=-24''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: C
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: C
  value of $LANG: ru_RU.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t


[-- Attachment #2: The offending email message --]
[-- Type: application/octet-stream, Size: 3824 bytes --]

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

* bug#9805: 24.0.90; Gnus shows junk text at the beginning of some emails
  2011-10-20  7:36 bug#9805: 24.0.90; Gnus shows junk text at the beginning of some emails Dmitri Paduchikh
@ 2012-01-06 23:18 ` Lars Magne Ingebrigtsen
  2012-01-07  2:51   ` Dmitri Paduchikh
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-01-06 23:18 UTC (permalink / raw)
  To: Dmitri Paduchikh; +Cc: 9805

Dmitri Paduchikh <dpaduchikh@gmail.com> writes:

> In the attachment is a message which is displayed in Gnus with some junk
> text at the beginning. It appears that the problem is in the header
> X-Ham-Report. Removing this header in the incoming email fixes the
> problem for me (it does not appear in further messages). This is a
> header containing technical information and some unencoded UTF-8
> characters (U+FFFD to be precise).

I'm unable to reproduce this bug.  If I put the message in an nnmh group
and read it, the message body is displayed as expected.

What does the display look like to you?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#9805: 24.0.90; Gnus shows junk text at the beginning of some emails
  2012-01-06 23:18 ` Lars Magne Ingebrigtsen
@ 2012-01-07  2:51   ` Dmitri Paduchikh
  2012-01-07  3:08     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitri Paduchikh @ 2012-01-07  2:51 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: 9805

Lars Magne Ingebrigtsen:

LI> I'm unable to reproduce this bug.  If I put the message in an nnmh group
LI> and read it, the message body is displayed as expected.

I am sorry. It is my old cruft again. I rechecked the article and the
problem disappears after cleaning up gnus-part-display-hook. So please
ignore this bug. Next time I will check more accurately.

-- 
Dmitri Paduchikh





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

* bug#9805: 24.0.90; Gnus shows junk text at the beginning of some emails
  2012-01-07  2:51   ` Dmitri Paduchikh
@ 2012-01-07  3:08     ` Lars Magne Ingebrigtsen
  2012-01-07  4:58       ` Dmitri Paduchikh
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-01-07  3:08 UTC (permalink / raw)
  To: Dmitri Paduchikh; +Cc: 9805

Dmitri Paduchikh <dpaduchikh@gmail.com> writes:

> I am sorry. It is my old cruft again. I rechecked the article and the
> problem disappears after cleaning up gnus-part-display-hook. So please
> ignore this bug. Next time I will check more accurately.

No problem; I'll close the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#9805: 24.0.90; Gnus shows junk text at the beginning of some emails
  2012-01-07  3:08     ` Lars Magne Ingebrigtsen
@ 2012-01-07  4:58       ` Dmitri Paduchikh
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitri Paduchikh @ 2012-01-07  4:58 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: 9805

I have found the cause of my problem. It was because my function on
gnus-part-display-hook was called for head part although was intended
only for bodies. As a result, headers sometimes got corrupted.
Unfortunately, as far as I understand there is no easy way for functions
on gnus-part-display-hook to determine the type of part on which they
are running.

Lars Magne Ingebrigtsen:

LI> Dmitri Paduchikh <dpaduchikh@gmail.com> writes:

>> I am sorry. It is my old cruft again. I rechecked the article and the
>> problem disappears after cleaning up gnus-part-display-hook. So please
>> ignore this bug. Next time I will check more accurately.

LI> No problem; I'll close the bug report.


-- 
Dmitri Paduchikh





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

end of thread, other threads:[~2012-01-07  4:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-20  7:36 bug#9805: 24.0.90; Gnus shows junk text at the beginning of some emails Dmitri Paduchikh
2012-01-06 23:18 ` Lars Magne Ingebrigtsen
2012-01-07  2:51   ` Dmitri Paduchikh
2012-01-07  3:08     ` Lars Magne Ingebrigtsen
2012-01-07  4:58       ` Dmitri Paduchikh

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).