Skip to content

Commit f9474b2

Browse files
authored
Merge pull request #2501 from certtools/smtp_batch_docs
ENH: smtp_batch output alternative mails docs
2 parents 63a0209 + 1e25231 commit f9474b2

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
#### Experts
3434

3535
#### Outputs
36-
- `intelmq.bots.outputs.misp.output_feed`: handle failures if saved current event wasn't saved or is incorrect (PR by Kamil Mankowski).
36+
- `intelmq.bots.outputs.misp.output_feed`: Handle failures if saved current event wasn't saved or is incorrect (PR by Kamil Mankowski).
37+
- `intelmq.bots.outputs.smtp_batch.output`: Documentation on multiple recipients added (PR#2501 by Edvard Rejthar).
3738

3839
### Documentation
3940

docs/user/bots.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This document contains complete reference of bots implemented by IntelMQ and how
1212
Each bot has it's own configuration. The configuration consists of two types of parameters:
1313

1414
- **Generic parameters** that are common to all the bots and need to be set for each bot.
15-
15+
1616
- **Runtime parameters** are needed by the bot itself during runtime. Some of these parameters can be inherited from the [global configuration](../admin/configuration/intelmq.md#runtimeyaml) (which is applied to all the bots), but can be overridden in the individual bot configuration.
1717

1818
## Generic Parameters
@@ -930,7 +930,7 @@ oldest files available!).
930930

931931
The resulting reports contain the following special field:
932932

933-
- `extra.file_name`: The name of the downloaded file, with fixed filename extension.
933+
- `extra.file_name`: The name of the downloaded file, with fixed filename extension.
934934

935935
**Module:** `intelmq.bots.collectors.shadowserver.collector_reports_api`
936936

@@ -2119,7 +2119,7 @@ No additional parameters.
21192119

21202120
---
21212121

2122-
### Shadowserver <div id="intelmq.bots.parsers.shadowserver.parser" />
2122+
### Shadowserver <div id="intelmq.bots.parsers.shadowserver.parser" />
21232123

21242124
The Shadowserver parser operates on CSV formatted data.
21252125

@@ -2132,11 +2132,11 @@ correct mapping of the columns:
21322132
1. **Automatic report type detection**
21332133

21342134
Since IntelMQ version 2.1 the parser can detect the feed based on metadata provided by the collector.
2135-
2135+
21362136
When processing a report, this bot takes `extra.file_name` from the report and looks in `config.py` how the report
21372137
should be parsed. If this lookup is not possible, and the `feedname` is not given as parameter, the feed cannot be
21382138
parsed.
2139-
2139+
21402140
The field `extra.file_name` has the following structure: `%Y-%m-%d-${report_name}[-suffix].csv` where the optional
21412141
suffix can be something like `country-geo`. For example, some possible filenames
21422142
are `2019-01-01-scan_http-country-geo.csv` or `2019-01-01-scan_tftp.csv`. The important part is the `report_name`,
@@ -3650,9 +3650,9 @@ if extra.tags :supersetof ['iot', 'vulnerable'] { ... }
36503650
```
36513651
if time.observation :before '1 week' { ... }
36523652
```
3653-
3653+
36543654
* `:after` tests if the date value occurred after given time ago; see `:before`
3655-
3655+
36563656
```
36573657
if time.observation :after '2015-09-12' { ... } # happened after midnight the 12th Sep
36583658
```
@@ -5006,7 +5006,13 @@ You can schedule the batch sending easily with a cron script, I.E. put this into
50065006

50075007
**`alternative_mails`**
50085008

5009-
(optional, string) Path to CSV in the form `original@email.com,alternative@email.com`. Needed when some of the recipients ask you to forward their e-mails to another address.
5009+
(optional, string) Path to CSV in the form `original@email.com,alternative@email.com`. Needed when some of the recipients ask you to forward their e-mails to another address. Delimit multiple recipients by the semicolon. The field is internally parsed by [Envelope](https://github.com/CZ-NIC/envelope#recipients) so pretty anything is allowed:
5010+
5011+
```
5012+
original@email.com,alternative@email.com
5013+
original2@email.com,person1@email.com;person2@email.com
5014+
original3@email.com, Mary <person1@example.com>; John <person2@example.com>
5015+
```
50105016
50115017
**`attachment_name`**
50125018
@@ -5070,7 +5076,7 @@ You can schedule the batch sending easily with a cron script, I.E. put this into
50705076
50715077
(required, string/array/object) SMTP server information and credentials. See [SMTP parameter](https://github.com/CZ-NIC/envelope#sending) of the envelope module.
50725078
5073-
Examples:
5079+
Examples:
50745080
```yaml
50755081
smtp_server: "mailer"
50765082
smtp_server: {"host": "mailer", "port": 587, "user": "john", "password": "123"}

0 commit comments

Comments
 (0)