Browse Source

bdsmail address

Bob Mottram 7 years ago
parent
commit
32ff0f683c
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      src/freedombone-controlpanel-user

+ 6
- 4
src/freedombone-controlpanel-user View File

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