mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-11-22 02:21:36 +01:00
Merge pull request #3 from qwertiko/master
result used before assignment
This commit is contained in:
commit
c954e554e6
@ -1660,15 +1660,12 @@ Results will be unsound. Make sure you have pasted your headers with correct spa
|
|||||||
if value.strip().lower() == 'yes':
|
if value.strip().lower() == 'yes':
|
||||||
result = self.logger.colored(f'- SpamAssassin marked this message as SPAM:\n', 'red')
|
result = self.logger.colored(f'- SpamAssassin marked this message as SPAM:\n', 'red')
|
||||||
result += f'\t- ' + self.logger.colored(value, 'red') + '\n'
|
result += f'\t- ' + self.logger.colored(value, 'red') + '\n'
|
||||||
|
return {
|
||||||
if len(result) == 0:
|
'header' : header,
|
||||||
return []
|
'value': value,
|
||||||
|
'analysis' : result
|
||||||
return {
|
}
|
||||||
'header' : header,
|
return []
|
||||||
'value': value,
|
|
||||||
'analysis' : result
|
|
||||||
}
|
|
||||||
|
|
||||||
def testSpamAssassinSpamLevel(self):
|
def testSpamAssassinSpamLevel(self):
|
||||||
(num, header, value) = self.getHeader('X-Spam-Level')
|
(num, header, value) = self.getHeader('X-Spam-Level')
|
||||||
|
Loading…
Reference in New Issue
Block a user