FreeBSD Bugzilla – Attachment 227265 Details for
Bug 257901
Resurrect mail/altermime: small program to alter mime-encoded mailpack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Git diff
altermime.diff (text/plain), 4.16 KB, created by
Daniel Morante
on 2021-08-17 02:01:32 UTC
(
hide
)
Description:
Git diff
Filename:
MIME Type:
Creator:
Daniel Morante
Created:
2021-08-17 02:01:32 UTC
Size:
4.16 KB
patch
obsolete
>diff --git a/mail/altermime/Makefile b/mail/altermime/Makefile >new file mode 100644 >index 000000000000..611ab8de52f3 >--- /dev/null >+++ b/mail/altermime/Makefile >@@ -0,0 +1,21 @@ >+# Created by: Daniel Morante <daniel@morante.net> >+ >+PORTNAME= altermime >+DISTVERSION= 0.3-dev >+CATEGORIES= mail >+MASTER_SITES= http://pldaniels.com/altermime/ >+ >+MAINTAINER= daniel@morante.net >+COMMENT= Small program which to alter your mime-encoded mailpack >+ >+LICENSE= ALTERMIME >+LICENSE_NAME= alterMIME LICENSE >+LICENSE_FILE= ${WRKSRC}/LICENCE >+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept >+ >+PLIST_FILES= bin/altermime >+ >+do-install: >+ ${INSTALL_PROGRAM} ${WRKSRC}/altermime ${STAGEDIR}${PREFIX}/bin >+ >+.include <bsd.port.mk> >diff --git a/mail/altermime/distinfo b/mail/altermime/distinfo >new file mode 100644 >index 000000000000..a99ced071b62 >--- /dev/null >+++ b/mail/altermime/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1629163973 >+SHA256 (altermime-0.3-dev.tar.gz) = 2765a2e1798ee7fbc7683c8e1d20accc08de3bb4f891bd48aba40ddd2b83e666 >+SIZE (altermime-0.3-dev.tar.gz) = 90047 >diff --git a/mail/altermime/files/patch-Makefile b/mail/altermime/files/patch-Makefile >new file mode 100644 >index 000000000000..05c444127664 >--- /dev/null >+++ b/mail/altermime/files/patch-Makefile >@@ -0,0 +1,11 @@ >+--- Makefile.orig 2016-06-30 14:47:14 UTC >++++ Makefile >+@@ -9,7 +9,7 @@ >+ # opposite of a disclaimer. >+ ALTERMIME_OPTIONS=-DALTERMIME_PRETEXT >+ #ALTERMIME_OPTIONS= >+-CFLAGS=-Wall -Werror -g -I. -O2 $(ALTERMIME_OPTIONS) >++CFLAGS=-I. $(ALTERMIME_OPTIONS) >+ OBJS= strstack.o mime_alter.o ffget.o pldstr.o filename-filters.o logger.o MIME_headers.o libmime-decoders.o boundary-stack.o qpe.o >+ >+ >diff --git a/mail/altermime/files/patch-ffget.c b/mail/altermime/files/patch-ffget.c >new file mode 100644 >index 000000000000..5609215f9440 >--- /dev/null >+++ b/mail/altermime/files/patch-ffget.c >@@ -0,0 +1,11 @@ >+--- ffget.c.orig 2016-06-30 14:47:14 UTC >++++ ffget.c >+@@ -550,7 +550,7 @@ char *FFGET_fgets( char *linein, int maxsize, FFGET_FI >+ // if we have another \r after it, in which case, we >+ // turn on SINGLE_DELIMETER_MODE. >+ >+- if ( (*crlfpos == '\r') ) >++ if (*crlfpos == '\r') >+ { >+ f->linebreak = FFGET_LINEBREAK_CR; >+ snprintf(f->lastbreak,sizeof(f->lastbreak),"\r"); >diff --git a/mail/altermime/files/patch-mime__alter.c b/mail/altermime/files/patch-mime__alter.c >new file mode 100644 >index 000000000000..c98e391572ab >--- /dev/null >+++ b/mail/altermime/files/patch-mime__alter.c >@@ -0,0 +1,11 @@ >+--- mime_alter.c.orig 2016-06-30 14:47:14 UTC >++++ mime_alter.c >+@@ -747,6 +747,8 @@ char *AM_adapt_linebreak( char *in, char *lb ) { >+ DAM LOGGER_log("%s:%d:AM_adapt_linebreak:DEBUG: changing done, new size=%d",FL,strlen(newblock)); >+ DAM LOGGER_log("%s:%d:AM_adapt_linebreak:DEBUG: %s", FL, newblock); >+ } >++ } else { >++ newblock = NULL; >+ } >+ >+ return newblock; >diff --git a/mail/altermime/files/patch-pldstr.c b/mail/altermime/files/patch-pldstr.c >new file mode 100644 >index 000000000000..a71aacbe2650 >--- /dev/null >+++ b/mail/altermime/files/patch-pldstr.c >@@ -0,0 +1,11 @@ >+--- pldstr.c.orig 2016-06-30 14:47:14 UTC >++++ pldstr.c >+@@ -297,7 +297,7 @@ char *PLD_strtok( struct PLD_strtok *st, char *line, c >+ >+ result = st->start; >+ >+- if ((st->start)&&(st->start != '\0')) >++ if ((st->start)&&(st->start != NULL)) >+ { >+ stop = strpbrk( st->start, delimeters ); /* locate our next delimeter */ >+ >diff --git a/mail/altermime/files/patch-qpe.c b/mail/altermime/files/patch-qpe.c >new file mode 100644 >index 000000000000..7ecac09973ec >--- /dev/null >+++ b/mail/altermime/files/patch-qpe.c >@@ -0,0 +1,11 @@ >+--- qpe.c.orig 2016-06-30 14:47:14 UTC >++++ qpe.c >+@@ -106,7 +106,7 @@ int qp_encode( char *out, size_t out_size, char *in, s >+ char charout[4]; >+ int charout_size=0; >+ >+- if (lineend != '\0') { >++ if (lineend != NULL) { >+ if (linestart == NULL) { >+ linestart = in; >+ } else { >diff --git a/mail/altermime/pkg-descr b/mail/altermime/pkg-descr >new file mode 100644 >index 000000000000..77a5d2247475 >--- /dev/null >+++ b/mail/altermime/pkg-descr >@@ -0,0 +1,3 @@ >+alterMIME is a small program which is used to alter your mime-encoded mailpack. >+ >+WWW: http://pldaniels.com/altermime/
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257901
:
227263
| 227265