Gnus development mailing list
 help / color / mirror / Atom feed
* Problem when sending diffs
@ 2010-09-20  7:00 Francesco Pizzolante
  2010-09-20 16:31 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 18+ messages in thread
From: Francesco Pizzolante @ 2010-09-20  7:00 UTC (permalink / raw)
  To: ding-smP1P7uqpqc

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

Hi,

Very often when I send diffs by email, they arrive completely messed up.

Sometimes, I miss a single block of lines, but some other times the email is
completely mixed up (text lines of the original email sent are not in the same
order in the received email).

I never observe this problem when sending something other than diffs.

It doesn't matter whether the diff is an attachment (text, inline or not) or
just text in the body of the email: I get the problem in all cases.

I tried with different SMTP servers, I still have the same problem.

Attached, you can find an example of an email that I sent and the same email
that has been received.

Any hint or idea is welcome.

Regards,
Francesco Pizzolante

PS Sending these attachments worked because I set the mime type type to
"application/octet-stream" (they are just text files). When setting the mime
type to "text/x-patch" or just simple text, then I get the problem.


[-- Attachment #2: mail.sent --]
[-- Type: application/octet-stream, Size: 6173 bytes --]

From: Francesco Pizzolante <fpz@missioncriticalit.com>
To: Francesco Pizzolante <fpz@missioncriticalit.com>
Subject: review > org export latex (default) packages
X-Draft-From: ("nnimap+mc:INBOX.mc")
X-Archive: encrypt
Date: Thu, 16 Sep 2010 14:53:27 +0200
Message-ID: <87mxrhq27s.fsf@mundaneum.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=

Hi,

emacs-init-fni.el:
        Keep only inputenc in org-export-latex-default-packages-alist.
        Move all other packages to org-export-latex-packages-alist.
        Do not export any packages for mc* LaTeX classes (they must be included in the classes).



--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=zzdiff.packages

Index: emacs-init-fni.el
===================================================================
--- emacs-init-fni.el	(revision 4693)
+++ emacs-init-fni.el	(working copy)
@@ -8278,7 +8278,7 @@
         ;; 12.6.2
         (add-to-list 'org-export-latex-classes
                      '("mcarticle"
-                       "\\documentclass{mcarticle}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcarticle}\n[NO-PACKAGES]"
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
                        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
@@ -8287,7 +8287,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mccommercial"
-                       "\\documentclass{mccommercial}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mccommercial}\n[NO-PACKAGES]"
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
                        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
@@ -8296,7 +8296,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mcreport"
-                       "\\documentclass{mcreport}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcreport}\n[NO-PACKAGES]"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8305,7 +8305,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mcbook"
-                       "\\documentclass{mcbook}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcbook}\n[NO-PACKAGES]"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8314,7 +8314,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("alta"
-                       "\\documentclass{alta}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{alta}\n"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8323,7 +8323,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mccontract"
-                       "\\documentclass{mccontract}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mccontract}\n[NO-PACKAGES]"
                        ("\\mccarticle{%s}" . "\\mccarticle*{%s}")
                        ("\\mccparagraph{%s}" . "\\mccparagraph*{%s}")))
 
@@ -8356,24 +8356,25 @@
         ;; please let me know so that we can find a solution.
 
         (setq org-export-latex-default-packages-alist
-              '(("AUTO" "inputenc" t)
-                ("T1" "fontenc" t)
-                ("" "fixltx2e" nil)
-                ("" "graphicx" t)
-                ("" "longtable" nil)
-                ("" "float" nil)
-                ("" "wrapfig" nil)
-                ("" "soul" t)
-                ("" "t1enc" t)
-                ("" "textcomp" t)
-                ("" "marvosym" t)
-                ("" "wasysym" t)
-                ("" "latexsym" t)
-                ("" "amssymb" t)
-                ("" "hyperref" nil)
-                "\\tolerance=1000"))
+              '(("AUTO" "inputenc")))
 
+        (add-to-list 'org-export-latex-packages-alist '("T1" "fontenc") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "fixltx2e") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "graphicx") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "longtable") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "float") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "wrapfig") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "soul") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "t1enc") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "textcomp") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "marvosym") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "wasysym") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "latexsym") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "amssymb") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "hyperref") t)
+        (add-to-list 'org-export-latex-packages-alist '"\\tolerance=1000" t)
 
+
 ;;*** Not sorted
 
         (section "Not sorted")
