~anjan/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH] Modified script for tool versatility

Bosco Vallejo-Nágera <bosco@vallejonagera.xyz>
Details
Message ID
<20220610103452.8168-1-bosco@vallejonagera.xyz>
DKIM signature
missing
Download raw message
Patch: +8 -8
---
 scripts/mail.sh | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/scripts/mail.sh b/scripts/mail.sh
index 33e7870..c9be4c1 100755
--- a/scripts/mail.sh
+++ b/scripts/mail.sh
@@ -3,7 +3,7 @@
# minimal email client.
# script requires mbsync (isync) and mu
# mbsync is required to send email
# If you have alot of email use 
# If you have alot of email use
# format of MAILDIR should be $MAILDIR/ACCOUNT/{INBOX,Archive,etc.}/{cur,new,tmp}


@@ -38,7 +38,7 @@ finddir() {
}

prompt() {
	dmenu -i -fn Terminus-20 -c -l 15 "$@"
    sxmo_dmenu.sh -i "$@"
}

attachmenthandler() {
@@ -54,7 +54,7 @@ attachmenthandler() {
			zathura "$tmp"
			;;
		"text/html")
			firefox "$tmp" 
			firefox "$tmp"
			;;
	esac
	rm "$tmp"
@@ -66,9 +66,9 @@ showmsg() {

	if [ $incontext = 1 ]
	then
		st -e mless .
		sxmo_terminal.sh mless .
	else
		st -e mless
		sxmo_terminal.sh mless
	fi

	while : ;
@@ -96,7 +96,7 @@ showmsg() {
				ACCOUNT="$(findaccount .)"
				ARCHIVEDIR="$(finddir "$ACCOUNT" "archive")"
				mrefile -v . "$MAILDIR/$ACCOUNT/$ARCHIVEDIR" || echo "error occured" | prompt
				st -e mless .+1
				sxmo_terminal.sh mless .+1
				;;
			*)
				break ;;
@@ -116,7 +116,7 @@ mainmenu() {
				account="$(ls -1 "$MAILDIR" | prompt)"
				;;
			"Get Mail")
				st -e mbsync -a -c "$MBSYNC_CONFIG"
				sxmo_terminal.sh mbsync -a -c "$MBSYNC_CONFIG"
				;;
			"Show Inbox")
				#mlist "$MAILDIR"/"$account"/"$(finddir "$account" "inbox")" | mthread -r | mseq -S
@@ -136,7 +136,7 @@ mainmenu() {
}

# todo, move to startup script and check if set by user
export MAILDIR=~/.mail
export MAILDIR=~/.local/share/mail
export MBSYNC_CONFIG=~/.config/isync/mbsyncrc
export MBLAZE="$XDG_CONFIG_HOME/mblaze"
export MBLAZE_PAGER="less -R"
-- 
2.32.0 (Apple Git-132)
Bosco Vallejo-Nágera <bosco@vallejonagera.xyz>
Details
Message ID
<CKMEJGUK0HDC.2XV613X8Z61GI@MacBook-Pro-de-Bosco.local>
In-Reply-To
<20220610103452.8168-1-bosco@vallejonagera.xyz> (view parent)
DKIM signature
pass
Download raw message
Apologies for not specifying the repo it's patching, I'm new to
git-send-mail and thought it did it automatically.
It's just a minor change I had to do to get this working in the wayland
version of sxmo, by using sxmo_terminal and sxmo_dmenu instead of having
dmenu and st hard coded.
Details
Message ID
<87czfgjupd.fsf@momi.ca>
In-Reply-To
<CKMEJGUK0HDC.2XV613X8Z61GI@MacBook-Pro-de-Bosco.local> (view parent)
DKIM signature
pass
Download raw message
No worries, thank you and merged!

To git.sr.ht:~anjan/sxmo-userscripts
   73a654a..e9e18ff  master -> master

--
w:] www.momi.ca
pgp:] https://momi.ca/publickey.txt
Reply to thread Export thread (mbox)