Change email xmpp header if it already exists

This commit is contained in:
Bob Mottram 2016-08-28 10:09:06 +01:00
parent 9bcd603d71
commit 08c82aeece
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ fi
if [ -f /home/$USERNAME/.muttrc ]; then
if ! grep -q "Jabber-ID" /home/$USERNAME/.muttrc; then
echo "my_hdr Jabber-ID: $EMAIL_ADDRESS" >> /home/$USERNAME/.muttrc
else
sed -i "s|my_hdr Jabber-ID.*|my_hdr Jabber-ID: $EMAIL_ADDRESS|g" /home/$USERNAME/.muttrc
fi
fi