mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-11-04 12:30:12 +00:00 
			
		
		
		
	Add attachments-only filter to uploads
When uploading a file which is an e-mail, this option allows to skip the mail body when the file is being processed.
This commit is contained in:
		@@ -52,6 +52,7 @@ specified via a JSON structure in a part with name `meta`:
 | 
			
		||||
, tags: Maybe StringList
 | 
			
		||||
, fileFilter: Maybe String
 | 
			
		||||
, language: Maybe String
 | 
			
		||||
, attachmentsOnly: Maybe Bool
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
@@ -90,6 +91,10 @@ specified via a JSON structure in a part with name `meta`:
 | 
			
		||||
- The `language` is used for processing the document(s) contained in
 | 
			
		||||
  the request. If not specified the collective's default language is
 | 
			
		||||
  used.
 | 
			
		||||
- The `attachmentsOnly` property only applies to e-mail files (usually
 | 
			
		||||
  `*.eml`). If this is `true`, then the e-mail body is discarded and
 | 
			
		||||
  only the attachments are imported. An e-mail without any attachments
 | 
			
		||||
  is therefore skipped.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Endpoints
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user