Add X-SSL header to note which type of ssl was used when receiving message #9
							
								
								
									
										19
									
								
								DEVNOTES.md
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								DEVNOTES.md
									
									
									
									
									
								
							@@ -4,6 +4,7 @@ Notes for developers
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
python -m unittest tests.test_pop.TestPop3.test_CAPA
 | 
					python -m unittest tests.test_pop.TestPop3.test_CAPA
 | 
				
			||||||
 | 
					python -m unittest tests.test_smtp.TestSMTP
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Patch for enable logging in test
 | 
					## Patch for enable logging in test
 | 
				
			||||||
@@ -14,7 +15,11 @@ Patch generated using below
 | 
				
			|||||||
git diff --patch -U1 tests >> ./DEVNOTES.md
 | 
					git diff --patch -U1 tests >> ./DEVNOTES.md
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Apply with below
 | 
					Apply with below. Disables smtp test mail dir cleanup.
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					ls -ltd /tmp/m41*
 | 
				
			||||||
 | 
					git checkout tests
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
git apply - <<PATCH
 | 
					git apply - <<PATCH
 | 
				
			||||||
@@ -27,6 +32,18 @@ index 55c1a91..a825665 100644
 | 
				
			|||||||
-    logging.basicConfig(level=logging.CRITICAL)
 | 
					-    logging.basicConfig(level=logging.CRITICAL)
 | 
				
			||||||
+    logging.basicConfig(level=logging.DEBUG)
 | 
					+    logging.basicConfig(level=logging.DEBUG)
 | 
				
			||||||
     td = tempfile.TemporaryDirectory(prefix="m41.pop.")
 | 
					     td = tempfile.TemporaryDirectory(prefix="m41.pop.")
 | 
				
			||||||
 | 
					diff --git a/tests/test_smtp.py b/tests/test_smtp.py
 | 
				
			||||||
 | 
					index 0554d4c..52d147b 100644
 | 
				
			||||||
 | 
					--- a/tests/test_smtp.py
 | 
				
			||||||
 | 
					+++ b/tests/test_smtp.py
 | 
				
			||||||
 | 
					@@ -18,5 +18,5 @@ def setUpModule() -> None:
 | 
				
			||||||
 | 
					     global MAILS_PATH
 | 
				
			||||||
 | 
					-    logging.basicConfig(level=logging.CRITICAL)
 | 
				
			||||||
 | 
					+    logging.basicConfig(level=logging.DEBUG)
 | 
				
			||||||
 | 
					     td = tempfile.TemporaryDirectory(prefix="m41.smtp.")
 | 
				
			||||||
 | 
					-    unittest.addModuleCleanup(td.cleanup)
 | 
				
			||||||
 | 
					+    # unittest.addModuleCleanup(td.cleanup)
 | 
				
			||||||
 | 
					     MAILS_PATH = Path(td.name)
 | 
				
			||||||
PATCH
 | 
					PATCH
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user