@@ -8442,11 +8443,11 @@
 
         ;; if you want fontified source code, then you must include the
         ;; `listings' package
-        (add-to-list 'org-export-latex-packages-alist '("" "listings"))
+        (add-to-list 'org-export-latex-packages-alist '("" "listings") t)
 
         ;; if you want colored source code, then you need to include the
         ;; `xcolor' package
-        (add-to-list 'org-export-latex-packages-alist '("" "xcolor"))
+        (add-to-list 'org-export-latex-packages-alist '("" "xcolor") t)
 
         ;; (setq org-export-latex-packages-alist
         ;;       '(("" "xcolor")


--=-=-=--

[-- Attachment #3: mail.received --]
[-- Type: application/octet-stream, Size: 3979 bytes --]

Return-Path: <fpz@missioncriticalit.com>
X-Original-To: fpz@missioncriticalit.com
Delivered-To: fpz@missioncriticalit.com
Received: from localhost (localhost [127.0.0.1])
	by mail.missioncriticalit.com (Postfix) with ESMTP id 96FFA9E01C;
	Thu, 16 Sep 2010 14:53:52 +0200 (CEST)
Received: from mail.missioncriticalit.com ([127.0.0.1])
	by localhost (escher [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 20254-06; Thu, 16 Sep 2010 14:53:39 +0200 (CEST)
Received: from WITTGENSTEIN. (wittgenstein.missioncriticalit.com [10.10.10.57])
	by mail.missioncriticalit.com (Postfix) with ESMTP id F369B9E01D;
	Thu, 16 Sep 2010 14:53:38 +0200 (CEST)
From: Francesco Pizzolante <fpz@missioncriticalit.com>
To: Francesco Pizzolante <fpz@missioncriticalit.com>
Subject: review > org export latex (default) packages
X-Archive: encrypt
Date: Thu, 16 Sep 2010 14:53:27 +0200
Message-ID: <87mxrhq27s.fsf@mundaneum.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at missioncriticalit.com

--=-=-=

Hi,

emacs-init-fni.el:
        Keep only inputenc in org-export-latex-default-packages-alist.
        Move all other packages to org-export-latex-packages-alist.
        Do not export any packages for mc* LaTeX classes (they must be included in the classes).



--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=zzdiff.packages

Index: emacs-init-fni.el
===================================================================
--- emacs-init-fni.el	(revision 4693)
+++ emacs-init-fni.el	(working copy)
@@ -8278,7 +8278,7 @@
         ;; 12.6.2
         (add-to-list 'org-export-latex-classes
                      '("mcarticle"
-                       "\\documentclass{mcarticle}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcarticle}\n[NO-PACKAGES]"
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
                        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
@@ -8287,7 +8287,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mccommercial"
-                       "\\documentclass{mccommercial}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mccommercial}\n[NO-PACKAGES]"
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
                        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
@@ -8296,7 +8296,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mcreport"
-                       "\\documentclass{mcreport}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcreport}\n[NO-PACKAGES]"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8305,7 +8305,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mcbook"
-                       "\\documentclass{mcbook}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcbook}\n[NO-PACKAGES]"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8314,7 +8314,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("alta"
-                       "\\documentclass{alta}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{alta}\n"
+        (add-to-list 'org-export-latex-packages-alist '("" "xcolor") t)
 
         ;; (setq org-export-latex-packages-alist
         ;;       '(("" "xcolor")


--=-=-=--

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

* Re: Problem when sending diffs
  2010-09-20  7:00 Problem when sending diffs Francesco Pizzolante
@ 2010-09-20 16:31 ` Lars Magne Ingebrigtsen
  2010-10-07 11:34   ` Francesco Pizzolante
  0 siblings, 1 reply; 18+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-20 16:31 UTC (permalink / raw)
  To: ding

Francesco Pizzolante
<fpz@missioncriticalit.com> writes:

> I never observe this problem when sending something other than diffs.
>
> It doesn't matter whether the diff is an attachment (text, inline or not) or
> just text in the body of the email: I get the problem in all cases.
>
> I tried with different SMTP servers, I still have the same problem.

That's really bizarre.  Anybody have any ideas?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Problem when sending diffs
  2010-09-20 16:31 ` Lars Magne Ingebrigtsen
@ 2010-10-07 11:34   ` Francesco Pizzolante
  2010-10-07 12:01     ` Julien Danjou
  0 siblings, 1 reply; 18+ messages in thread
From: Francesco Pizzolante @ 2010-10-07 11:34 UTC (permalink / raw)
  To: ding

Hi,

Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
> 
> Francesco Pizzolante
> <fpz <at> missioncriticalit.com> writes:
> 
> > I never observe this problem when sending something other than diffs.
> >
> > It doesn't matter whether the diff is an attachment (text, inline or not) or
> > just text in the body of the email: I get the problem in all cases.
> >
> > I tried with different SMTP servers, I still have the same problem.
> 
> That's really bizarre.  Anybody have any ideas?

I just noticed that I have the problem even with other types of attachments.
Even a pure binary file (application/octet-stream) is different in the received 
email...

This is really annoying... it means I cannot use Gnus anymore...

Any help is welcome!

Francesco






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

* Re: Problem when sending diffs
  2010-10-07 11:34   ` Francesco Pizzolante
@ 2010-10-07 12:01     ` Julien Danjou
  2010-10-07 13:29       ` Francesco Pizzolante
  0 siblings, 1 reply; 18+ messages in thread
From: Julien Danjou @ 2010-10-07 12:01 UTC (permalink / raw)
  To: Francesco Pizzolante; +Cc: ding

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

On Thu, Oct 07 2010, Francesco Pizzolante wrote:

> I just noticed that I have the problem even with other types of attachments.
> Even a pure binary file (application/octet-stream) is different in the received 
> email...
>
> This is really annoying... it means I cannot use Gnus anymore...
>
> Any help is welcome!

You must have a computer virus! HA HA HA.

Seriously, do you keep a copy of your outgoing message, and if yes, how
do they look like?

If you try to remove most of your emacs/gnus configuration, does that
change anything?

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Problem when sending diffs
  2010-10-07 12:01     ` Julien Danjou
@ 2010-10-07 13:29       ` Francesco Pizzolante
  2010-10-07 13:34         ` Julien Danjou
  2010-10-07 13:34         ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 18+ messages in thread
From: Francesco Pizzolante @ 2010-10-07 13:29 UTC (permalink / raw)
  To: ding

Hi,

2010/10/7 Julien Danjou <julien@danjou.info>:
> Seriously, do you keep a copy of your outgoing message, and if yes, how
> do they look like?

Yes, I keep my outgoing messages and they are all OK.


> If you try to remove most of your emacs/gnus configuration, does that
> change anything?

I've (almost) completely skipped my .emacs and removed a lot of stuff in my
.gnus but I still have the problem.

I traced the problem with Wireshark. It seems that the message is correctly
sent. But the message I received is wrong. The only thing I can see is errors
(500 and 502) at the end of the conversation with the smtp server. The log is
hereunder.

Thanks,
Francesco

#v+
220 mail.missioncriticalit.com ESMTP Postfix (Debian/GNU)
EHLO WITTGENSTEIN.
250-mail.missioncriticalit.com
250-PIPELINING
250-SIZE 20480000
250-VRFY
250-ETRN
250 8BITMIME
MAIL FROM:<fpz@missioncriticalit.com> SIZE=6165
250 Ok
RCPT TO:<fpz@missioncriticalit.com>
250 Ok
RCPT TO:<XXX@missioncriticalit.com>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
From: Francesco Pizzolante <fpz@missioncriticalit.com>
To: XXX <XXX@missioncriticalit.com>
Cc: Francesco Pizzolante <fpz@missioncriticalit.com>
Subject: review > org export latex (default) packages
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)
X-Archive: encrypt
Date: Thu, 07 Oct 2010 15:11:37 +0200
Message-ID: <87d3rmqh9y.fsf@mundaneum.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Hi,


===================================================================

emacs-init-XXX.el:
        Keep only inputenc in org-export-latex-default-packages-alist.
        Move all other packages to org-export-latex-packages-alist.
        Do not export any packages for mc* LaTeX classes (they must be
included in the classes).


Index: emacs-init-XXX.el
===================================================================
--- emacs-init-XXX.el.(revision 4693)
+++ emacs-init-XXX.el.(working copy)
@@ -8278,7 +8278,7 @@
         ;; 12.6.2
         (add-to-list 'org-export-latex-classes
                      '("mcarticle"
- "\\documentclass{mcarticle}\n\\usepackage[AUTO]{inputenc}\n"
- "\\documentclass{mcarticle}\n[NO-PACKAGES]"
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
@@ -8287,7 +8287,7 @@

         (add-to-list 'org-export-latex-classes
                      '("mccommercial"
-
"\\documentclass{mccommercial}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mccommercial}\n[NO-PACKAGES]"
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
                        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
@@ -8296,7 +8296,7 @@

         (add-to-list 'org-export-latex-classes
                      '("mcreport"
-
"\\documentclass{mcreport}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcreport}\n[NO-PACKAGES]"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8305,7 +8305,7 @@

         (add-to-list 'org-export-latex-classes
                      '("mcbook"
-
"\\documentclass{mcbook}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcbook}\n[NO-PACKAGES]"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8314,7 +8314,7 @@

         (add-to-list 'org-export-latex-classes
                      '("alta"
-                       "\\documentclass{alta}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{alta}\n"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8323,7 +8323,7 @@

         (add-to-list 'org-export-latex-classes
                      '("mccontract"
-
"\\documentclass{mccontract}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mccontract}\n[NO-PACKAGES]"
         ;; (setq org-export-latex-packages-alist
         ;;       '(("" "xcolor")

.
                        ("\\mccarticle{%s}" . "\\mccarticle*{%s}")
                        ("\\mccparagraph{%s}" . "\\mccparagraph*{%s}")))

@@ -8356,24 +8356,25 @@
         ;; please let me know so that we can find a solution.

         (setq org-export-latex-default-packages-alist
-              '(("AUTO" "inputenc" t)
-                ("T1" "fontenc" t)
-                ("" "fixltx2e" nil)
-                ("" "graphicx" t)
-                ("" "longtable" nil)
-                ("" "float" nil)
-                ("" "wrapfig" nil)
-                ("" "soul" t)
-                ("" "t1enc" t)
-                ("" "textcomp" t)
-                ("" "marvosym" t)
-                ("" "wasysym" t)
-                ("" "latexsym" t)
-                ("" "amssymb" t)
-                ("" "hyperref" nil)
-                "\\tolerance=1000"))
+              '(("AUTO" "inputenc")))

+        (add-to-list 'org-export-latex-packages-alist '("T1" "fontenc") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "fixltx2e") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "graphicx") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "longtable") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "float") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "wrapfig") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "soul") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "t1enc") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "textcomp") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "marvosym") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "wasysym") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "latexsym") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "amssymb") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "hyperref") t)
+        (add-to-list 'org-export-latex-packages-alist '"\\tolerance=1000" t)

+
 ;;*** Not sorted

         (section "Not sorted")
@@ -8442,11 +8443,11 @@

         ;; if you want fontified source code, then you must include the
         ;; `listings' package
-        (add-to-list 'org-export-latex-packages-alist '("" "listings"))
+        (add-to-list 'org-export-latex-packages-alist '("" "listings") t)

         ;; if you want colored source code, then you need to include the
         ;; `xcolor' package
-        (add-to-list 'org-export-latex-packages-alist '("" "xcolor"))
+        (add-to-list 'org-export-latex-packages-alist '("" "xcolor") t)

250 Ok: queued as D4BA89E017
502 Error: command not implemented
502 Error: command not implemented
500 Error: bad syntax
502 Error: command not implemented
502 Error: command not implemented
500 Error: bad syntax
502 Error: command not implemented
502 Error: command not implemented
502 Error: command not implemented
502 Error: command not implemented
502 Error: command not implemented
QUIT
502 Error: command not implemented
502 Error: command not implemented
#v-



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

* Re: Problem when sending diffs
  2010-10-07 13:29       ` Francesco Pizzolante
@ 2010-10-07 13:34         ` Julien Danjou
  2010-10-07 13:40           ` Francesco Pizzolante
  2010-10-07 13:34         ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 18+ messages in thread
From: Julien Danjou @ 2010-10-07 13:34 UTC (permalink / raw)
  To: Francesco Pizzolante; +Cc: ding

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

On Thu, Oct 07 2010, Francesco Pizzolante wrote:

> I traced the problem with Wireshark. It seems that the message is correctly
> sent. But the message I received is wrong. The only thing I can see is errors
> (500 and 502) at the end of the conversation with the smtp server. The log is
> hereunder.

This clearly looks as a very bad SMTP problem. Could you try with a SMTP
From Gmail, or something else?

(Ultimately I can provide you a test account, if you can go out with
port tcp/25 on the Internet.)

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Problem when sending diffs
  2010-10-07 13:29       ` Francesco Pizzolante
  2010-10-07 13:34         ` Julien Danjou
@ 2010-10-07 13:34         ` Lars Magne Ingebrigtsen
  2010-10-07 13:41           ` Francesco Pizzolante
  2010-10-07 17:21           ` Andreas Schwab
  1 sibling, 2 replies; 18+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-07 13:34 UTC (permalink / raw)
  To: ding

Francesco Pizzolante <fpz@missioncriticalit.com> writes:

> .

That's the problem.  The email isn't dot-encoded before sending.

What's your setup for outgoing mail?  That is, what does

  (message-send-mail-function)

return?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Problem when sending diffs
  2010-10-07 13:34         ` Julien Danjou
@ 2010-10-07 13:40           ` Francesco Pizzolante
  0 siblings, 0 replies; 18+ messages in thread
From: Francesco Pizzolante @ 2010-10-07 13:40 UTC (permalink / raw)
  To: ding

Hi,

2010/10/7 Julien Danjou <julien@danjou.info>:
> On Thu, Oct 07 2010, Francesco Pizzolante wrote:
>
>> I traced the problem with Wireshark. It seems that the message is correctly
>> sent. But the message I received is wrong. The only thing I can see is errors
>> (500 and 502) at the end of the conversation with the smtp server. The log is
>> hereunder.
>
> This clearly looks as a very bad SMTP problem. Could you try with a SMTP
> From Gmail, or something else?
>
> (Ultimately I can provide you a test account, if you can go out with
> port tcp/25 on the Internet.)

I can go out with port tcp/25. If you can provide me a test account, I
could test with it...

Thanks,
Francesco



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

* Re: Problem when sending diffs
  2010-10-07 13:34         ` Lars Magne Ingebrigtsen
@ 2010-10-07 13:41           ` Francesco Pizzolante
  2010-10-07 13:49             ` Lars Magne Ingebrigtsen
  2010-10-07 17:21           ` Andreas Schwab
  1 sibling, 1 reply; 18+ messages in thread
From: Francesco Pizzolante @ 2010-10-07 13:41 UTC (permalink / raw)
  To: ding

Hi,

Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> 
> Francesco Pizzolante <fpz <at> missioncriticalit.com> writes:
> 
> > .
> 
> That's the problem.  The email isn't dot-encoded before sending.
> 
> What's your setup for outgoing mail?  That is, what does
> 
>   (message-send-mail-function)
> 
> return?
 
It is set to: smtpmail-send-it.

Francesco






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

* Re: Problem when sending diffs
  2010-10-07 13:41           ` Francesco Pizzolante
@ 2010-10-07 13:49             ` Lars Magne Ingebrigtsen
  2010-10-07 13:58               ` Francesco Pizzolante
  0 siblings, 1 reply; 18+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-07 13:49 UTC (permalink / raw)
  To: ding

Francesco Pizzolante <fpz@missioncriticalit.com> writes:

> It is set to: smtpmail-send-it.

I've had a look at `smtpmail-send-data-1', and it correctly quotes "."
lines.  Do you have a private version of smtpmail.el installed?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Problem when sending diffs
  2010-10-07 13:49             ` Lars Magne Ingebrigtsen
@ 2010-10-07 13:58               ` Francesco Pizzolante
  2010-10-07 14:01                 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 18+ messages in thread
From: Francesco Pizzolante @ 2010-10-07 13:58 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> 
> Francesco Pizzolante <fpz <at> missioncriticalit.com> writes:
> 
> > It is set to: smtpmail-send-it.
> 
> I've had a look at `smtpmail-send-data-1', and it correctly quotes "."
> lines.  Do you have a private version of smtpmail.el installed?

M-x locate-library smtpmail.el:

Library is file c:/Program Files/Emacs/emacs/lisp/mail/smtpmail.el

Francesco





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

* Re: Problem when sending diffs
  2010-10-07 13:58               ` Francesco Pizzolante
@ 2010-10-07 14:01                 ` Lars Magne Ingebrigtsen
  2010-10-07 14:07                   ` Francesco Pizzolante
  0 siblings, 1 reply; 18+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-07 14:01 UTC (permalink / raw)
  To: ding

Francesco Pizzolante <fpz@missioncriticalit.com> writes:

> M-x locate-library smtpmail.el:
>
> Library is file c:/Program Files/Emacs/emacs/lisp/mail/smtpmail.el

And that's the file that was distributed with your Emacs version?  And
your Emacs version is?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Problem when sending diffs
  2010-10-07 14:01                 ` Lars Magne Ingebrigtsen
@ 2010-10-07 14:07                   ` Francesco Pizzolante
  0 siblings, 0 replies; 18+ messages in thread
From: Francesco Pizzolante @ 2010-10-07 14:07 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> 
> Francesco Pizzolante <fpz <at> missioncriticalit.com> writes:
> 
> > M-x locate-library smtpmail.el:
> >
> > Library is file c:/Program Files/Emacs/emacs/lisp/mail/smtpmail.el
> 
> And that's the file that was distributed with your Emacs version?

Yes, that's it.


>  And
> your Emacs version is?

GNU Emacs 23.1.50.1 (i386-mingw-nt6.1.7600)
 of 2009-11-04 on LENNART-69DE564 (patched)








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

* Re: Problem when sending diffs
  2010-10-07 13:34         ` Lars Magne Ingebrigtsen
  2010-10-07 13:41           ` Francesco Pizzolante
@ 2010-10-07 17:21           ` Andreas Schwab
  2010-10-07 18:08             ` Francesco Pizzolante
  2010-10-07 18:12             ` Lars Magne Ingebrigtsen
  1 sibling, 2 replies; 18+ messages in thread
From: Andreas Schwab @ 2010-10-07 17:21 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Francesco Pizzolante <fpz@missioncriticalit.com> writes:
>
>> .
>
> That's the problem.  The email isn't dot-encoded before sending.

It looks as if the dot line together with the previous three lines were
sent out of sequence and were supposed to be sent at the end of the
data.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



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

* Re: Problem when sending diffs
  2010-10-07 17:21           ` Andreas Schwab
@ 2010-10-07 18:08             ` Francesco Pizzolante
  2010-10-07 18:12             ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 18+ messages in thread
From: Francesco Pizzolante @ 2010-10-07 18:08 UTC (permalink / raw)
  To: ding

Hi,

> >> .
> >
> > That's the problem.  The email isn't dot-encoded before sending.
> 
> It looks as if the dot line together with the previous three lines were
> sent out of sequence and were supposed to be sent at the end of the
> data.

I just tried with another smtp server and I get more details at the end 
of the log (see hereunder).

Any idea?

Francesco

220 eir.is.scarlet.be ESMTP Scarlet Belgium - Thu, 7 Oct 2010 20:00:36 +0200
EHLO WITTGENSTEIN.
250-eir.is.scarlet.be Hello ip-83-134-41-157.dsl.scarlet.be [83.134.41.157], 
pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-AUTH PLAIN LOGIN
250-STARTTLS
250-DELIVERBY
250 HELP
MAIL FROM:<fpz@missioncriticalit.com> SIZE=6226
250 2.1.0 <fpz@missioncriticalit.com>... Sender ok
RCPT TO:<fpz@missioncriticalit.com>
250 2.1.5 <fpz@missioncriticalit.com>... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
From: Francesco Pizzolante <fpz@missioncriticalit.com>
To: Francesco Pizzolante <fpz@missioncriticalit.com>
Subject: review > org export latex (default) packages
X-Archive: encrypt
Date: Thu, 07 Oct 2010 20:00:34 +0200
Message-ID: <87pqvl6fy5.fsf@mundaneum.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Hi,


===================================================================

emacs-init-XXX.el:
        Keep only inputenc in org-export-latex-default-packages-alist.
        Move all other packages to org-export-latex-packages-alist.
        Do not export any packages for mc* LaTeX classes (they must be
included in the classes).


Index: emacs-init-XXX.el
===================================================================
--- emacs-init-XXX.el.(revision 4693)
+++ emacs-init-XXX.el.(working copy)
@@ -8278,7 +8278,7 @@
         ;; 12.6.2
         (add-to-list 'org-export-latex-classes
                      '("mcarticle"
-                       
"\\documentclass{mcarticle}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcarticle}\n[NO-PACKAGES]"
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
                        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
@@ -8287,7 +8287,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mccommercial"
-                       
"\\documentclass{mccommercial}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mccommercial}\n[NO-PACKAGES]"
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
                        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
@@ -8296,7 +8296,7 @@
 
         (add-to-list 'org-export-latex-classes
         ;; (setq org-export-latex-packages-alist
         ;;       '(("" "xcolor")

.

                      '("mcreport"
-                       
"\\documentclass{mcreport}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcreport}\n[NO-PACKAGES]"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8305,7 +8305,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mcbook"
-                       
"\\documentclass{mcbook}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mcbook}\n[NO-PACKAGES]"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8314,7 +8314,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("alta"
-                       "\\documentclass{alta}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{alta}\n"
                        ("\\chapter{%s}" . "\\chapter*{%s}")
                        ("\\section{%s}" . "\\section*{%s}")
                        ("\\subsection{%s}" . "\\subsection*{%s}")
@@ -8323,7 +8323,7 @@
 
         (add-to-list 'org-export-latex-classes
                      '("mccontract"
-                       
"\\documentclass{mccontract}\n\\usepackage[AUTO]{inputenc}\n"
+                       "\\documentclass{mccontract}\n[NO-PACKAGES]"
                        ("\\mccarticle{%s}" . "\\mccarticle*{%s}")
                        ("\\mccparagraph{%s}" . "\\mccparagraph*{%s}")))
 
@@ -8356,24 +8356,25 @@
         ;; please let me know so that we can find a solution.
 
         (setq org-export-latex-default-packages-alist
-              '(("AUTO" "inputenc" t)
-                ("T1" "fontenc" t)
-                ("" "fixltx2e" nil)
-                ("" "graphicx" t)
-                ("" "longtable" nil)
-                ("" "float" nil)
-                ("" "wrapfig" nil)
-                ("" "soul" t)
-                ("" "t1enc" t)
-                ("" "textcomp" t)
-                ("" "marvosym" t)
-                ("" "wasysym" t)
-                ("" "latexsym" t)
-                ("" "amssymb" t)
-                ("" "hyperref" nil)
-                "\\tolerance=1000"))
+              '(("AUTO" "inputenc")))
 
+        (add-to-list 'org-export-latex-packages-alist '("T1" "fontenc") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "fixltx2e") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "graphicx") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "longtable") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "float") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "wrapfig") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "soul") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "t1enc") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "textcomp") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "marvosym") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "wasysym") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "latexsym") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "amssymb") t)
+        (add-to-list 'org-export-latex-packages-alist '("" "hyperref") t)
+        (add-to-list 'org-export-latex-packages-alist '"\\tolerance=1000" t)
 
+
 ;;*** Not sorted
 
         (section "Not sorted")
@@ -8442,11 +8443,11 @@
 
         ;; if you want fontified source code, then you must include the
         ;; `listings' package
-        (add-to-list 'org-export-latex-packages-alist '("" "listings"))
+        (add-to-list 'org-export-latex-packages-alist '("" "listings") t)
 
         ;; if you want colored source code, then you need to include the
         ;; `xcolor' package
-        (add-to-list 'org-export-latex-packages-alist '("" "xcolor"))
+        (add-to-list 'org-export-latex-packages-alist '("" "xcolor") t)
 250 2.0.0 o97I0aWb013863 Message accepted for delivery
500 5.5.1 Command unrecognized: ""
500 5.5.1 Command unrecognized: "                      '("mcreport""
500 5.5.1 Command unrecognized: "-                       
"\\documentclass{mcreport}\n\\usepackage[AUTO]{inputenc}\n""
500 5.5.1 Command unrecognized: "+                       
"\\documentclass{mcreport}\n[NO-PACKAGES]""
500 5.5.1 Command unrecognized: "                        ("\\chapter{%s}" . 
"\\chapter*{%s}")"
500 5.5.1 Command unrecognized: "                        ("\\section{%s}" . 
"\\section*{%s}")"
500 5.5.1 Command unrecognized: "                        ("\\subsection{%s}" . 
"\\subsection*{%s}")"
500 5.5.1 Command unrecognized: "@@ -8305,7 +8305,7 @@"
500 5.5.1 Command unrecognized: " "
500 5.5.1 Command unrecognized: "         (add-to-list 'org-export-latex-
classes"
500 5.5.1 Command unrecognized: "                      '("mcbook""
500 5.5.1 Command unrecognized: "-                       
"\\documentclass{mcbook}\n\\usepackage[AUTO]{inputenc}\n""
500 5.5.1 Command unrecognized: "+                       
"\\documentclass{mcbook}\n[NO-PACKAGES]""
500 5.5.1 Command unrecognized: "                        ("\\chapter{%s}" . 
"\\chapter*{%s}")"
500 5.5.1 Command unrecognized: "                        ("\\section{%s}" . 
"\\section*{%s}")"
500 5.5.1 Command unrecognized: "                        ("\\subsection{%s}" . 
"\\subsection*{%s}")"
500 5.5.1 Command unrecognized: "@@ -8314,7 +8314,7 @@"
500 5.5.1 Command unrecognized: " "
500 5.5.1 Command unrecognized: "         (add-to-list 'org-export-latex-
classes"
500 5.5.1 Command unrecognized: "                      '("alta""
500 5.5.1 Command unrecognized: "-                       
"\\documentclass{alta}\n\\usepackage[AUTO]{inputenc}\n""
500 5.5.1 Command unrecognized: "+                       
"\\documentclass{alta}\n""
500 5.5.1 Command unrecognized: "                        ("\\chapter{%s}" . 
"\\chapter*{%s}")"
500 5.5.1 Command unrecognized: "                        ("\\section{%s}" . 
"\\section*{%s}")"
500 5.5.1 Command unrecognized: "                        ("\\subsection{%s}" . 
"\\subsection*{%s}")"
421 4.7.0 eir.is.scarlet.be Too many bad commands; closing connection
QUIT





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

