diff options
| author | Carlos Maiolino <[email protected]> | 2024-11-07 16:02:26 +0100 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2024-11-07 16:02:26 +0100 |
| commit | 68b192629fd63cf71d86e45548fe92279d598505 (patch) | |
| tree | 6d0c261be70f69e64158d22d1b626e04022f75b6 | |
| parent | 9ceeb8675dd376385affbf4bf8fcc6f22fc2e7f3 (diff) | |
update email
| -rwxr-xr-x | bin/get_mail.sh | 17 | ||||
| -rwxr-xr-x | bin/korgmail | 8 | ||||
| -rwxr-xr-x | bin/sync_mail.sh | 31 |
3 files changed, 34 insertions, 22 deletions
diff --git a/bin/get_mail.sh b/bin/get_mail.sh deleted file mode 100755 index 2e07173..0000000 --- a/bin/get_mail.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -MBSYNC=`which mbsync` -NOTMUCH=`which notmuch` -#AFEW="/home/cmaiolino/.local/bin/afew" - -# -$MBSYNC --config="$HOME/Mail/RedHat/mbsyncrc" -q -a & -$MBSYNC --config=$HOME/Mail/maiolino/mbsyncrc -q -a & -$MBSYNC --config=$HOME/Mail/Korg/mbsyncrc -q -a & -$MBSYNC --config=$HOME/Mail/cem_dev/mbsyncrc -q -a & - -#KORG -#$MBSYNC --config=$HOME/Mail/Kernel/mbsyncrc -q -a -#$NOTMUCH new --quiet 2> /dev/null -#$NOTMUCH tag --input=$HOME/Mail/Kernel/kernel_nmtag.conf -# run mbsync again to update directory moving -#$MBSYNC --config=$HOME/Mail/Kernel/mbsyncrc -q -a diff --git a/bin/korgmail b/bin/korgmail index 1a914e0..3741930 100755 --- a/bin/korgmail +++ b/bin/korgmail @@ -1,7 +1,5 @@ #!/bin/bash -MUTT=`which neomutt` -MUTTRC="~/.mutt/muttrc-local-korg" - -$MUTT -F $MUTTRC - +MAIL_DIR=/home/cmaiolino/Mail/kernel +export NOTMUCH_CONFIG=$MAIL_DIR/notmuch-config +neomutt -F ~/.mutt/muttrc-kernel diff --git a/bin/sync_mail.sh b/bin/sync_mail.sh new file mode 100755 index 0000000..b718b9a --- /dev/null +++ b/bin/sync_mail.sh @@ -0,0 +1,31 @@ +#!/bin/bash +MBSYNC=`which mbsync` +NOTMUCH=`which notmuch` + +MUTT_DIR=/home/cmaiolino/.mutt +MAIL_DIR=/home/cmaiolino/Mail + +sync_redhat() { + local RH_MAIL=$MAIL_DIR/redhat + local MBSYNC_CONFIG=$RH_MAIL/mbsyncrc + local KORG_MUTTRC=$MUTT_DIR/muttrc-redhat + + mbsync --config=$MBSYNC_CONFIG -a -q +} + +sync_korg() { + local KORG_MAIL=$MAIL_DIR/kernel + local MBSYNC_CONFIG=$KORG_MAIL/mbsyncrc + local NOTMUCH_TAGS=$KORG_MAIL/kernel_nmtag.conf + local KORG_MUTTRC=$MUTT_DIR/muttrc-kernel + local KORG_NM_CONFIG=$KORG_MAIL/notmuch-config + local KORG_NM_TAGS=$KORG_MAIL/kernel_nmtag.conf + + mbsync --config=$MBSYNC_CONFIG -a -q + + notmuch --config=$KORG_NM_CONFIG new + notmuch --config=$KORG_NM_CONFIG tag --input=$KORG_NM_TAGS +} + +sync_redhat +sync_korg |
