|
@@ -202,7 +202,7 @@ addAccount() { |
|
|
# Add the mutt profile. |
|
|
# Add the mutt profile. |
|
|
cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc |
|
|
cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc |
|
|
# Add a numbered shortcut in the muttrc |
|
|
# Add a numbered shortcut in the muttrc |
|
|
echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source "$muttdir"accounts/$title.muttrc<enter><change-folder>!<enter>'" >> "$muttdir"personal.muttrc |
|
|
|
|
|
|
|
|
echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source "$muttdir"accounts/$title.muttrc<enter><change-folder>!<enter>;<check-stats>'" >> "$muttdir"personal.muttrc |
|
|
|
|
|
|
|
|
# Add to offlineimaprc sync list. |
|
|
# Add to offlineimaprc sync list. |
|
|
sed -i.bu "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =\s*$/accounts = $title/g" ~/.offlineimaprc && rm ~/.offlineimaprc.bu |
|
|
sed -i.bu "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =\s*$/accounts = $title/g" ~/.offlineimaprc && rm ~/.offlineimaprc.bu |
|
|