aerc-wizard

aerc and isync auto-configuration
git clone https://git.awy.one/aerc-wizard
Log | Files | Refs | README | LICENSE

commit 1f9275fdb34dd3c48e010e0eda9b9dce4aecc161
parent 6bcee221ee10a6fc9d2dd47e85de74d3af3cfd76
Author: awy <awy@awy.one>
Date:   Wed, 24 Dec 2025 00:24:10 +0300

rebranding

rm

Diffstat:
DFUNDING.yml | 2--
Mbin/aew | 26+++++++++++++-------------
2 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/FUNDING.yml b/FUNDING.yml @@ -1,2 +0,0 @@ -custom: ["https://lukesmith.xyz/donate.html"] -github: lukesmithxyz diff --git a/bin/aew b/bin/aew @@ -25,7 +25,7 @@ set -a prefix="/usr/local" maildir="${XDG_DATA_HOME:-$HOME/.local/share}/mail" -muttshare="$prefix/share/aerc-wizard" +aercshare="$prefix/share/aerc-wizard" cachedir="${XDG_CACHE_HOME:-$HOME/.cache}/aerc-wizard" aercdir="${XDG_CONFIG_HOME:-$HOME/.config}/aerc" aercconf="$aercdir/aerc.conf" @@ -35,16 +35,16 @@ msmtplog="${XDG_STATE_HOME:-$HOME/.local/state}/msmtp/msmtp.log" mbsyncrc="${MBSYNCRC:-$HOME/.mbsyncrc}" mpoprc="${XDG_CONFIG_HOME:-$HOME/.config}/mpop/config" imapnotify="${XDG_CONFIG_HOME:-$HOME/.config}/imapnotify" -mpoptemp="$muttshare/mpop-temp" -mbsynctemp="$muttshare/mbsync-temp" -mbsyncgmailtemp="$muttshare/mbsync-gmail-temp" -aerctemp="$muttshare/aerc-temp" -aercbase="$muttshare/aerc-base" -aerctempconf="$muttshare/aerc-conf" -msmtptemp="$muttshare/msmtp-temp" -onlinetemp="$muttshare/online-temp" -notmuchtemp="$muttshare/notmuch-temp" -imapnotifytemp="$muttshare/imapnotify-temp" +mpoptemp="$aercshare/mpop-temp" +mbsynctemp="$aercshare/mbsync-temp" +mbsyncgmailtemp="$aercshare/mbsync-gmail-temp" +aerctemp="$aercshare/aerc-temp" +aercbase="$aercshare/aerc-base" +aerctempconf="$aercshare/aerc-conf" +msmtptemp="$aercshare/msmtp-temp" +onlinetemp="$aercshare/online-temp" +notmuchtemp="$aercshare/notmuch-temp" +imapnotifytemp="$aercshare/imapnotify-temp" # With the use of templates, it's impossible to use parameter substitution. # Therefore, some default variables that might be otherwise overwritten are set # here. @@ -156,9 +156,9 @@ getprofiles() { } parsedomains() { - serverinfo="$(grep "^${fulladdr#*@}" "$muttshare/domains.csv" 2>/dev/null)" + serverinfo="$(grep "^${fulladdr#*@}" "$aercshare/domains.csv" 2>/dev/null)" - [ -z "$serverinfo" ] && serverinfo="$(grep "$(echo "${fulladdr#*@}" | sed "s/\.[^\.]*$/\.\\\*/")" "$muttshare/domains.csv" 2>/dev/null)" + [ -z "$serverinfo" ] && serverinfo="$(grep "$(echo "${fulladdr#*@}" | sed "s/\.[^\.]*$/\.\\\*/")" "$aercshare/domains.csv" 2>/dev/null)" IFS=, read -r service imapsugg iportsugg smtpsugg sportsugg <<EOF $serverinfo