summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/mm/DESCR8
-rw-r--r--mail/mm/MESSAGE12
-rw-r--r--mail/mm/Makefile81
-rw-r--r--mail/mm/PLIST357
-rw-r--r--mail/mm/distinfo6
-rw-r--r--mail/mm/files/sample-mm-conf23
-rw-r--r--mail/mm/patches/patch-Makefile76
7 files changed, 563 insertions, 0 deletions
diff --git a/mail/mm/DESCR b/mail/mm/DESCR
new file mode 100644
index 00000000000..6f3999e06de
--- /dev/null
+++ b/mail/mm/DESCR
@@ -0,0 +1,8 @@
+Columbia MM (Mail Manager) is an interactive, text-mode mail client for
+UNIX, based on the TOPS-20 MM program. It is written in C using the CCMD
+(TOPS-20 COMND Jsys in C) package developed at Columbia University.
+
+MM has a lot of features that appeal to people who deal mainly with
+text and who like to keep their hands on the keyboard and work fast. It
+is noted for its powerful message selection and management features and
+its user-friendly (truly) DEC-20 style command language.
diff --git a/mail/mm/MESSAGE b/mail/mm/MESSAGE
new file mode 100644
index 00000000000..957016a8d17
--- /dev/null
+++ b/mail/mm/MESSAGE
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2022/12/15 12:50:51 vins Exp $
+
+To configure mm, run ${PREFIX}/bin/mm-sysprof to enter the interactive
+setup.
+Then move the generated 'mm.conf' file to ${PREFIX}/pkg/lib/mm.
+Sample configuration files are available at ${PREFIX}/share/examples/mm.
+
+For the Emacs `mmail' mode, load the lisp library file provided as:
+${PREFIX}/lib/mm/mmail.el.
+
+===========================================================================
diff --git a/mail/mm/Makefile b/mail/mm/Makefile
new file mode 100644
index 00000000000..6010b661d52
--- /dev/null
+++ b/mail/mm/Makefile
@@ -0,0 +1,81 @@
+# $NetBSD: Makefile,v 1.1 2022/12/15 12:50:51 vins Exp $
+
+DISTNAME= mm-0.96.0.14
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/vins/dists/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= vins@NetBSD.org
+HOMEPAGE= https://www.kermitproject.org/mm/
+COMMENT= UNIX reimplementation of the TOPS-20 MM program
+LICENSE= modified-bsd
+
+USE_TOOLS+= pax
+
+MAKE_FLAGS+= OPT=${CFLAGS:Q}
+MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
+MAKE_FLAGS+= prefix=${PREFIX}
+MAKE_FLAGS+= LOCLIB=${DESTDIR}${PREFIX}/lib/mm
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_MESSAGE.paths= Replacing hard-coded paths.
+SUBST_FILES.paths+= config.h pathnames.h
+SUBST_FILES.paths+= regex-0.12/configure
+SUBST_SED.paths= -e 's|/usr/local|${PREFIX}|'
+
+SETUID_ROOT_PERMS= ${REAL_ROOT_USER} daemon 2551
+SPECIAL_PERMS+= lib/mm/movemail ${SETUID_ROOT_PERMS}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS:M*BSD} || ${OPSYS} == Linux
+TARGET:= ${LOWER_OPSYS}
+.elif ${OPSYS} == Darwin
+TARGET:= macosx
+.elif ${OPSYS} == SunOS
+. if ${OPSYS_VERSION} <= 051000
+TARGET:= solaris10
+. else
+TARGET:= solaris-gcc
+. endif
+.endif
+
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
+
+INSTALLATION_DIRS+= bin lib ${EGDIR} ${DOCDOR}
+
+WRKSRC= ${WRKDIR}/mm/mm
+
+post-extract:
+ ${RUN}${CHMOD} +x ${WRKSRC}/regex-0.12/configure
+
+pre-build:
+ ${RUN}cd ${WRKDIR}/mm/ccmd && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} ${TARGET}
+
+do-build:
+ ${RUN}cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} ${TARGET}
+
+pre-install:
+ ${RUN}cd ${WRKDIR}/mm/ccmd && ${SETENV} ${MAKE_ENV} \
+ ${INSTALL_ENV} ${MAKE_PROGRAM} \
+ prefix=${DESTDIR}${PREFIX} install
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sys-prof \
+ ${DESTDIR}/${PREFIX}/bin/mm-sysprof
+ ${RUN}cd ${WRKDIR}/mm/docs && \
+ ${PAX} -rw . ${DESTDIR}${DOCDIR}
+.for f in samples/*
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EGDIR}
+.endfor
+ ${INSTALL_DATA} ${FILESDIR}/sample-mm-conf ${DESTDIR}${EGDIR}
+ #Fix files permissions.
+ ${RUN}${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libccmd.a
+ ${RUN}${CHMOD} g-w ${DESTDIR}${PREFIX}/lib/mm/mmail.el
+
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/mm/PLIST b/mail/mm/PLIST
new file mode 100644
index 00000000000..37189ff66cc
--- /dev/null
+++ b/mail/mm/PLIST
@@ -0,0 +1,357 @@
+@comment $NetBSD: PLIST,v 1.1 2022/12/15 12:50:51 vins Exp $
+bin/mm
+bin/mm-sysprof
+bin/mm-trans
+include/ccmd.h
+include/ccmdmd.h
+include/cmfnc.h
+include/cmfncs.h
+include/datime.h
+lib/libccmd.a
+lib/mm/help/READ.DIR/!.HLP
+lib/mm/help/READ.DIR/answer.HLP
+lib/mm/help/READ.DIR/backtrack.HLP
+lib/mm/help/READ.DIR/blank.HLP
+lib/mm/help/READ.DIR/browse.HLP
+lib/mm/help/READ.DIR/bug.HLP
+lib/mm/help/READ.DIR/cd.HLP
+lib/mm/help/READ.DIR/check.HLP
+lib/mm/help/READ.DIR/continue.HLP
+lib/mm/help/READ.DIR/copy.HLP
+lib/mm/help/READ.DIR/create-init.HLP
+lib/mm/help/READ.DIR/daytime.HLP
+lib/mm/help/READ.DIR/define.HLP
+lib/mm/help/READ.DIR/delete.HLP
+lib/mm/help/READ.DIR/echo.HLP
+lib/mm/help/READ.DIR/edit.HLP
+lib/mm/help/READ.DIR/finger.HLP
+lib/mm/help/READ.DIR/flag.HLP
+lib/mm/help/READ.DIR/follow.HLP
+lib/mm/help/READ.DIR/forward.HLP
+lib/mm/help/READ.DIR/headers.HLP
+lib/mm/help/READ.DIR/help.HLP
+lib/mm/help/READ.DIR/jump.HLP
+lib/mm/help/READ.DIR/keyword.HLP
+lib/mm/help/READ.DIR/kill.HLP
+lib/mm/help/READ.DIR/list.HLP
+lib/mm/help/READ.DIR/literal.HLP
+lib/mm/help/READ.DIR/mail.HLP
+lib/mm/help/READ.DIR/mark.HLP
+lib/mm/help/READ.DIR/mm.HLP
+lib/mm/help/READ.DIR/move.HLP
+lib/mm/help/READ.DIR/next.HLP
+lib/mm/help/READ.DIR/previous.HLP
+lib/mm/help/READ.DIR/print.HLP
+lib/mm/help/READ.DIR/profile.HLP
+lib/mm/help/READ.DIR/push.HLP
+lib/mm/help/READ.DIR/pwd.HLP
+lib/mm/help/READ.DIR/quit.HLP
+lib/mm/help/READ.DIR/remail.HLP
+lib/mm/help/READ.DIR/reply.HLP
+lib/mm/help/READ.DIR/restore-draft.HLP
+lib/mm/help/READ.DIR/route.HLP
+lib/mm/help/READ.DIR/save-init.HLP
+lib/mm/help/READ.DIR/send.HLP
+lib/mm/help/READ.DIR/set.HLP
+lib/mm/help/READ.DIR/show.HLP
+lib/mm/help/READ.DIR/spell.HLP
+lib/mm/help/READ.DIR/status.HLP
+lib/mm/help/READ.DIR/suspend.HLP
+lib/mm/help/READ.DIR/take.HLP
+lib/mm/help/READ.DIR/type.HLP
+lib/mm/help/READ.DIR/unanswer.HLP
+lib/mm/help/READ.DIR/undelete.HLP
+lib/mm/help/READ.DIR/unflag.HLP
+lib/mm/help/READ.DIR/unkeyword.HLP
+lib/mm/help/READ.DIR/unmark.HLP
+lib/mm/help/READ.DIR/version.HLP
+lib/mm/help/READ.DIR/who.HLP
+lib/mm/help/READ.DIR/write.HLP
+lib/mm/help/READ.DIR/z.HLP
+lib/mm/help/SEND.DIR/!.HLP
+lib/mm/help/SEND.DIR/bcc.HLP
+lib/mm/help/SEND.DIR/blank.HLP
+lib/mm/help/SEND.DIR/cc.HLP
+lib/mm/help/SEND.DIR/cd.HLP
+lib/mm/help/SEND.DIR/check.HLP
+lib/mm/help/SEND.DIR/copy.HLP
+lib/mm/help/SEND.DIR/create-init.HLP
+lib/mm/help/SEND.DIR/daytime.HLP
+lib/mm/help/SEND.DIR/define.HLP
+lib/mm/help/SEND.DIR/display.HLP
+lib/mm/help/SEND.DIR/echo.HLP
+lib/mm/help/SEND.DIR/edit.HLP
+lib/mm/help/SEND.DIR/erase.HLP
+lib/mm/help/SEND.DIR/fcc.HLP
+lib/mm/help/SEND.DIR/finger.HLP
+lib/mm/help/SEND.DIR/flag.HLP
+lib/mm/help/SEND.DIR/from.HLP
+lib/mm/help/SEND.DIR/headers.HLP
+lib/mm/help/SEND.DIR/help.HLP
+lib/mm/help/SEND.DIR/in-reply-to.HLP
+lib/mm/help/SEND.DIR/insert.HLP
+lib/mm/help/SEND.DIR/keyword.HLP
+lib/mm/help/SEND.DIR/list.HLP
+lib/mm/help/SEND.DIR/literal.HLP
+lib/mm/help/SEND.DIR/mark.HLP
+lib/mm/help/SEND.DIR/mm.HLP
+lib/mm/help/SEND.DIR/move.HLP
+lib/mm/help/SEND.DIR/print.HLP
+lib/mm/help/SEND.DIR/profile.HLP
+lib/mm/help/SEND.DIR/push.HLP
+lib/mm/help/SEND.DIR/pwd.HLP
+lib/mm/help/SEND.DIR/quit.HLP
+lib/mm/help/SEND.DIR/remove.HLP
+lib/mm/help/SEND.DIR/reply-to.HLP
+lib/mm/help/SEND.DIR/route.HLP
+lib/mm/help/SEND.DIR/save-draft.HLP
+lib/mm/help/SEND.DIR/save-init.HLP
+lib/mm/help/SEND.DIR/send.HLP
+lib/mm/help/SEND.DIR/set.HLP
+lib/mm/help/SEND.DIR/show.HLP
+lib/mm/help/SEND.DIR/spell.HLP
+lib/mm/help/SEND.DIR/status.HLP
+lib/mm/help/SEND.DIR/subject.HLP
+lib/mm/help/SEND.DIR/suspend.HLP
+lib/mm/help/SEND.DIR/take.HLP
+lib/mm/help/SEND.DIR/text.HLP
+lib/mm/help/SEND.DIR/to.HLP
+lib/mm/help/SEND.DIR/type.HLP
+lib/mm/help/SEND.DIR/unanswer.HLP
+lib/mm/help/SEND.DIR/unflag.HLP
+lib/mm/help/SEND.DIR/unkeyword.HLP
+lib/mm/help/SEND.DIR/unmark.HLP
+lib/mm/help/SEND.DIR/user-header.HLP
+lib/mm/help/SEND.DIR/version.HLP
+lib/mm/help/SEND.DIR/who.HLP
+lib/mm/help/SEND.DIR/write.HLP
+lib/mm/help/SEND.DIR/z.HLP
+lib/mm/help/TOP.DIR/!.HLP
+lib/mm/help/TOP.DIR/alias.HLP
+lib/mm/help/TOP.DIR/answer.HLP
+lib/mm/help/TOP.DIR/backtrack.HLP
+lib/mm/help/TOP.DIR/blank.HLP
+lib/mm/help/TOP.DIR/browse.HLP
+lib/mm/help/TOP.DIR/bug.HLP
+lib/mm/help/TOP.DIR/bye.HLP
+lib/mm/help/TOP.DIR/cd.HLP
+lib/mm/help/TOP.DIR/check.HLP
+lib/mm/help/TOP.DIR/continue.HLP
+lib/mm/help/TOP.DIR/copy.HLP
+lib/mm/help/TOP.DIR/count.HLP
+lib/mm/help/TOP.DIR/create-init.HLP
+lib/mm/help/TOP.DIR/daytime.HLP
+lib/mm/help/TOP.DIR/define.HLP
+lib/mm/help/TOP.DIR/delete.HLP
+lib/mm/help/TOP.DIR/echo.HLP
+lib/mm/help/TOP.DIR/edit.HLP
+lib/mm/help/TOP.DIR/examine.HLP
+lib/mm/help/TOP.DIR/exit.HLP
+lib/mm/help/TOP.DIR/expunge.HLP
+lib/mm/help/TOP.DIR/finger.HLP
+lib/mm/help/TOP.DIR/flag.HLP
+lib/mm/help/TOP.DIR/follow.HLP
+lib/mm/help/TOP.DIR/forward.HLP
+lib/mm/help/TOP.DIR/get.HLP
+lib/mm/help/TOP.DIR/headers.HLP
+lib/mm/help/TOP.DIR/help.HLP
+lib/mm/help/TOP.DIR/jump.HLP
+lib/mm/help/TOP.DIR/keyword.HLP
+lib/mm/help/TOP.DIR/list.HLP
+lib/mm/help/TOP.DIR/literal.HLP
+lib/mm/help/TOP.DIR/mail.HLP
+lib/mm/help/TOP.DIR/mark.HLP
+lib/mm/help/TOP.DIR/mm.HLP
+lib/mm/help/TOP.DIR/move.HLP
+lib/mm/help/TOP.DIR/next.HLP
+lib/mm/help/TOP.DIR/previous.HLP
+lib/mm/help/TOP.DIR/print.HLP
+lib/mm/help/TOP.DIR/profile.HLP
+lib/mm/help/TOP.DIR/push.HLP
+lib/mm/help/TOP.DIR/pwd.HLP
+lib/mm/help/TOP.DIR/quit.HLP
+lib/mm/help/TOP.DIR/read.HLP
+lib/mm/help/TOP.DIR/remail.HLP
+lib/mm/help/TOP.DIR/reply.HLP
+lib/mm/help/TOP.DIR/restore-draft.HLP
+lib/mm/help/TOP.DIR/review.HLP
+lib/mm/help/TOP.DIR/route.HLP
+lib/mm/help/TOP.DIR/save-init.HLP
+lib/mm/help/TOP.DIR/send.HLP
+lib/mm/help/TOP.DIR/set.HLP
+lib/mm/help/TOP.DIR/shell.HLP
+lib/mm/help/TOP.DIR/show.HLP
+lib/mm/help/TOP.DIR/sort.HLP
+lib/mm/help/TOP.DIR/spell.HLP
+lib/mm/help/TOP.DIR/status.HLP
+lib/mm/help/TOP.DIR/suspend.HLP
+lib/mm/help/TOP.DIR/take.HLP
+lib/mm/help/TOP.DIR/type.HLP
+lib/mm/help/TOP.DIR/unanswer.HLP
+lib/mm/help/TOP.DIR/undelete.HLP
+lib/mm/help/TOP.DIR/unflag.HLP
+lib/mm/help/TOP.DIR/unkeyword.HLP
+lib/mm/help/TOP.DIR/unmark.HLP
+lib/mm/help/TOP.DIR/version.HLP
+lib/mm/help/TOP.DIR/who.HLP
+lib/mm/help/TOP.DIR/write.HLP
+lib/mm/help/TOP.DIR/z.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/addressing.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/basic.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/bitnet.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/ccmd.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/command-history.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/command-line-edit.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/customization.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/directory.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/filing.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/information.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/internet.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/message-handling.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/message-sequence.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/message-tagging.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/other.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/shell.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/signature-file.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/text-mode.HLP
+lib/mm/help/TOPICS.DIR/READ.DIR/top.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/addressing.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/basic.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/bitnet.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/ccmd.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/command-history.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/command-line-edit.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/customization.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/directory.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/header-field.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/information.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/internet.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/message-sequence.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/other.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/shell.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/signature-file.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/text-mode.HLP
+lib/mm/help/TOPICS.DIR/SEND.DIR/top.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/addressing.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/basic.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/bitnet.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/ccmd.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/command-history.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/command-line-edit.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/customization.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/directory.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/filing.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/information.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/internet.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/message-handling.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/message-sequence.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/message-tagging.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/other.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/shell.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/signature-file.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/text-mode.HLP
+lib/mm/help/TOPICS.DIR/TOP.DIR/top.HLP
+lib/mm/help/VARS.DIR/aliases-use-groups.HLP
+lib/mm/help/VARS.DIR/append-new-mail.HLP
+lib/mm/help/VARS.DIR/append-signature.HLP
+lib/mm/help/VARS.DIR/auto-create-files.HLP
+lib/mm/help/VARS.DIR/auto-startup-get.HLP
+lib/mm/help/VARS.DIR/autowrap-column.HLP
+lib/mm/help/VARS.DIR/browse-clear-screen.HLP
+lib/mm/help/VARS.DIR/browse-pause.HLP
+lib/mm/help/VARS.DIR/check-interval.HLP
+lib/mm/help/VARS.DIR/clear-screen.HLP
+lib/mm/help/VARS.DIR/continuous-check.HLP
+lib/mm/help/VARS.DIR/control-d-automatic-send.HLP
+lib/mm/help/VARS.DIR/control-e-editor.HLP
+lib/mm/help/VARS.DIR/control-l-confirm.HLP
+lib/mm/help/VARS.DIR/control-n-abort.HLP
+lib/mm/help/VARS.DIR/crt-filter.HLP
+lib/mm/help/VARS.DIR/default-bcc-list.HLP
+lib/mm/help/VARS.DIR/default-cc-list.HLP
+lib/mm/help/VARS.DIR/default-fcc-list.HLP
+lib/mm/help/VARS.DIR/default-from.HLP
+lib/mm/help/VARS.DIR/default-mail-type.HLP
+lib/mm/help/VARS.DIR/default-read-command.HLP
+lib/mm/help/VARS.DIR/default-reply-to.HLP
+lib/mm/help/VARS.DIR/default-send-command.HLP
+lib/mm/help/VARS.DIR/directory-folders.HLP
+lib/mm/help/VARS.DIR/display-flagged-messages.HLP
+lib/mm/help/VARS.DIR/display-outgoing-message.HLP
+lib/mm/help/VARS.DIR/dont-print-headers.HLP
+lib/mm/help/VARS.DIR/dont-type-headers.HLP
+lib/mm/help/VARS.DIR/editor.HLP
+lib/mm/help/VARS.DIR/escape-automatic-send.HLP
+lib/mm/help/VARS.DIR/expunge-on-bye.HLP
+lib/mm/help/VARS.DIR/fast-init-file.HLP
+lib/mm/help/VARS.DIR/finger-command.HLP
+lib/mm/help/VARS.DIR/gnuemacs-mmail.HLP
+lib/mm/help/VARS.DIR/handle-changed-modtime.HLP
+lib/mm/help/VARS.DIR/header-options-file.HLP
+lib/mm/help/VARS.DIR/help-dir.HLP
+lib/mm/help/VARS.DIR/help-file.HLP
+lib/mm/help/VARS.DIR/incoming-mail.HLP
+lib/mm/help/VARS.DIR/keywords.HLP
+lib/mm/help/VARS.DIR/list-include-headers.HLP
+lib/mm/help/VARS.DIR/list-on-separate-pages.HLP
+lib/mm/help/VARS.DIR/mail-aliases.HLP
+lib/mm/help/VARS.DIR/mail-directory.HLP
+lib/mm/help/VARS.DIR/mail-file.HLP
+lib/mm/help/VARS.DIR/mime-filter.HLP
+lib/mm/help/VARS.DIR/mmail-path.HLP
+lib/mm/help/VARS.DIR/modify-read-only.HLP
+lib/mm/help/VARS.DIR/movemail-path.HLP
+lib/mm/help/VARS.DIR/new-file-mode.HLP
+lib/mm/help/VARS.DIR/only-print-headers.HLP
+lib/mm/help/VARS.DIR/only-type-headers.HLP
+lib/mm/help/VARS.DIR/personal-name.HLP
+lib/mm/help/VARS.DIR/print-filter.HLP
+lib/mm/help/VARS.DIR/prompt-for-bcc.HLP
+lib/mm/help/VARS.DIR/prompt-for-cc.HLP
+lib/mm/help/VARS.DIR/prompt-for-fcc.HLP
+lib/mm/help/VARS.DIR/prompt-rcpt-always.HLP
+lib/mm/help/VARS.DIR/read-prompt.HLP
+lib/mm/help/VARS.DIR/reply-all.HLP
+lib/mm/help/VARS.DIR/reply-include-me.HLP
+lib/mm/help/VARS.DIR/reply-indent.HLP
+lib/mm/help/VARS.DIR/reply-initial-display.HLP
+lib/mm/help/VARS.DIR/reply-insert.HLP
+lib/mm/help/VARS.DIR/saved-messages-file.HLP
+lib/mm/help/VARS.DIR/send-prompt.HLP
+lib/mm/help/VARS.DIR/send-verbose.HLP
+lib/mm/help/VARS.DIR/sendmail-background.HLP
+lib/mm/help/VARS.DIR/sendmail-verbose.HLP
+lib/mm/help/VARS.DIR/speller.HLP
+lib/mm/help/VARS.DIR/suspend-on-exit.HLP
+lib/mm/help/VARS.DIR/suspend-on-quit.HLP
+lib/mm/help/VARS.DIR/temp-directory.HLP
+lib/mm/help/VARS.DIR/terse-text-prompt.HLP
+lib/mm/help/VARS.DIR/top-level-prompt.HLP
+lib/mm/help/VARS.DIR/use-crt-filter-always.HLP
+lib/mm/help/VARS.DIR/use-editor-always.HLP
+lib/mm/help/VARS.DIR/use-invalid-address.HLP
+lib/mm/help/VARS.DIR/user-headers.HLP
+lib/mm/help/VARS.DIR/user-level.HLP
+lib/mm/help/VARS.DIR/user-name.HLP
+lib/mm/mmail.el
+lib/mm/movemail
+share/doc/mm/CHANGELOG
+share/doc/mm/DEBUG.NOTES
+share/doc/mm/INSTALL
+share/doc/mm/LICENSE.TXT
+share/doc/mm/README.TXT
+share/doc/mm/ccmd/DOC.TXT
+share/doc/mm/ccmd/INTRO.TXT
+share/doc/mm/ccmd/README
+share/doc/mm/ccmd/README.TOO
+share/doc/mm/notes/notes-beebe.txt
+share/doc/mm/notes/notes-fdc.txt
+share/doc/mm/notes/notes-klh.txt
+share/doc/mm/rfc/rfc2822.txt
+share/doc/mm/rfc/rfc733.txt
+share/doc/mm/rfc/rfc822.txt
+share/examples/mm/sample-mailcap
+share/examples/mm/sample-mm-conf
+share/examples/mm/sample-mm-header-options
+share/examples/mm/sample-mminit
+share/examples/mm/sample-shell-profile
diff --git a/mail/mm/distinfo b/mail/mm/distinfo
new file mode 100644
index 00000000000..b05b062a98d
--- /dev/null
+++ b/mail/mm/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/12/15 12:50:51 vins Exp $
+
+BLAKE2s (mm-0.96.0.14.tar.xz) = daf134b5d63c1b05e5701ba8c5f3bcdd3cd9fcaea17d08f9de06ade3aa136aa0
+SHA512 (mm-0.96.0.14.tar.xz) = c683d5cf8067314679bc107f39c5fabe40c926cdfa82fca232f6b24f55892087ef293c60eb884491d3e13374c04010213fa28d9f05c44f34605d15f065001c1d
+Size (mm-0.96.0.14.tar.xz) = 725328 bytes
+SHA1 (patch-Makefile) = a7bb46db85380521de4ec8401c70a03b4f6d3116
diff --git a/mail/mm/files/sample-mm-conf b/mail/mm/files/sample-mm-conf
new file mode 100644
index 00000000000..30906e81d19
--- /dev/null
+++ b/mail/mm/files/sample-mm-conf
@@ -0,0 +1,23 @@
+# System-wide initialization file for Columbia MM, version 0.96.0(14)
+# note that all lines beginning with "#" are comments
+
+# default mail format
+set default-mail-type mbox
+
+# default mail file
+set mail-file ~/mbox
+
+# possible paths for the mm authors
+define mm-authors bug-mm@columbia.edu
+
+# bug-mm is a local consultant who handles most mm problems
+# (No local bug address)
+define bug-mm mm-authors
+
+# path of default editor
+set editor /usr/bin/vi
+# is editor GNU Emacs
+set gnuemacs-mmail no
+
+# path for spell program
+set speller /usr/pkg/bin/hunspell
diff --git a/mail/mm/patches/patch-Makefile b/mail/mm/patches/patch-Makefile
new file mode 100644
index 00000000000..c74aa7cd9db
--- /dev/null
+++ b/mail/mm/patches/patch-Makefile
@@ -0,0 +1,76 @@
+$NetBSD: patch-Makefile,v 1.1 2022/12/15 12:50:51 vins Exp $
+
+Let pkgsrc handle package updates.
+
+--- Makefile.orig 2014-02-27 23:00:00.000000000 +0000
++++ Makefile
+@@ -295,26 +295,13 @@ all: mm movemail sys-prof mm-trans
+
+ $(BIN)/mm: mm
+ @echo installing MM EXECUTABLE
+- -@ls -alg $(BIN)/mm $(BIN)/mm.old
+- @cp mm $(BIN)/mm.new
+- @chmod 755 $(BIN)/mm.new
+- @if [ -f $(BIN)/mm ]; then \
+- mv $(BIN)/mm $(BIN)/mm.old; \
+- fi
+- @mv $(BIN)/mm.new $(BIN)/mm
+- -@ls -alg $(BIN)/mm $(BIN)/mm.old
++ @cp mm $(BIN)/mm
++ @chmod 755 $(BIN)/mm
+
+ $(BIN)/mm-trans: mm-trans
+ @echo installing MM-TRANS \(transform\)
+- -@ls -alg $(BIN)/mm-trans $(BIN)/mm-trans.old
+- @cp mm-trans $(BIN)/mm-trans.new
+- @if [ -f $(BIN)/mm-trans ]; then \
+- mv $(BIN)/mm-trans $(BIN)/mm-trans.old; \
+- fi
+- @mv $(BIN)/mm-trans.new $(BIN)/mm-trans
++ @cp mm-trans $(BIN)/mm-trans
+ @chmod 755 $(BIN)/mm-trans
+- -@ls -alg $(BIN)/mm-trans $(BIN)/mm-trans.old
+-
+
+ argsort: argsort.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o argsort argsort.c $(LIBS)
+@@ -357,7 +344,7 @@ HELP:
+ help:
+ @echo checking help files
+
+-install: main-install HELP $(LOCLIB)/mm.conf
++install: main-install HELP
+
+ $(LOCLIB):
+ -if [ ! -d $(LOCLIB) ] ; then mkdir $(LOCLIB) ; fi
+@@ -375,27 +362,12 @@ $(LOCLIB)/mm.conf: mm.conf
+
+ $(LOCLIB)/mmail.el: mmail.el
+ @echo installing MMAIL.EL
+- -@ls -alg $(LOCLIB)/mmail.el $(LOCLIB)/mmail.el.old
+- @cp mmail.el $(LOCLIB)/mmail.el.new
+- @chmod 664 $(LOCLIB)/mmail.el.new
+- @if [ -f $(LOCLIB)/mmail.el ]; then \
+- mv $(LOCLIB)/mmail.el $(LOCLIB)/mmail.el.old; \
+- fi
+- @mv $(LOCLIB)/mmail.el.new $(LOCLIB)/mmail.el
+- -@ls -alg $(LOCLIB)/mmail.el $(LOCLIB)/mmail.el.old
++ @cp mmail.el $(LOCLIB)/mmail.el
++ @chmod 664 $(LOCLIB)/mmail.el
+
+ $(LOCLIB)/movemail: movemail
+ @echo installing MOVEMAIL
+- -@ls -alg $(LOCLIB)/movemail $(LOCLIB)/movemail.old
+- @cp movemail $(LOCLIB)/movemail.new
+- @if [ -f $(LOCLIB)/movemail ]; then \
+- mv $(LOCLIB)/movemail $(LOCLIB)/movemail.old; \
+- fi
+- @mv $(LOCLIB)/movemail.new $(LOCLIB)/movemail
+- @chgrp daemon $(LOCLIB)/movemail
+- @chmod 2751 $(LOCLIB)/movemail
+- -@ls -alg $(LOCLIB)/movemail $(LOCLIB)/movemail.old
+-
++ @cp movemail $(LOCLIB)/movemail
+
+ $(LOCLIB)/help: help
+ @echo installing HELP