From 32ff0f683c4367e7d3f8d576e67204f993bdc82c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 7 Apr 2018 13:20:51 +0100 Subject: [PATCH] bdsmail address --- src/freedombone-controlpanel-user | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/freedombone-controlpanel-user b/src/freedombone-controlpanel-user index 4585320e..a41d16f1 100755 --- a/src/freedombone-controlpanel-user +++ b/src/freedombone-controlpanel-user @@ -860,18 +860,20 @@ function show_your_email_address { onionemailstr= if [[ "$HOSTNAME" != *'.onion' && "$onion_domain" ]]; then onionemailstr="\\n\\nOnion Email: ${USER}@${onion_domain}" - dialog_height=$((dialog_height+2)) + dialog_height=$((dialog_height+3)) fi 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= + bdsmailstr= if [ ! -f ~/.mutt/bdsmail ]; then - bdsmail_address="\\n\\nI2P Address: "$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}') - dialog_height=$((dialog_height+2)) + bdsmail_address=$(grep 'set from=' ~/.mutt/bdsmail | awk -F '=' '{print $2}') + bdsmailstr="\\n\\nI2P Address: ${bdsmail_address}" + dialog_height=$((dialog_height+3)) fi dialog --title $"Show your Email Address" \ --backtitle $"Freedombone User Control Panel" \ - --msgbox "$msgstrbase${bdsmail_address}" $dialog_height 100 + --msgbox "${msgstrbase}${bdsmailstr}" $dialog_height 100 clear qr_code_shown=