|
@@ -857,29 +857,21 @@ function show_your_email_address {
|
857
|
857
|
onion_domain=$(cat "$HOME/.email_onion_domain")
|
858
|
858
|
fi
|
859
|
859
|
dialog_height=14
|
|
860
|
+ onionemailstr=
|
860
|
861
|
if [[ "$HOSTNAME" != *'.onion' && "$onion_domain" ]]; then
|
861
|
|
- if [ ! -f ~/.mutt/bdsmail ]; then
|
862
|
|
- 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"
|
863
|
|
- dialog_height=17
|
864
|
|
- else
|
865
|
|
- bdsmail_address=$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}')
|
866
|
|
- 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}"
|
867
|
|
- dialog_height=20
|
868
|
|
- fi
|
869
|
|
- else
|
870
|
|
- if [ ! -f ~/.mutt/bdsmail ]; then
|
871
|
|
- 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"
|
872
|
|
- dialog_height=14
|
873
|
|
- else
|
874
|
|
- bdsmail_address=$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}')
|
875
|
|
- 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}"
|
876
|
|
- dialog_height=17
|
877
|
|
- fi
|
|
862
|
+ onionemailstr="\\n\\nOnion Email: ${USER}@${onion_domain}"
|
|
863
|
+ dialog_height=$((dialog_height+2))
|
|
864
|
+ fi
|
|
865
|
+ 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}"
|
|
866
|
+ bdsmail_address=
|
|
867
|
+ if [ ! -f ~/.mutt/bdsmail ]; then
|
|
868
|
+ bdsmail_address="\\n\\nI2P Address: "$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}')
|
|
869
|
+ dialog_height=$((dialog_height+2))
|
878
|
870
|
fi
|
879
|
871
|
|
880
|
872
|
dialog --title $"Show your Email Address" \
|
881
|
873
|
--backtitle $"Freedombone User Control Panel" \
|
882
|
|
- --msgbox "$msgstr" $dialog_height 100
|
|
874
|
+ --msgbox "$msgstrbase${bdsmail_address}" $dialog_height 100
|
883
|
875
|
|
884
|
876
|
clear
|
885
|
877
|
qr_code_shown=
|