|  | @@ -97,7 +97,7 @@ function add_user_bdsmail {
 | 
	
		
			
			| 97 | 97 |      fi
 | 
	
		
			
			| 98 | 98 |      sed -i "s|username|$new_username|g" /home/$new_username/.mutt/bdsmail
 | 
	
		
			
			| 99 | 99 |      bdsmail_configure_users
 | 
	
		
			
			| 100 |  | -    $BDSMAIL_DIR/bin/newmail $new_username /home/$new_username/MailDir/i2p "$new_user_password"
 | 
	
		
			
			|  | 100 | +    $BDSMAIL_DIR/bin/newmail $BDSMAIL_DIR/config.ini $new_username /home/$new_username/Maildir/i2p "$new_user_password"
 | 
	
		
			
			| 101 | 101 |      chown -R $new_username:$new_username /home/$new_username/.mutt
 | 
	
		
			
			| 102 | 102 |      echo '0'
 | 
	
		
			
			| 103 | 103 |  }
 | 
	
	
		
			
			|  | @@ -125,7 +125,10 @@ function upgrade_bdsmail {
 | 
	
		
			
			| 125 | 125 |  
 | 
	
		
			
			| 126 | 126 |      # update to the next commit
 | 
	
		
			
			| 127 | 127 |      set_repo_commit $BDSMAIL_DIR "bdsmail commit" "$BDSMAIL_COMMIT" $BDSMAIL_REPO
 | 
	
		
			
			|  | 128 | +    cd $BDSMAIL_DIR
 | 
	
		
			
			|  | 129 | +    make GOROOT=/home/go/go${GO_VERSION}
 | 
	
		
			
			| 128 | 130 |      chown -R i2psvc:i2psvc $BDSMAIL_DIR
 | 
	
		
			
			|  | 131 | +    systemctl restart bdsmail
 | 
	
		
			
			| 129 | 132 |  }
 | 
	
		
			
			| 130 | 133 |  
 | 
	
		
			
			| 131 | 134 |  function backup_local_bdsmail {
 | 
	
	
		
			
			|  | @@ -288,6 +291,9 @@ function install_bdsmail {
 | 
	
		
			
			| 288 | 291 |      git checkout $BDSMAIL_COMMIT -b $BDSMAIL_COMMIT
 | 
	
		
			
			| 289 | 292 |      set_completion_param "bdsmail commit" "$BDSMAIL_COMMIT"
 | 
	
		
			
			| 290 | 293 |  
 | 
	
		
			
			|  | 294 | +    mkdir -p $BDSMAIL_DIR/Maildir/i2p
 | 
	
		
			
			|  | 295 | +    chmod -R 700 $BDSMAIL_DIR/Maildir
 | 
	
		
			
			|  | 296 | +
 | 
	
		
			
			| 291 | 297 |      make GOROOT=/home/go/go${GO_VERSION}
 | 
	
		
			
			| 292 | 298 |      if [ ! -f $BDSMAIL_DIR/bin/bdsconfig ]; then
 | 
	
		
			
			| 293 | 299 |          echo $'Unable to make bdsmail'
 | 
	
	
		
			
			|  | @@ -305,7 +311,7 @@ function install_bdsmail {
 | 
	
		
			
			| 305 | 311 |      echo "bindmail = 127.0.0.1:$I2P_SMTP_PORT" >> $BDSMAIL_DIR/config.ini
 | 
	
		
			
			| 306 | 312 |      echo 'bindweb = 127.0.0.1:8489' >> $BDSMAIL_DIR/config.ini
 | 
	
		
			
			| 307 | 313 |      echo 'domain = localhost' >> $BDSMAIL_DIR/config.ini
 | 
	
		
			
			| 308 |  | -    echo 'maildir = mail' >> $BDSMAIL_DIR/config.ini
 | 
	
		
			
			|  | 314 | +    echo 'maildir = Maildir/i2p' >> $BDSMAIL_DIR/config.ini
 | 
	
		
			
			| 309 | 315 |      echo 'database = localhost.sqlite' >> $BDSMAIL_DIR/config.ini
 | 
	
		
			
			| 310 | 316 |      echo 'assets = contrib/assets/web' >> $BDSMAIL_DIR/config.ini
 | 
	
		
			
			| 311 | 317 |  
 | 
	
	
		
			
			|  | @@ -390,7 +396,7 @@ function install_bdsmail {
 | 
	
		
			
			| 390 | 396 |  
 | 
	
		
			
			| 391 | 397 |      bdsmail_configure_users
 | 
	
		
			
			| 392 | 398 |  
 | 
	
		
			
			| 393 |  | -    $BDSMAIL_DIR/bin/newmail $MY_USERNAME /home/$MY_USERNAME/MailDir/i2p "$user_account_password"
 | 
	
		
			
			|  | 399 | +    $BDSMAIL_DIR/bin/newmail $BDSMAIL_DIR/config.ini $MY_USERNAME /home/$MY_USERNAME/Maildir/i2p "$user_account_password"
 | 
	
		
			
			| 394 | 400 |      user_account_password=
 | 
	
		
			
			| 395 | 401 |  
 | 
	
		
			
			| 396 | 402 |      APP_INSTALLED=1
 |