split mail reply on -

This commit is contained in:
Kevin Froman 2019-09-29 16:32:46 -05:00
parent d49811bc2e
commit f0e7810342
2 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import platform
from etc import onionrvalues from etc import onionrvalues
from onionrutils import localcommand from onionrutils import localcommand
import logger import logger
import filepaths
from . import daemonlaunch from . import daemonlaunch
@ -36,6 +37,8 @@ def restart():
while localcommand.local_command('ping', maxWait=8) == 'pong!': while localcommand.local_command('ping', maxWait=8) == 'pong!':
time.sleep(0.3) time.sleep(0.3)
time.sleep(9) time.sleep(9)
while os.path.exists(filepaths.private_API_host_file):
time.sleep(1)
subprocess.Popen([SCRIPT_NAME, 'start']) subprocess.Popen([SCRIPT_NAME, 'start'])
restart.onionr_help = 'Gracefully restart Onionr' restart.onionr_help = 'Gracefully restart Onionr'

View File

@ -65,7 +65,7 @@ function openReply(bHash, quote, subject){
if (typeof humanReadableCache[key] != 'undefined'){ if (typeof humanReadableCache[key] != 'undefined'){
document.getElementById('draftID').value = humanReadableCache[key] document.getElementById('draftID').value = humanReadableCache[key]
quote = '\n' + humanReadableCache[key].split(' ').slice(0,3).join(' ') + ' wrote:\n' + splitQuotes.join('\n') quote = '\n' + humanReadableCache[key].split('-').slice(0,3).join('-') + ' wrote:\n' + splitQuotes.join('\n')
} }
else{ else{
quote = '\n' + key.substring(0, 12) + ' wrote:' + '\n' + splitQuotes.join('\n') quote = '\n' + key.substring(0, 12) + ' wrote:' + '\n' + splitQuotes.join('\n')