mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-04 01:12:27 +01:00 
			
		
		
		
	Added explanation to the long email address issue
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
		
							
								
								
									
										11
									
								
								src/config.h
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/config.h
									
									
									
									
									
								
							@@ -39,8 +39,15 @@
 | 
				
			|||||||
#define IPLEN 16+1
 | 
					#define IPLEN 16+1
 | 
				
			||||||
#define KEYLEN 56
 | 
					#define KEYLEN 56
 | 
				
			||||||
#define MIN_EMAIL_ADDRESS_LEN 9
 | 
					#define MIN_EMAIL_ADDRESS_LEN 9
 | 
				
			||||||
// Sphinx 3.1.1 has an issue with tokens longer than 41 characters.
 | 
					// Sphinx 3.x has an issue with tokens longer than 41 characters.
 | 
				
			||||||
// Sphinx-3.3.1+ seems to be fine, and not affected.
 | 
					//
 | 
				
			||||||
 | 
					// When a regular user executes a query, then his default email address filter
 | 
				
			||||||
 | 
					// causes the query to fail with the below error message, even when the query
 | 
				
			||||||
 | 
					// itself is correct:
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// SELECT id FROM main1,dailydelta1,delta1 WHERE MATCH(' ( (@sender thisisanextremelylongemailaddressyesareallylongoneyeahitolyouXaddressXcom ) | (@rcpt thisisanextremelylongemailaddressyesareallylongoneyeahitolyouXaddressXcom) ) ') ORDER BY `sent` DESC LIMIT 0,20 OPTION max_matches=1000'
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// ERROR 1064 (42000): index dailydelta1,delta1,main1: syntax error, unexpected $end near ' '
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// Note that we use 42, because the parser adds a trailing space to the tokens
 | 
					// Note that we use 42, because the parser adds a trailing space to the tokens
 | 
				
			||||||
// See https://www.mailpiler.org/wiki/current:sphinx3 and
 | 
					// See https://www.mailpiler.org/wiki/current:sphinx3 and
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user