|
@@ -852,10 +852,25 @@ function menu_run_client_app {
|
852
|
852
|
function show_your_email_address {
|
853
|
853
|
GPG_FINGERPRINT=$(gpg --fingerprint "$GPG_ID" | sed -n '2p' | sed 's/^[ \t]*//')
|
854
|
854
|
GPG_DATE=$(gpg --fingerprint "$GPG_ID" | grep -i "pub" | head -n 1 | awk -F ' ' '{print $3}')
|
|
855
|
+ onion_domain=
|
|
856
|
+ if [ -f "$HOME/.email_onion_domain" ]; then
|
|
857
|
+ onion_domain=$(cat "$HOME/.email_onion_domain")
|
|
858
|
+ fi
|
|
859
|
+ if [[ "$HOSTNAME" != *'.onion' && "$onion_domain" ]]; then
|
|
860
|
+ msgstr=$"Email Address: $MY_EMAIL_ADDRESS\\n\\nOnion Email: ${USER}@${onion_domain}\\n\\nKey ID: $GPG_ID\\n\\nFingerprint: $GPG_FINGERPRINT\\n\\nCreated: $GPG_DATE"
|
|
861
|
+ else
|
|
862
|
+ msgstr=$"Email Address: $MY_EMAIL_ADDRESS\\n\\nKey ID: $GPG_ID\\n\\nFingerprint: $GPG_FINGERPRINT\\n\\nCreated: $GPG_DATE"
|
|
863
|
+ fi
|
855
|
864
|
if [ ! -f ~/.mutt/bdsmail ]; then
|
856
|
|
- dialog --title $"Show your Email Address" \
|
857
|
|
- --backtitle $"Freedombone User Control Panel" \
|
858
|
|
- --msgbox $"Email Address: $MY_EMAIL_ADDRESS\\n\\nKey ID: $GPG_ID\\n\\nFingerprint: $GPG_FINGERPRINT\\n\\nCreated: $GPG_DATE" 12 100
|
|
865
|
+ if [[ "$HOSTNAME" != *'.onion' ]]; then
|
|
866
|
+ dialog --title $"Show your Email Address" \
|
|
867
|
+ --backtitle $"Freedombone User Control Panel" \
|
|
868
|
+ --msgbox "$msgstr" 14 100
|
|
869
|
+ else
|
|
870
|
+ dialog --title $"Show your Email Address" \
|
|
871
|
+ --backtitle $"Freedombone User Control Panel" \
|
|
872
|
+ --msgbox "$msgstr" 12 100
|
|
873
|
+ fi
|
859
|
874
|
else
|
860
|
875
|
bdsmail_address=$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}')
|
861
|
876
|
dialog --title $"Show your Email Address" \
|