mirror of
				https://git.proxmox.com/git/proxmox-spamassassin
				synced 2025-10-31 14:31:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			535 B
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			535 B
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/perl -T
 | |
| 
 | |
| use lib '.'; use lib 't';
 | |
| use SATest; sa_t_init("stripmarkup");
 | |
| use Test::More tests => 4;
 | |
| 
 | |
| # ---------------------------------------------------------------------------
 | |
| 
 | |
| %patterns = (
 | |
| 
 | |
| q{ Content-Type: text/html }, 'contenttype',
 | |
| q{ 
 | |
|   Sender: pertand@email.mondolink.com
 | |
|   Content-Type: text/html
 | |
| 
 | |
|   <HTML></P>
 | |
|   }, 'startofbody',
 | |
| 
 | |
|   q{Subject: "100% HERBALSENSATION"}, 'subj',
 | |
| 
 | |
| );
 | |
| 
 | |
| tstprefs ( "
 | |
| rewrite_header subject *****SPAM*****
 | |
| " );
 | |
| 
 | |
| ok (sarun ("-d < data/spam/003", \&patterns_run_cb));
 | |
| ok_all_patterns();
 | 
