|
@@ -62,12 +62,12 @@ replacement=" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addAccount() { |
|
|
addAccount() { |
|
|
if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi |
|
|
|
|
|
cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc |
|
|
|
|
|
# Add the mutt profile. |
|
|
|
|
|
cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc |
|
|
|
|
|
# Add on offlineimaprc sync list. |
|
|
|
|
|
sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc ;} |
|
|
|
|
|
|
|
|
if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi |
|
|
|
|
|
cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc |
|
|
|
|
|
# Add the mutt profile. |
|
|
|
|
|
cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc |
|
|
|
|
|
# Add on offlineimaprc sync list. |
|
|
|
|
|
sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc ;} |
|
|
|
|
|
|
|
|
addAccount |
|
|
addAccount |
|
|
|
|
|
|
|
|