SpamassassinChannels - command /bin/grep -r '^\s*CHANNELURL=' /etc/mail/spamassassin/channel.d

class insights.parsers.spamassassin_channels.SpamassassinChannels(*args, **kwargs)[source]

Bases: CommandParser

Class for parsing the /bin/grep -r '^\s*CHANNELURL=' /etc/mail/spamassassin/channel.d command.

channels

channels grouped by configuration file

Type:

OrderedDict

Sample output of this command is:

/etc/mail/spamassassin/channel.d/sought.conf:CHANNELURL=sought.rules.yerp.org
/etc/mail/spamassassin/channel.d/spamassassin-official.conf:CHANNELURL=updates.spamassassin.org

Examples

>>> type(spamassassin_channels)
<class 'insights.parsers.spamassassin_channels.SpamassassinChannels'>
>>> spamassassin_channels.channels
OrderedDict([('/etc/mail/spamassassin/channel.d/sought.conf', ['sought.rules.yerp.org']), ('/etc/mail/spamassassin/channel.d/spamassassin-official.conf', ['updates.spamassassin.org'])])
parse_content(content)[source]

This method must be implemented by classes based on this class.