mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-11-03 18:00:11 +00:00 
			
		
		
		
	Allow to enable debug flag for javamail
This commit is contained in:
		@@ -31,6 +31,12 @@ docspell.joex {
 | 
			
		||||
    password = ""
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  # Enable or disable debugging for e-mail related functionality. This
 | 
			
		||||
  # applies to both sending and receiving mails. For security reasons
 | 
			
		||||
  # logging is not very extensive on authentication failures. Setting
 | 
			
		||||
  # this to true, results in a lot of data printed to stdout.
 | 
			
		||||
  mail-debug = false
 | 
			
		||||
 | 
			
		||||
  send-mail {
 | 
			
		||||
    # This is used as the List-Id e-mail header when mails are sent
 | 
			
		||||
    # from docspell to its users (example: for notification mails). It
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,8 @@ case class Config(
 | 
			
		||||
    textAnalysis: TextAnalysisConfig,
 | 
			
		||||
    convert: ConvertConfig,
 | 
			
		||||
    sendMail: MailSendConfig,
 | 
			
		||||
    files: Files
 | 
			
		||||
    files: Files,
 | 
			
		||||
    mailDebug: Boolean
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
object Config {
 | 
			
		||||
 
 | 
			
		||||
@@ -70,7 +70,8 @@ object JoexAppImpl {
 | 
			
		||||
      nodeOps <- ONode(store)
 | 
			
		||||
      joex    <- OJoex(client, store)
 | 
			
		||||
      upload  <- OUpload(store, queue, cfg.files, joex)
 | 
			
		||||
      javaEmil = JavaMailEmil(blocker)
 | 
			
		||||
      javaEmil =
 | 
			
		||||
        JavaMailEmil(blocker, Settings.defaultSettings.copy(debug = cfg.mailDebug))
 | 
			
		||||
      sch <- SchedulerBuilder(cfg.scheduler, blocker, store)
 | 
			
		||||
        .withQueue(queue)
 | 
			
		||||
        .withTask(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user