Gnus development mailing list
 help / color / mirror / Atom feed
From: Francesco Pizzolante <fpz-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
To: ding-smP1P7uqpqc@public.gmane.org
Subject: Problem when sending diffs
Date: Mon, 20 Sep 2010 09:00:45 +0200	[thread overview]
Message-ID: <87bp7s6fvq.fsf@mundaneum.com> (raw)

[-- 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")


--=-=-=--

             reply	other threads:[~2010-09-20  7:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-20  7:00 Francesco Pizzolante [this message]
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

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=87bp7s6fvq.fsf@mundaneum.com \
    --to=fpz-djc/ipccudyqhejpep6iedvlejwurmry@public.gmane.org \
    --cc=ding-smP1P7uqpqc@public.gmane.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).