commit ghc-mime-mail for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package ghc-mime-mail for openSUSE:Factory 
checked in at 2017-08-31 20:48:27

Comparing /work/SRC/openSUSE:Factory/ghc-mime-mail (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mime-mail.new (New)


Package is "ghc-mime-mail"

Thu Aug 31 20:48:27 2017 rev:8 rq:513431 version:0.4.13.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mime-mail/ghc-mime-mail.changes  
2017-06-04 02:01:07.589212059 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mime-mail.new/ghc-mime-mail.changes 
2017-08-31 20:48:27.702840635 +0200
@@ -1,0 +2,10 @@
+Mon Jul 24 14:29:29 UTC 2017 - psim...@suse.com
+
+- Update to version 0.4.13.1 revision 6.
+
+---
+Mon Jul 24 03:01:13 UTC 2017 - psim...@suse.com
+
+- Update to version 0.4.13.1 revision 5.
+
+---



Other differences:
--
++ ghc-mime-mail.spec ++
--- /var/tmp/diff_new_pack.sjBaoE/_old  2017-08-31 20:48:28.482731164 +0200
+++ /var/tmp/diff_new_pack.sjBaoE/_new  2017-08-31 20:48:28.482731164 +0200
@@ -26,7 +26,7 @@
 Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/4.cabal#/%{pkg_name}.cabal
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/6.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base64-bytestring-devel
 BuildRequires:  ghc-blaze-builder-devel

++ mime-mail.cabal ++
--- /var/tmp/diff_new_pack.sjBaoE/_old  2017-08-31 20:48:28.570718813 +0200
+++ /var/tmp/diff_new_pack.sjBaoE/_new  2017-08-31 20:48:28.574718252 +0200
@@ -14,7 +14,7 @@
 extra-source-files:
 README.md
 ChangeLog.md
-x-revision: 4
+x-revision: 6
 
 source-repository head
 type: git
@@ -24,14 +24,14 @@
 exposed-modules:
 Network.Mail.Mime
 build-depends:
-base ==4.*,
-base64-bytestring >=0.1 && <1.1,
-process >=1.0 && <1.5,
-random >=1.0 && <1.2,
-blaze-builder >=0.2.1 && <0.5,
-bytestring >=0.9.1 && <0.11,
+base >= 4 && < 5,
+base64-bytestring >=0.1,
+process >=1.0,
+random >=1.0,
+blaze-builder >=0.2.1,
+bytestring >=0.9.1,
 text >=0.7 && <1.3,
-filepath >=1.2 && <1.5
+filepath >=1.2
 
 test-suite tests
 type: exitcode-stdio-1.0




commit ghc-mime-mail for openSUSE:Factory

2017-06-03 Thread root
Hello community,

here is the log from the commit of package ghc-mime-mail for openSUSE:Factory 
checked in at 2017-06-04 02:01:05

Comparing /work/SRC/openSUSE:Factory/ghc-mime-mail (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mime-mail.new (New)


Package is "ghc-mime-mail"

Sun Jun  4 02:01:05 2017 rev:7 rq:500839 version:0.4.13.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mime-mail/ghc-mime-mail.changes  
2017-05-27 13:15:28.136071297 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mime-mail.new/ghc-mime-mail.changes 
2017-06-04 02:01:07.589212059 +0200
@@ -1,0 +2,5 @@
+Mon May 22 08:08:49 UTC 2017 - psim...@suse.com
+
+- Update to version 0.4.13.1 revision 4 with cabal2obs.
+
+---



Other differences:
--
++ ghc-mime-mail.spec ++
--- /var/tmp/diff_new_pack.HeYcpz/_old  2017-06-04 02:01:08.341105930 +0200
+++ /var/tmp/diff_new_pack.HeYcpz/_new  2017-06-04 02:01:08.341105930 +0200
@@ -26,7 +26,7 @@
 Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/4.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base64-bytestring-devel
 BuildRequires:  ghc-blaze-builder-devel

++ mime-mail.cabal ++
--- /var/tmp/diff_new_pack.HeYcpz/_old  2017-06-04 02:01:08.377100849 +0200
+++ /var/tmp/diff_new_pack.HeYcpz/_new  2017-06-04 02:01:08.381100285 +0200
@@ -14,7 +14,7 @@
 extra-source-files:
 README.md
 ChangeLog.md
-x-revision: 2
+x-revision: 4
 
 source-repository head
 type: git
@@ -37,11 +37,11 @@
 type: exitcode-stdio-1.0
 main-is: Spec.hs
 build-depends:
-base >=4.9 && <4.10,
+base >=4 && <4.10,
 hspec >=1.3 && <2.5,
 mime-mail >=0.4.13.1 && <0.5,
 blaze-builder >=0.4.0.2 && <0.5,
-bytestring >=0.10.8.1 && <0.11,
+bytestring >=0.9.1 && <0.11,
 text >=1.2.2.1 && <1.3
 hs-source-dirs: test
 other-modules:




commit ghc-mime-mail for openSUSE:Factory

2017-05-27 Thread root
Hello community,

here is the log from the commit of package ghc-mime-mail for openSUSE:Factory 
checked in at 2017-05-27 13:15:22

Comparing /work/SRC/openSUSE:Factory/ghc-mime-mail (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mime-mail.new (New)


Package is "ghc-mime-mail"

Sat May 27 13:15:22 2017 rev:6 rq:495467 version:0.4.13.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mime-mail/ghc-mime-mail.changes  
2017-04-14 13:38:24.333586997 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mime-mail.new/ghc-mime-mail.changes 
2017-05-27 13:15:28.136071297 +0200
@@ -1,0 +2,10 @@
+Mon May  8 17:29:55 UTC 2017 - psim...@suse.com
+
+- Update to version 0.4.13.1 revision 2 with cabal2obs.
+
+---
+Wed May  3 08:14:04 UTC 2017 - psim...@suse.com
+
+- Update to version 0.4.13.1 revision 1 with cabal2obs.
+
+---

New:

  mime-mail.cabal



Other differences:
--
++ ghc-mime-mail.spec ++
--- /var/tmp/diff_new_pack.saVYaS/_old  2017-05-27 13:15:29.727846255 +0200
+++ /var/tmp/diff_new_pack.saVYaS/_new  2017-05-27 13:15:29.731845691 +0200
@@ -26,6 +26,7 @@
 Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base64-bytestring-devel
 BuildRequires:  ghc-blaze-builder-devel
@@ -57,6 +58,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ mime-mail.cabal ++
name: mime-mail
version: 0.4.13.1
cabal-version: >=1.8
build-type: Simple
license: MIT
license-file: LICENSE
maintainer: Michael Snoyman 
homepage: http://github.com/snoyberg/mime-mail
synopsis: Compose MIME email messages.
description:
Hackage documentation generation is not reliable. For up to date 
documentation, please see: .
category: Email
author: Michael Snoyman 
extra-source-files:
README.md
ChangeLog.md
x-revision: 2

source-repository head
type: git
location: git://github.com/snoyberg/mime-mail.git

library
exposed-modules:
Network.Mail.Mime
build-depends:
base ==4.*,
base64-bytestring >=0.1 && <1.1,
process >=1.0 && <1.5,
random >=1.0 && <1.2,
blaze-builder >=0.2.1 && <0.5,
bytestring >=0.9.1 && <0.11,
text >=0.7 && <1.3,
filepath >=1.2 && <1.5

test-suite tests
type: exitcode-stdio-1.0
main-is: Spec.hs
build-depends:
base >=4.9 && <4.10,
hspec >=1.3 && <2.5,
mime-mail >=0.4.13.1 && <0.5,
blaze-builder >=0.4.0.2 && <0.5,
bytestring >=0.10.8.1 && <0.11,
text >=1.2.2.1 && <1.3
hs-source-dirs: test
other-modules:
Network.Mail.MimeSpec
ghc-options: -Wall



commit ghc-mime-mail for openSUSE:Factory

2017-04-14 Thread root
Hello community,

here is the log from the commit of package ghc-mime-mail for openSUSE:Factory 
checked in at 2017-04-14 13:38:23

Comparing /work/SRC/openSUSE:Factory/ghc-mime-mail (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mime-mail.new (New)


Package is "ghc-mime-mail"

Fri Apr 14 13:38:23 2017 rev:5 rq:485142 version:0.4.13.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mime-mail/ghc-mime-mail.changes  
2017-03-14 10:05:35.332517589 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-mime-mail.new/ghc-mime-mail.changes 
2017-04-14 13:38:24.333586997 +0200
@@ -1,0 +2,5 @@
+Tue Mar 14 09:26:28 UTC 2017 - psim...@suse.com
+
+- Update to version 0.4.13.1 with cabal2obs.
+
+---

Old:

  mime-mail-0.4.13.tar.gz

New:

  mime-mail-0.4.13.1.tar.gz



Other differences:
--
++ ghc-mime-mail.spec ++
--- /var/tmp/diff_new_pack.9eTrEt/_old  2017-04-14 13:38:25.193465470 +0200
+++ /var/tmp/diff_new_pack.9eTrEt/_new  2017-04-14 13:38:25.197464905 +0200
@@ -19,7 +19,7 @@
 %global pkg_name mime-mail
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.4.13
+Version:0.4.13.1
 Release:0
 Summary:Compose MIME email messages
 License:MIT

++ mime-mail-0.4.13.tar.gz -> mime-mail-0.4.13.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mime-mail-0.4.13/ChangeLog.md 
new/mime-mail-0.4.13.1/ChangeLog.md
--- old/mime-mail-0.4.13/ChangeLog.md   2017-02-07 13:11:08.0 +0100
+++ new/mime-mail-0.4.13.1/ChangeLog.md 2017-03-07 05:18:09.0 +0100
@@ -1,3 +1,7 @@
+## 0.4.13.1
+
+* Fix [#50](https://github.com/snoyberg/mime-mail/issues/50): space between 
name and address [#51](https://github.com/snoyberg/mime-mail/pull/51)
+
 ## 0.4.13
 
 * Sanitize headers to protect against email injection.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mime-mail-0.4.13/Network/Mail/Mime.hs 
new/mime-mail-0.4.13.1/Network/Mail/Mime.hs
--- old/mime-mail-0.4.13/Network/Mail/Mime.hs   2017-02-07 13:11:08.0 
+0100
+++ new/mime-mail-0.4.13.1/Network/Mail/Mime.hs 2017-03-07 05:17:36.0 
+0100
@@ -257,7 +257,7 @@
 -- Since 0.4.3
 showAddress :: Address -> Builder
 showAddress a = mconcat
-[ maybe mempty ((fromByteString " " <>) . encodedWord) (addressName a)
+[ maybe mempty ((<> fromByteString " ") . encodedWord) (addressName a)
 , fromByteString "<"
 , fromText (sanitizeHeader $ addressEmail a)
 , fromByteString ">"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mime-mail-0.4.13/mime-mail.cabal 
new/mime-mail-0.4.13.1/mime-mail.cabal
--- old/mime-mail-0.4.13/mime-mail.cabal2017-02-07 13:11:08.0 
+0100
+++ new/mime-mail-0.4.13.1/mime-mail.cabal  2017-03-07 05:18:12.0 
+0100
@@ -1,5 +1,5 @@
 Name:mime-mail
-Version: 0.4.13
+Version: 0.4.13.1
 Synopsis:Compose MIME email messages.
 description: Hackage documentation generation is not reliable. For up 
to date documentation, please see: .
 Homepage:http://github.com/snoyberg/mime-mail
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mime-mail-0.4.13/test/Network/Mail/MimeSpec.hs 
new/mime-mail-0.4.13.1/test/Network/Mail/MimeSpec.hs
--- old/mime-mail-0.4.13/test/Network/Mail/MimeSpec.hs  2015-12-20 
06:59:17.0 +0100
+++ new/mime-mail-0.4.13.1/test/Network/Mail/MimeSpec.hs2017-03-07 
05:17:36.0 +0100
@@ -56,6 +56,11 @@
 then True
 else error $ show $ lines' gen
 
+it "issue #50" $
+let addr = Address (Just "Name_ (is): @hi?") "u...@domain.tld"
+enc = "=?utf-8?Q?Name=5F_=28is=29=3A_=40hi=3F?= 
"
+ in renderAddress addr `shouldBe` enc
+
 lines' :: L8.ByteString -> [L8.ByteString]
 lines' =
 map stripCR . L8.lines




commit ghc-mime-mail for openSUSE:Factory

2017-03-14 Thread root
Hello community,

here is the log from the commit of package ghc-mime-mail for openSUSE:Factory 
checked in at 2017-03-14 10:05:34

Comparing /work/SRC/openSUSE:Factory/ghc-mime-mail (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mime-mail.new (New)


Package is "ghc-mime-mail"

Tue Mar 14 10:05:34 2017 rev:4 rq:461662 version:0.4.13

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mime-mail/ghc-mime-mail.changes  
2017-01-12 15:50:45.390549487 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-mime-mail.new/ghc-mime-mail.changes 
2017-03-14 10:05:35.332517589 +0100
@@ -1,0 +2,5 @@
+Sun Feb 12 14:09:09 UTC 2017 - psim...@suse.com
+
+- Update to version 0.4.13 with cabal2obs.
+
+---

Old:

  mime-mail-0.4.12.tar.gz

New:

  mime-mail-0.4.13.tar.gz



Other differences:
--
++ ghc-mime-mail.spec ++
--- /var/tmp/diff_new_pack.zixDWs/_old  2017-03-14 10:05:35.820448498 +0100
+++ /var/tmp/diff_new_pack.zixDWs/_new  2017-03-14 10:05:35.820448498 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-mime-mail
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %global pkg_name mime-mail
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.4.12
+Version:0.4.13
 Release:0
 Summary:Compose MIME email messages
 License:MIT

++ mime-mail-0.4.12.tar.gz -> mime-mail-0.4.13.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mime-mail-0.4.12/ChangeLog.md 
new/mime-mail-0.4.13/ChangeLog.md
--- old/mime-mail-0.4.12/ChangeLog.md   2016-12-11 16:14:16.0 +0100
+++ new/mime-mail-0.4.13/ChangeLog.md   2017-02-07 13:11:08.0 +0100
@@ -1,3 +1,7 @@
+## 0.4.13
+
+* Sanitize headers to protect against email injection.
+
 ## 0.4.12
 
 * Add function to add attachments with content id 
[#48](https://github.com/snoyberg/mime-mail/pull/48)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mime-mail-0.4.12/Network/Mail/Mime.hs 
new/mime-mail-0.4.13/Network/Mail/Mime.hs
--- old/mime-mail-0.4.12/Network/Mail/Mime.hs   2016-12-11 16:14:16.0 
+0100
+++ new/mime-mail-0.4.13/Network/Mail/Mime.hs   2017-02-07 13:11:08.0 
+0100
@@ -56,7 +56,7 @@
 import qualified Data.Text.Lazy.Encoding as LT
 import Data.ByteString.Char8 ()
 import Data.Bits ((.&.), shiftR)
-import Data.Char (isAscii)
+import Data.Char (isAscii, isControl)
 import Data.Word (Word8)
 import qualified Data.ByteString as S
 import Data.Text (Text)
@@ -229,11 +229,15 @@
 renderAddress address =
 TE.decodeUtf8 $ toByteString $ showAddress address
 
+-- Only accept characters between 33 and 126, excluding colons. 
[RFC2822](https://tools.ietf.org/html/rfc2822#section-2.2)
+sanitizeFieldName :: S.ByteString -> S.ByteString
+sanitizeFieldName = S.filter (\w -> w >= 33 && w <= 126 && w /= 58)
+
 showHeader :: (S.ByteString, Text) -> Builder
 showHeader (k, v) = mconcat
-[ fromByteString k
+[ fromByteString (sanitizeFieldName k)
 , fromByteString ": "
-, encodeIfNeeded v
+, encodeIfNeeded (sanitizeHeader v)
 , fromByteString "\n"
 ]
 
@@ -255,10 +259,14 @@
 showAddress a = mconcat
 [ maybe mempty ((fromByteString " " <>) . encodedWord) (addressName a)
 , fromByteString "<"
-, fromText (addressEmail a)
+, fromText (sanitizeHeader $ addressEmail a)
 , fromByteString ">"
 ]
 
+-- Filter out control characters to prevent CRLF injection.
+sanitizeHeader :: Text -> Text
+sanitizeHeader = T.filter (not . isControl)
+
 showBoundPart :: Boundary -> (Headers, Builder) -> Builder
 showBoundPart (Boundary b) (headers, content) = mconcat
 [ fromByteString "--"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mime-mail-0.4.12/mime-mail.cabal 
new/mime-mail-0.4.13/mime-mail.cabal
--- old/mime-mail-0.4.12/mime-mail.cabal2016-12-11 16:14:16.0 
+0100
+++ new/mime-mail-0.4.13/mime-mail.cabal2017-02-07 13:11:08.0 
+0100
@@ -1,5 +1,5 @@
 Name:mime-mail
-Version: 0.4.12
+Version: 0.4.13
 Synopsis:Compose MIME email messages.
 description: Hackage documentation generation is not reliable. For up 
to date documentation, please see: .
 Homepage:http://github.com/snoyberg/mime-mail




commit ghc-mime-mail for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

here is the log from the commit of package ghc-mime-mail for openSUSE:Factory 
checked in at 2016-07-20 09:29:40

Comparing /work/SRC/openSUSE:Factory/ghc-mime-mail (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mime-mail.new (New)


Package is "ghc-mime-mail"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mime-mail/ghc-mime-mail.changes  
2016-05-03 09:35:16.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mime-mail.new/ghc-mime-mail.changes 
2016-07-20 09:29:42.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 16:55:41 UTC 2016 - psim...@suse.com
+
+- Update to version 0.4.11 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-mime-mail.spec ++
--- /var/tmp/diff_new_pack.ZRozz7/_old  2016-07-20 09:29:43.0 +0200
+++ /var/tmp/diff_new_pack.ZRozz7/_new  2016-07-20 09:29:43.0 +0200
@@ -62,11 +62,11 @@
 
 
 %build
-%{ghc_lib_build}
+%ghc_lib_build
 
 
 %install
-%{ghc_lib_install}
+%ghc_lib_install
 
 
 %check
@@ -76,12 +76,10 @@
 
 
 %post devel
-%{ghc_pkg_recache}
-
+%ghc_pkg_recache
 
 %postun devel
-%{ghc_pkg_recache}
-
+%ghc_pkg_recache
 
 %files -f %{name}.files
 %defattr(-,root,root,-)
@@ -89,6 +87,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc README.md
+%doc ChangeLog.md README.md
 
 %changelog