* Re: Problem when sending diffs
  2010-10-07 17:21           ` Andreas Schwab
  2010-10-07 18:08             ` Francesco Pizzolante
@ 2010-10-07 18:12             ` Lars Magne Ingebrigtsen
  2010-10-07 18:24               ` Francesco Pizzolante
  1 sibling, 1 reply; 18+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-07 18:12 UTC (permalink / raw)
  To: ding

Andreas Schwab <schwab@linux-m68k.org> writes:

> It looks as if the dot line together with the previous three lines were
> sent out of sequence and were supposed to be sent at the end of the
> data.

Ah, yes.  True.  `smtpmail-send-data' sends data line-by-line,
apparently, so this has to be a very odd bug in Emacs or Emacs's Windows
build.  It's not a Gnus bug, in any case.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Problem when sending diffs
  2010-10-07 18:12             ` Lars Magne Ingebrigtsen
@ 2010-10-07 18:24               ` Francesco Pizzolante
  2010-10-07 18:53                 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 18+ messages in thread
From: Francesco Pizzolante @ 2010-10-07 18:24 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> 
> Andreas Schwab <schwab <at> linux-m68k.org> writes:
> 
> > It looks as if the dot line together with the previous three lines were
> > sent out of sequence and were supposed to be sent at the end of the
> > data.
> 
> Ah, yes.  True.  `smtpmail-send-data' sends data line-by-line,
> apparently, so this has to be a very odd bug in Emacs or Emacs's Windows
> build.  It's not a Gnus bug, in any case.

