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