Tidying
This commit is contained in:
parent
60b4b077d8
commit
7f23b21f5d
|
@ -857,29 +857,21 @@ function show_your_email_address {
|
||||||
onion_domain=$(cat "$HOME/.email_onion_domain")
|
onion_domain=$(cat "$HOME/.email_onion_domain")
|
||||||
fi
|
fi
|
||||||
dialog_height=14
|
dialog_height=14
|
||||||
|
onionemailstr=
|
||||||
if [[ "$HOSTNAME" != *'.onion' && "$onion_domain" ]]; then
|
if [[ "$HOSTNAME" != *'.onion' && "$onion_domain" ]]; then
|
||||||
if [ ! -f ~/.mutt/bdsmail ]; then
|
onionemailstr="\\n\\nOnion Email: ${USER}@${onion_domain}"
|
||||||
msgstr=$"\\nYou can press SHIFT and then drag the mouse and right click to copy.\\n\\nEmail Address: $MY_EMAIL_ADDRESS\\n\\nOnion Email: ${USER}@${onion_domain}\\n\\nKey ID: $GPG_ID\\n\\nFingerprint: $GPG_FINGERPRINT\\n\\nCreated: $GPG_DATE"
|
dialog_height=$((dialog_height+2))
|
||||||
dialog_height=17
|
|
||||||
else
|
|
||||||
bdsmail_address=$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}')
|
|
||||||
msgstr=$"\\nYou can press SHIFT and then drag the mouse and right click to copy.\\n\\nEmail Address: $MY_EMAIL_ADDRESS\\n\\nOnion Email: ${USER}@${onion_domain}\\n\\nKey ID: $GPG_ID\\n\\nFingerprint: $GPG_FINGERPRINT\\n\\nCreated: $GPG_DATE\\n\\nI2P Address: ${bdsmail_address}"
|
|
||||||
dialog_height=20
|
|
||||||
fi
|
fi
|
||||||
else
|
msgstrbase=$"\\nYou can press SHIFT and then drag the mouse and right click to copy.\\n\\nEmail Address: ${MY_EMAIL_ADDRESS}${onionemailstr}\\n\\nKey ID: ${GPG_ID}\\n\\nFingerprint: ${GPG_FINGERPRINT}\\n\\nCreated: ${GPG_DATE}"
|
||||||
|
bdsmail_address=
|
||||||
if [ ! -f ~/.mutt/bdsmail ]; then
|
if [ ! -f ~/.mutt/bdsmail ]; then
|
||||||
msgstr=$"\\nYou can press SHIFT and then drag the mouse and right click to copy.\\n\\nEmail Address: $MY_EMAIL_ADDRESS\\n\\nKey ID: $GPG_ID\\n\\nFingerprint: $GPG_FINGERPRINT\\n\\nCreated: $GPG_DATE"
|
bdsmail_address="\\n\\nI2P Address: "$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}')
|
||||||
dialog_height=14
|
dialog_height=$((dialog_height+2))
|
||||||
else
|
|
||||||
bdsmail_address=$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}')
|
|
||||||
msgstr=$"\\nYou can press SHIFT and then drag the mouse and right click to copy.\\n\\nEmail Address: $MY_EMAIL_ADDRESS\\n\\nKey ID: $GPG_ID\\n\\nFingerprint: $GPG_FINGERPRINT\\n\\nCreated: $GPG_DATE\\n\\nI2P Address: ${bdsmail_address}"
|
|
||||||
dialog_height=17
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dialog --title $"Show your Email Address" \
|
dialog --title $"Show your Email Address" \
|
||||||
--backtitle $"Freedombone User Control Panel" \
|
--backtitle $"Freedombone User Control Panel" \
|
||||||
--msgbox "$msgstr" $dialog_height 100
|
--msgbox "$msgstrbase${bdsmail_address}" $dialog_height 100
|
||||||
|
|
||||||
clear
|
clear
|
||||||
qr_code_shown=
|
qr_code_shown=
|
||||||
|
|
Loading…
Reference in New Issue