git: f40b3b8b3fa6 - main - mail/rubygem-extended_email_reply_parser: Add rubygem-extended_email_reply_parser 0.5.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 May 2024 06:29:36 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f40b3b8b3fa6ec4735bc2b3f27d14f985419973e commit f40b3b8b3fa6ec4735bc2b3f27d14f985419973e Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-16 06:13:44 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-16 06:21:51 +0000 mail/rubygem-extended_email_reply_parser: Add rubygem-extended_email_reply_parser 0.5.1 When implementing a "reply or comment by email" feature, it's necessary to filter out signatures and the previous conversation. One needs to extract just the relevant parts for the conversation or comment section of the application. This is what this ruby gem helps to do. This gem is an extended version of GitHub's email_reply_parser. It wraps the original email_reply_parser and allows to build extensions such as support for i18n and detecting previous conversation that is not properly marked as quotation by the sender's mail client. --- mail/Makefile | 1 + mail/rubygem-extended_email_reply_parser/Makefile | 22 ++++++++++++++++++++++ mail/rubygem-extended_email_reply_parser/distinfo | 3 +++ mail/rubygem-extended_email_reply_parser/pkg-descr | 9 +++++++++ 4 files changed, 35 insertions(+) diff --git a/mail/Makefile b/mail/Makefile index 920e143be1b4..1b6b5b8d4e6e 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -601,6 +601,7 @@ SUBDIR += rubygem-email_reply_parser-discourse SUBDIR += rubygem-email_reply_trimmer SUBDIR += rubygem-exception_notification + SUBDIR += rubygem-extended_email_reply_parser SUBDIR += rubygem-gitlab-mail_room SUBDIR += rubygem-mail SUBDIR += rubygem-mail_room diff --git a/mail/rubygem-extended_email_reply_parser/Makefile b/mail/rubygem-extended_email_reply_parser/Makefile new file mode 100644 index 000000000000..1fdeccc05bdd --- /dev/null +++ b/mail/rubygem-extended_email_reply_parser/Makefile @@ -0,0 +1,22 @@ +PORTNAME= extended_email_reply_parser +PORTVERSION= 0.5.1 +CATEGORIES= mail rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Extended version of GitHub's email_reply_parser +WWW= https://github.com/fiedl/extended_email_reply_parser + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/MIT-LICENSE + +RUN_DEPENDS= rubygem-activesupport71>=0:devel/rubygem-activesupport71 \ + rubygem-charlock_holmes>=0:textproc/rubygem-charlock_holmes \ + rubygem-email_reply_parser>=0.5.9<0.6:mail/rubygem-email_reply_parser \ + rubygem-mail>=0,2:mail/rubygem-mail + +USES= gem + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/mail/rubygem-extended_email_reply_parser/distinfo b/mail/rubygem-extended_email_reply_parser/distinfo new file mode 100644 index 000000000000..b0ee67a75fc5 --- /dev/null +++ b/mail/rubygem-extended_email_reply_parser/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1714227820 +SHA256 (rubygem/extended_email_reply_parser-0.5.1.gem) = a6527a18df9560897f8caaa2f177c97c1b718c319783477e35b333760f77e691 +SIZE (rubygem/extended_email_reply_parser-0.5.1.gem) = 20992 diff --git a/mail/rubygem-extended_email_reply_parser/pkg-descr b/mail/rubygem-extended_email_reply_parser/pkg-descr new file mode 100644 index 000000000000..de44a58e5a74 --- /dev/null +++ b/mail/rubygem-extended_email_reply_parser/pkg-descr @@ -0,0 +1,9 @@ +When implementing a "reply or comment by email" feature, it's necessary to +filter out signatures and the previous conversation. One needs to extract just +the relevant parts for the conversation or comment section of the application. +This is what this ruby gem helps to do. + +This gem is an extended version of GitHub's email_reply_parser. It wraps the +original email_reply_parser and allows to build extensions such as support for +i18n and detecting previous conversation that is not properly marked as +quotation by the sender's mail client.