From: www Date: Sun, 29 Sep 2024 21:29:50 +0000 (+0000) Subject: Mirrored from rin.git X-Git-Url: https://git.chaotic.ninja/gitweb/yakumo_izuru/?a=commitdiff_plain;h=HEAD;p=rin.git Mirrored from rin.git git-svn-id: https://svn.chaotic.ninja/svn/rin-yakumo.izuru@1 8d47a2aa-846f-a440-bac1-fd70eeff5b41 --- fcd7376bfa8c136e5e922e65754d871d8cabe58a diff --git a/branches/master/COPYING b/branches/master/COPYING new file mode 100644 index 0000000..9d27966 --- /dev/null +++ b/branches/master/COPYING @@ -0,0 +1,4 @@ +Freedom License v1 (2021年08月17日) + +全く無限的自由です。 +It's infinite freedom. \ No newline at end of file diff --git a/branches/master/Makefile b/branches/master/Makefile new file mode 100644 index 0000000..3fd0dfd --- /dev/null +++ b/branches/master/Makefile @@ -0,0 +1,12 @@ +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 + diff --git a/branches/master/README b/branches/master/README new file mode 100644 index 0000000..9d025ea --- /dev/null +++ b/branches/master/README @@ -0,0 +1,29 @@ +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 + +FreeBSD 13.3-RELEASE July 25, 2024 FreeBSD 13.3-RELEASE + diff --git a/branches/master/rin b/branches/master/rin new file mode 100644 index 0000000..4c4d98a --- /dev/null +++ b/branches/master/rin @@ -0,0 +1,61 @@ +#!/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: +fn_check() { + fdm -a "$@" poll 2>/dev/null + if [ $? -ne 0 ]; then + echo "ごめんなさい、できませんでした..." + exit 1 + fi +} + +# Clean-up the Maildir directory +# Arguments: +fn_clean() { + find "$@"/cur -type f -print -delete +} +# Fetch e-mails from remote server +# Arguments: +fn_fetch() { + echo "はい、すぐに!" + fdm -a "$@" fetch 2>/dev/null + if [ $? -ne 0 ]; then + echo "ごめんなさい、できませんでした..." + exit 1 + fi +} +# List messages on a Maildir +# Arguments: +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 ] \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 diff --git a/branches/master/rin.1 b/branches/master/rin.1 new file mode 100644 index 0000000..5e75d59 --- /dev/null +++ b/branches/master/rin.1 @@ -0,0 +1,32 @@ +.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 diff --git a/branches/origin-master/COPYING b/branches/origin-master/COPYING new file mode 100644 index 0000000..9d27966 --- /dev/null +++ b/branches/origin-master/COPYING @@ -0,0 +1,4 @@ +Freedom License v1 (2021年08月17日) + +全く無限的自由です。 +It's infinite freedom. \ No newline at end of file diff --git a/branches/origin-master/Makefile b/branches/origin-master/Makefile new file mode 100644 index 0000000..3fd0dfd --- /dev/null +++ b/branches/origin-master/Makefile @@ -0,0 +1,12 @@ +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 + diff --git a/branches/origin-master/README b/branches/origin-master/README new file mode 100644 index 0000000..9d025ea --- /dev/null +++ b/branches/origin-master/README @@ -0,0 +1,29 @@ +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 + +FreeBSD 13.3-RELEASE July 25, 2024 FreeBSD 13.3-RELEASE + diff --git a/branches/origin-master/rin b/branches/origin-master/rin new file mode 100644 index 0000000..4c4d98a --- /dev/null +++ b/branches/origin-master/rin @@ -0,0 +1,61 @@ +#!/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: +fn_check() { + fdm -a "$@" poll 2>/dev/null + if [ $? -ne 0 ]; then + echo "ごめんなさい、できませんでした..." + exit 1 + fi +} + +# Clean-up the Maildir directory +# Arguments: +fn_clean() { + find "$@"/cur -type f -print -delete +} +# Fetch e-mails from remote server +# Arguments: +fn_fetch() { + echo "はい、すぐに!" + fdm -a "$@" fetch 2>/dev/null + if [ $? -ne 0 ]; then + echo "ごめんなさい、できませんでした..." + exit 1 + fi +} +# List messages on a Maildir +# Arguments: +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 ] \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 diff --git a/branches/origin-master/rin.1 b/branches/origin-master/rin.1 new file mode 100644 index 0000000..5e75d59 --- /dev/null +++ b/branches/origin-master/rin.1 @@ -0,0 +1,32 @@ +.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 diff --git a/branches/origin/COPYING b/branches/origin/COPYING new file mode 100644 index 0000000..9d27966 --- /dev/null +++ b/branches/origin/COPYING @@ -0,0 +1,4 @@ +Freedom License v1 (2021年08月17日) + +全く無限的自由です。 +It's infinite freedom. \ No newline at end of file diff --git a/branches/origin/Makefile b/branches/origin/Makefile new file mode 100644 index 0000000..3fd0dfd --- /dev/null +++ b/branches/origin/Makefile @@ -0,0 +1,12 @@ +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 + diff --git a/branches/origin/README b/branches/origin/README new file mode 100644 index 0000000..9d025ea --- /dev/null +++ b/branches/origin/README @@ -0,0 +1,29 @@ +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 + +FreeBSD 13.3-RELEASE July 25, 2024 FreeBSD 13.3-RELEASE + diff --git a/branches/origin/rin b/branches/origin/rin new file mode 100644 index 0000000..4c4d98a --- /dev/null +++ b/branches/origin/rin @@ -0,0 +1,61 @@ +#!/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: +fn_check() { + fdm -a "$@" poll 2>/dev/null + if [ $? -ne 0 ]; then + echo "ごめんなさい、できませんでした..." + exit 1 + fi +} + +# Clean-up the Maildir directory +# Arguments: +fn_clean() { + find "$@"/cur -type f -print -delete +} +# Fetch e-mails from remote server +# Arguments: +fn_fetch() { + echo "はい、すぐに!" + fdm -a "$@" fetch 2>/dev/null + if [ $? -ne 0 ]; then + echo "ごめんなさい、できませんでした..." + exit 1 + fi +} +# List messages on a Maildir +# Arguments: +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 ] \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 diff --git a/branches/origin/rin.1 b/branches/origin/rin.1 new file mode 100644 index 0000000..5e75d59 --- /dev/null +++ b/branches/origin/rin.1 @@ -0,0 +1,32 @@ +.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 diff --git a/trunk/COPYING b/trunk/COPYING new file mode 100644 index 0000000..9d27966 --- /dev/null +++ b/trunk/COPYING @@ -0,0 +1,4 @@ +Freedom License v1 (2021年08月17日) + +全く無限的自由です。 +It's infinite freedom. \ No newline at end of file diff --git a/trunk/Makefile b/trunk/Makefile new file mode 100644 index 0000000..3fd0dfd --- /dev/null +++ b/trunk/Makefile @@ -0,0 +1,12 @@ +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 + diff --git a/trunk/README b/trunk/README new file mode 100644 index 0000000..9d025ea --- /dev/null +++ b/trunk/README @@ -0,0 +1,29 @@ +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 + +FreeBSD 13.3-RELEASE July 25, 2024 FreeBSD 13.3-RELEASE + diff --git a/trunk/rin b/trunk/rin new file mode 100644 index 0000000..4c4d98a --- /dev/null +++ b/trunk/rin @@ -0,0 +1,61 @@ +#!/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: +fn_check() { + fdm -a "$@" poll 2>/dev/null + if [ $? -ne 0 ]; then + echo "ごめんなさい、できませんでした..." + exit 1 + fi +} + +# Clean-up the Maildir directory +# Arguments: +fn_clean() { + find "$@"/cur -type f -print -delete +} +# Fetch e-mails from remote server +# Arguments: +fn_fetch() { + echo "はい、すぐに!" + fdm -a "$@" fetch 2>/dev/null + if [ $? -ne 0 ]; then + echo "ごめんなさい、できませんでした..." + exit 1 + fi +} +# List messages on a Maildir +# Arguments: +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 ] \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 diff --git a/trunk/rin.1 b/trunk/rin.1 new file mode 100644 index 0000000..5e75d59 --- /dev/null +++ b/trunk/rin.1 @@ -0,0 +1,32 @@ +.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