I just tried with the following version: 

GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600)
 of 2010-09-29 on LENNART-69DE564

But it's still the same problem...

What do I have to do to "fix" the problem? Is there a workaround?
Is there a newer version of smtpmail?

Thanks,
Francesco





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

* Re: Problem when sending diffs
  2010-10-07 18:24               ` Francesco Pizzolante
@ 2010-10-07 18:53                 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 18+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-07 18:53 UTC (permalink / raw)
  To: ding

Francesco Pizzolante <fpz@missioncriticalit.com> writes:

> What do I have to do to "fix" the problem? Is there a workaround?
> Is there a newer version of smtpmail?

Try asking on the emacs-devel mailing list whether anybody has heard of
the problem there.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

end of thread, other threads:[~2010-10-07 18:53 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-20  7:00 Problem when sending diffs Francesco Pizzolante
2010-09-20 16:31 ` Lars Magne Ingebrigtsen
2010-10-07 11:34   ` Francesco Pizzolante
2010-10-07 12:01     ` Julien Danjou
2010-10-07 13:29       ` Francesco Pizzolante
2010-10-07 13:34         ` Julien Danjou
2010-10-07 13:40           ` Francesco Pizzolante
2010-10-07 13:34         ` Lars Magne Ingebrigtsen
2010-10-07 13:41           ` Francesco Pizzolante
2010-10-07 13:49             ` Lars Magne Ingebrigtsen
2010-10-07 13:58               ` Francesco Pizzolante
2010-10-07 14:01                 ` Lars Magne Ingebrigtsen
2010-10-07 14:07                   ` Francesco Pizzolante
2010-10-07 17:21           ` Andreas Schwab
2010-10-07 18:08             ` Francesco Pizzolante
2010-10-07 18:12             ` Lars Magne Ingebrigtsen
2010-10-07 18:24               ` Francesco Pizzolante
2010-10-07 18:53                 ` Lars Magne Ingebrigtsen

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