--- /dev/null
+Freedom License v1 (2021年08月17日)
+
+全く無限的自由です。
+It's infinite freedom.
\ No newline at end of file
--- /dev/null
+PREFIX ?= /usr/local
+
+fmt:
+ shfmt -p -w rin
+
+install:
+ install -Dm0755 rin ${PREFIX}/bin/rin
+ install -Dm0600 rin.1 ${PREFIX}/share/man/man1/rin.1
+uninstall:
+ rm -f ${PREFIX}/bin/rin
+ rm -f ${PREFIX}/man/man1/rin.1
+
--- /dev/null
+RIN(1) FreeBSD General Commands Manual RIN(1)
+
+NAME
+ rin – My personal e-mail assistant, named after Rin Kaenbyou (aka Orin)
+
+SYNOPSIS
+ rin [check] [clean] [fetch] [list] account
+
+DESCRIPTION
+ It is a script that uses fdm(1) and mblaze(7) adapted to my configuration
+
+USAGE
+ check account
+ Check for mail in the server
+
+ clean account
+ Clean up the Maildir directory
+
+ fetch account
+ Fetch mail from the remote server
+
+ list account
+ List messages on a Maildir
+
+AUTHORS
+ Izuru Yakumo <yakumo.izuru@chaotic.ninja>
+
+FreeBSD 13.3-RELEASE July 25, 2024 FreeBSD 13.3-RELEASE
+
--- /dev/null
+#!/bin/sh
+# $TheSupernovaDuo$
+# (o)rin - my personal e-mail assistant in posix shell
+
+# Source code:
+# - https://gitler.moe/novaburst/orin
+# - https://git.chaotic.ninja/yakumo.izuru/orin
+
+# Check for mail in the server
+# Arguments: <account>
+fn_check() {
+ fdm -a "$@" poll 2>/dev/null
+ if [ $? -ne 0 ]; then
+ echo "ごめんなさい、できませんでした..."
+ exit 1
+ fi
+}
+
+# Clean-up the Maildir directory
+# Arguments: <account>
+fn_clean() {
+ find "$@"/cur -type f -print -delete
+}
+# Fetch e-mails from remote server
+# Arguments: <account>
+fn_fetch() {
+ echo "はい、すぐに!"
+ fdm -a "$@" fetch 2>/dev/null
+ if [ $? -ne 0 ]; then
+ echo "ごめんなさい、できませんでした..."
+ exit 1
+ fi
+}
+# List messages on a Maildir
+# Arguments: <account>
+fn_list() {
+ minc -q "$HOME/Mail/$@/INBOX"
+ mlist -s "$HOME/Mail/$@/INBOX" | msort -dr | mthread -r | mseq -S | mscan
+}
+# Print an usage note
+# Triggered if the assistant is called without any arguments.
+fn_usage() {
+ printf "usage: %s [ check | clean | fetch | list ] <account/message> \n" "$(basename $0)"
+}
+case $1 in
+check)
+ fn_check "$2"
+ ;;
+clean)
+ fn_clean "$2"
+ ;;
+fetch)
+ fn_fetch "$2"
+ ;;
+list)
+ fn_list "$2"
+ ;;
+*)
+ fn_usage
+ ;;
+esac
--- /dev/null
+.Dd July 25, 2024
+.Dt RIN 1
+.Os
+.Sh NAME
+.Nm rin
+.Nd My personal e-mail assistant, named after Rin Kaenbyou (aka "Orin")
+.Sh SYNOPSIS
+.Nm
+.Op check
+.Op clean
+.Op fetch
+.Op list
+.Ar account
+.Sh DESCRIPTION
+It is a script that uses
+.Xr fdm 1
+and
+.Xr mblaze 7
+adapted to my configuration
+.Sh USAGE
+.Bl -tag -width 6n
+.It check Ar account
+Check for mail in the server
+.It clean Ar account
+Clean up the Maildir directory
+.It fetch Ar account
+Fetch mail from the remote server
+.It list Ar account
+List messages on a Maildir
+.El
+.Sh AUTHORS
+.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
--- /dev/null
+Freedom License v1 (2021年08月17日)
+
+全く無限的自由です。
+It's infinite freedom.
\ No newline at end of file
--- /dev/null
+PREFIX ?= /usr/local
+
+fmt:
+ shfmt -p -w rin
+
+install:
+ install -Dm0755 rin ${PREFIX}/bin/rin
+ install -Dm0600 rin.1 ${PREFIX}/share/man/man1/rin.1
+uninstall:
+ rm -f ${PREFIX}/bin/rin
+ rm -f ${PREFIX}/man/man1/rin.1
+
--- /dev/null
+RIN(1) FreeBSD General Commands Manual RIN(1)
+
+NAME
+ rin – My personal e-mail assistant, named after Rin Kaenbyou (aka Orin)
+
+SYNOPSIS
+ rin [check] [clean] [fetch] [list] account
+
+DESCRIPTION
+ It is a script that uses fdm(1) and mblaze(7) adapted to my configuration
+
+USAGE
+ check account
+ Check for mail in the server
+
+ clean account
+ Clean up the Maildir directory
+
+ fetch account
+ Fetch mail from the remote server
+
+ list account
+ List messages on a Maildir
+
+AUTHORS
+ Izuru Yakumo <yakumo.izuru@chaotic.ninja>
+
+FreeBSD 13.3-RELEASE July 25, 2024 FreeBSD 13.3-RELEASE
+
--- /dev/null
+#!/bin/sh
+# $TheSupernovaDuo$
+# (o)rin - my personal e-mail assistant in posix shell
+
+# Source code:
+# - https://gitler.moe/novaburst/orin
+# - https://git.chaotic.ninja/yakumo.izuru/orin
+
+# Check for mail in the server
+# Arguments: <account>
+fn_check() {
+ fdm -a "$@" poll 2>/dev/null
+ if [ $? -ne 0 ]; then
+ echo "ごめんなさい、できませんでした..."
+ exit 1
+ fi
+}
+
+# Clean-up the Maildir directory
+# Arguments: <account>
+fn_clean() {
+ find "$@"/cur -type f -print -delete
+}
+# Fetch e-mails from remote server
+# Arguments: <account>
+fn_fetch() {
+ echo "はい、すぐに!"
+ fdm -a "$@" fetch 2>/dev/null
+ if [ $? -ne 0 ]; then
+ echo "ごめんなさい、できませんでした..."
+ exit 1
+ fi
+}
+# List messages on a Maildir
+# Arguments: <account>
+fn_list() {
+ minc -q "$HOME/Mail/$@/INBOX"
+ mlist -s "$HOME/Mail/$@/INBOX" | msort -dr | mthread -r | mseq -S | mscan
+}
+# Print an usage note
+# Triggered if the assistant is called without any arguments.
+fn_usage() {
+ printf "usage: %s [ check | clean | fetch | list ] <account/message> \n" "$(basename $0)"
+}
+case $1 in
+check)
+ fn_check "$2"
+ ;;
+clean)
+ fn_clean "$2"
+ ;;
+fetch)
+ fn_fetch "$2"
+ ;;
+list)
+ fn_list "$2"
+ ;;
+*)
+ fn_usage
+ ;;
+esac
--- /dev/null
+.Dd July 25, 2024
+.Dt RIN 1
+.Os
+.Sh NAME
+.Nm rin
+.Nd My personal e-mail assistant, named after Rin Kaenbyou (aka "Orin")
+.Sh SYNOPSIS
+.Nm
+.Op check
+.Op clean
+.Op fetch
+.Op list
+.Ar account
+.Sh DESCRIPTION
+It is a script that uses
+.Xr fdm 1
+and
+.Xr mblaze 7
+adapted to my configuration
+.Sh USAGE
+.Bl -tag -width 6n
+.It check Ar account
+Check for mail in the server
+.It clean Ar account
+Clean up the Maildir directory
+.It fetch Ar account
+Fetch mail from the remote server
+.It list Ar account
+List messages on a Maildir
+.El
+.Sh AUTHORS
+.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
--- /dev/null
+Freedom License v1 (2021年08月17日)
+
+全く無限的自由です。
+It's infinite freedom.
\ No newline at end of file
--- /dev/null
+PREFIX ?= /usr/local
+
+fmt:
+ shfmt -p -w rin
+
+install:
+ install -Dm0755 rin ${PREFIX}/bin/rin
+ install -Dm0600 rin.1 ${PREFIX}/share/man/man1/rin.1
+uninstall:
+ rm -f ${PREFIX}/bin/rin
+ rm -f ${PREFIX}/man/man1/rin.1
+
--- /dev/null
+RIN(1) FreeBSD General Commands Manual RIN(1)
+
+NAME
+ rin – My personal e-mail assistant, named after Rin Kaenbyou (aka Orin)
+
+SYNOPSIS
+ rin [check] [clean] [fetch] [list] account
+
+DESCRIPTION
+ It is a script that uses fdm(1) and mblaze(7) adapted to my configuration
+
+USAGE
+ check account
+ Check for mail in the server
+
+ clean account
+ Clean up the Maildir directory
+
+ fetch account
+ Fetch mail from the remote server
+
+ list account
+ List messages on a Maildir
+
+AUTHORS
+ Izuru Yakumo <yakumo.izuru@chaotic.ninja>
+
+FreeBSD 13.3-RELEASE July 25, 2024 FreeBSD 13.3-RELEASE
+
--- /dev/null
+#!/bin/sh
+# $TheSupernovaDuo$
+# (o)rin - my personal e-mail assistant in posix shell
+
+# Source code:
+# - https://gitler.moe/novaburst/orin
+# - https://git.chaotic.ninja/yakumo.izuru/orin
+
+# Check for mail in the server
+# Arguments: <account>
+fn_check() {
+ fdm -a "$@" poll 2>/dev/null
+ if [ $? -ne 0 ]; then
+ echo "ごめんなさい、できませんでした..."
+ exit 1
+ fi
+}
+
+# Clean-up the Maildir directory
+# Arguments: <account>
+fn_clean() {
+ find "$@"/cur -type f -print -delete
+}
+# Fetch e-mails from remote server
+# Arguments: <account>
+fn_fetch() {
+ echo "はい、すぐに!"
+ fdm -a "$@" fetch 2>/dev/null
+ if [ $? -ne 0 ]; then
+ echo "ごめんなさい、できませんでした..."
+ exit 1
+ fi
+}
+# List messages on a Maildir
+# Arguments: <account>
+fn_list() {
+ minc -q "$HOME/Mail/$@/INBOX"
+ mlist -s "$HOME/Mail/$@/INBOX" | msort -dr | mthread -r | mseq -S | mscan
+}
+# Print an usage note
+# Triggered if the assistant is called without any arguments.
+fn_usage() {
+ printf "usage: %s [ check | clean | fetch | list ] <account/message> \n" "$(basename $0)"
+}
+case $1 in
+check)
+ fn_check "$2"
+ ;;
+clean)
+ fn_clean "$2"
+ ;;
+fetch)
+ fn_fetch "$2"
+ ;;
+list)
+ fn_list "$2"
+ ;;
+*)
+ fn_usage
+ ;;
+esac
--- /dev/null
+.Dd July 25, 2024
+.Dt RIN 1
+.Os
+.Sh NAME
+.Nm rin
+.Nd My personal e-mail assistant, named after Rin Kaenbyou (aka "Orin")
+.Sh SYNOPSIS
+.Nm
+.Op check
+.Op clean
+.Op fetch
+.Op list
+.Ar account
+.Sh DESCRIPTION
+It is a script that uses
+.Xr fdm 1
+and
+.Xr mblaze 7
+adapted to my configuration
+.Sh USAGE
+.Bl -tag -width 6n
+.It check Ar account
+Check for mail in the server
+.It clean Ar account
+Clean up the Maildir directory
+.It fetch Ar account
+Fetch mail from the remote server
+.It list Ar account
+List messages on a Maildir
+.El
+.Sh AUTHORS
+.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
--- /dev/null
+Freedom License v1 (2021年08月17日)
+
+全く無限的自由です。
+It's infinite freedom.
\ No newline at end of file
--- /dev/null
+PREFIX ?= /usr/local
+
+fmt:
+ shfmt -p -w rin
+
+install:
+ install -Dm0755 rin ${PREFIX}/bin/rin
+ install -Dm0600 rin.1 ${PREFIX}/share/man/man1/rin.1
+uninstall:
+ rm -f ${PREFIX}/bin/rin
+ rm -f ${PREFIX}/man/man1/rin.1
+
--- /dev/null
+RIN(1) FreeBSD General Commands Manual RIN(1)
+
+NAME
+ rin – My personal e-mail assistant, named after Rin Kaenbyou (aka Orin)
+
+SYNOPSIS
+ rin [check] [clean] [fetch] [list] account
+
+DESCRIPTION
+ It is a script that uses fdm(1) and mblaze(7) adapted to my configuration
+
+USAGE
+ check account
+ Check for mail in the server
+
+ clean account
+ Clean up the Maildir directory
+
+ fetch account
+ Fetch mail from the remote server
+
+ list account
+ List messages on a Maildir
+
+AUTHORS
+ Izuru Yakumo <yakumo.izuru@chaotic.ninja>
+
+FreeBSD 13.3-RELEASE July 25, 2024 FreeBSD 13.3-RELEASE
+
--- /dev/null
+#!/bin/sh
+# $TheSupernovaDuo$
+# (o)rin - my personal e-mail assistant in posix shell
+
+# Source code:
+# - https://gitler.moe/novaburst/orin
+# - https://git.chaotic.ninja/yakumo.izuru/orin
+
+# Check for mail in the server
+# Arguments: <account>
+fn_check() {
+ fdm -a "$@" poll 2>/dev/null
+ if [ $? -ne 0 ]; then
+ echo "ごめんなさい、できませんでした..."
+ exit 1
+ fi
+}
+
+# Clean-up the Maildir directory
+# Arguments: <account>
+fn_clean() {
+ find "$@"/cur -type f -print -delete
+}
+# Fetch e-mails from remote server
+# Arguments: <account>
+fn_fetch() {
+ echo "はい、すぐに!"
+ fdm -a "$@" fetch 2>/dev/null
+ if [ $? -ne 0 ]; then
+ echo "ごめんなさい、できませんでした..."
+ exit 1
+ fi
+}
+# List messages on a Maildir
+# Arguments: <account>
+fn_list() {
+ minc -q "$HOME/Mail/$@/INBOX"
+ mlist -s "$HOME/Mail/$@/INBOX" | msort -dr | mthread -r | mseq -S | mscan
+}
+# Print an usage note
+# Triggered if the assistant is called without any arguments.
+fn_usage() {
+ printf "usage: %s [ check | clean | fetch | list ] <account/message> \n" "$(basename $0)"
+}
+case $1 in
+check)
+ fn_check "$2"
+ ;;
+clean)
+ fn_clean "$2"
+ ;;
+fetch)
+ fn_fetch "$2"
+ ;;
+list)
+ fn_list "$2"
+ ;;
+*)
+ fn_usage
+ ;;
+esac
--- /dev/null
+.Dd July 25, 2024
+.Dt RIN 1
+.Os
+.Sh NAME
+.Nm rin
+.Nd My personal e-mail assistant, named after Rin Kaenbyou (aka "Orin")
+.Sh SYNOPSIS
+.Nm
+.Op check
+.Op clean
+.Op fetch
+.Op list
+.Ar account
+.Sh DESCRIPTION
+It is a script that uses
+.Xr fdm 1
+and
+.Xr mblaze 7
+adapted to my configuration
+.Sh USAGE
+.Bl -tag -width 6n
+.It check Ar account
+Check for mail in the server
+.It clean Ar account
+Clean up the Maildir directory
+.It fetch Ar account
+Fetch mail from the remote server
+.It list Ar account
+List messages on a Maildir
+.El
+.Sh AUTHORS
+.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja