list

scripts

Repo containing scripts to be used with dovel, and git hooks that powers our web interface.

git clone https://dovel.email/scripts

95fd26a

Author: myr (myr@terminal.pink)

Date: Wed Mar 5 13:55:25 2025 -0300

Parent: fe1b2be

Removed reverse

Diff

post-receive

diff --git a/post-receive b/post-receive
index f30b124..26563f7 100755
--- a/post-receive
+++ b/post-receive
@@ -30,6 +30,7 @@ updategit() {
 		<dl>
 	EOF
 
+	# TODO: change git folder
 	for dir in "$HOME/git/dovel.email/"*
 	do
 		cat <<- EOF >> "$ROOT/git.html"

receive-dovel.email

diff --git a/receive-dovel.email b/receive-dovel.email
index 1564720..881921e 100755
--- a/receive-dovel.email
+++ b/receive-dovel.email
@@ -30,7 +30,7 @@ inbox() {
 	<h2>Mail</h2>
 	EOF
 
-	ls -ogdt --time-style long-iso "$root/mail/"* | rev | while read -r g x s d t f
+	ls -ogdt --time-style long-iso "$root/mail/"* | while read -r g x s d t f
 		do
 			[ -d "$f" ] || continue
 			f="$(basename "$f")"
@@ -127,8 +127,8 @@ save() {
 
 	# create html pages
 	echo "creating html pages"
-	emails > "$root/mail/$dir.html"
 	inbox > "$root/mail.html"
+	emails > "$root/mail/$dir.html"
 }
 
 root="$HOME/dovel.email"