Subject: [PATCH v12 22/40] gnu: Add go-github-com-emersion-go-imap-sortthread.

From: "(" <[email-masked]>
Date: Mon, 10 Oct 2022 08:17:36 +0100

From: "(unmatched-parenthesis" <[email-masked]>

* gnu/packages/golang.scm (go-github-com-emersion-go-imap-sortthread):
  New variable.
---
 gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 80cca4c83f..4e8e254b32 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6436,6 +6436,32 @@ (define-public go-github-com-emersion-go-imap
 can be used to build IMAP clients and servers.")
     (license license:expat)))
 
+(define-public go-github-com-emersion-go-imap-sortthread
+  (package
+    (name "go-github-com-emersion-go-imap-sortthread")
+    (version "1.2.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/emersion/go-imap-sortthread")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1cfbgz1l5angnj52v9pxwggai2shx0h78ffcp7j4r4lr7lzflnwz"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:import-path "github.com/emersion/go-imap-sortthread"))
+    (propagated-inputs (list go-golang-org-x-text
+                             go-github-com-emersion-go-sasl
+                             go-github-com-emersion-go-imap))
+    (home-page "https://github.com/emersion/go-imap-sortthread")
+    (synopsis "Sorting and threading of messages for the imap package")
+    (description
+     "The sortthread package implements message sorting and threading for
+@code{go-github-com-emersion-go-imap}.")
+    (license license:expat)))
+
 (define-public go-github-com-emersion-go-sasl
   (let ((commit "0b9dcfb154ac3d7515b08bc2691a0332800edfe9")
         (revision "1"))
-- 
2.38.0