mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: Add altermime.
* gnu/packages/mail.scm (altermime): New variable.
This commit is contained in:
parent
c22c6de453
commit
f6807498be
1 changed files with 63 additions and 0 deletions
|
@ -627,6 +627,69 @@ (define-public gmime-2.6
|
||||||
(base32
|
(base32
|
||||||
"0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi"))))))
|
"0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi"))))))
|
||||||
|
|
||||||
|
(define-public altermime
|
||||||
|
(package
|
||||||
|
(name "altermime")
|
||||||
|
(version "0.3.10")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "http://pldaniels.com/altermime/altermime-"
|
||||||
|
version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0vn3vmbcimv0n14khxr1782m76983zz9sf4j2kz5v86lammxld43"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:make-flags (list "CC=gcc"
|
||||||
|
(string-append "PREFIX=" (assoc-ref %outputs "out")))
|
||||||
|
#:tests? #f ; there are none
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(add-after 'unpack 'fix-bugs
|
||||||
|
(lambda _
|
||||||
|
(substitute* "MIME_headers.c"
|
||||||
|
(("hinfo->filename, sizeof\\(hinfo->name\\)")
|
||||||
|
"hinfo->filename, sizeof(hinfo->filename)")
|
||||||
|
(("memset\\(hinfo->defects, 0, _MIMEH_DEFECT_ARRAY_SIZE\\);")
|
||||||
|
"memset(hinfo->defects, 0, sizeof(hinfo->defects));"))
|
||||||
|
(substitute* "pldstr.c"
|
||||||
|
(("if \\(\\(st->start\\)&&\\(st->start != '\\\\0'\\)\\)")
|
||||||
|
"if ((st->start)&&(*st->start != '\\0'))"))
|
||||||
|
(substitute* "qpe.c"
|
||||||
|
(("if \\(lineend != '\\\\0'\\)")
|
||||||
|
"if (*lineend != '\\0')"))
|
||||||
|
#t))
|
||||||
|
(add-after 'unpack 'install-to-prefix
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Makefile"
|
||||||
|
(("/usr/local") "${PREFIX}")
|
||||||
|
(("cp altermime.*") "install -D -t ${PREFIX}/bin altermime\n"))
|
||||||
|
#t))
|
||||||
|
(add-after 'unpack 'disable-Werror
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Makefile"
|
||||||
|
(("-Werror") ""))
|
||||||
|
#t)))))
|
||||||
|
(home-page "https://pldaniels.com/altermime/")
|
||||||
|
(synopsis "Modify MIME-encoded messages")
|
||||||
|
(description
|
||||||
|
"alterMIME is a small program which is used to alter your mime-encoded
|
||||||
|
mailpack. What can alterMIME do?
|
||||||
|
|
||||||
|
@enumerate
|
||||||
|
@item Insert disclaimers,
|
||||||
|
@item insert arbitary X-headers,
|
||||||
|
@item modify existing headers,
|
||||||
|
@item remove attachments based on filename or content-type,
|
||||||
|
@item replace attachments based on filename.
|
||||||
|
@end enumerate
|
||||||
|
.")
|
||||||
|
;; MIME_headers.c is distributed under BSD-3; the rest of the code is
|
||||||
|
;; published under the alterMIME license.
|
||||||
|
(license (list (license:non-copyleft "file://LICENSE")
|
||||||
|
license:bsd-3))))
|
||||||
|
|
||||||
(define-public bogofilter
|
(define-public bogofilter
|
||||||
(package
|
(package
|
||||||
(name "bogofilter")
|
(name "bogofilter")
|
||||||
|
|
Loading…
Reference in a new issue