blob: b718b9a04b31bda0a7a8a2d42de7460f97f8175c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|