Browse Source

Change email xmpp header if it already exists

stockholm
Bob Mottram 5 years ago
parent
commit
08c82aeece
  1. 2
      src/freedombone-addxmpp

2
src/freedombone-addxmpp

@ -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

Loading…
Cancel
Save