[IntelMQ-users] [IHAP] Intelmq SMTP bots not sending CSV in mail:: Need Help

Sebastian Wagner wagner at cert.at
Mon Jun 7 10:52:09 CEST 2021


Hi,

On 6/7/21 10:04 AM, Ángel González Berdasco wrote:
> El lun, 07-06-2021 a las 09:49 +0200, Sebastian Wagner escribió:
>>
>> Hi,
>>
>> The SMTP output bot uses these headers for the CSV attachment:
>>
>> Content-Type: text/csv; charset="us-ascii"
>> MIME-Version: 1.0
>> Content-Transfer-Encoding: 7bit
>>
>> Maybe Outlook needs something else?
>>
>> Sebastian
>>
>
> I think the issue is the lack of name, so it would need a header like
>
> Content-Disposition: attachment; filename="somefeed.csv"
>
> Best regards
>
>
> ¹ https://datatracker.ietf.org/doc/html/rfc6266

Thanks for the hint. It looks like this header needs to be "manually" added:

https://docs.python.org/3/library/email.compat32-message.html#email.message.Message.add_header
here:
https://github.com/certtools/intelmq/blob/a51276054a7c5f0744ccb90cda54a03eeed75400/intelmq/bots/outputs/smtp/output.py#L69

Sebastian

-- 
// Sebastian Wagner <wagner at cert.at> - T: +43 676 898 298 7201
// CERT Austria - https://www.cert.at/
// Eine Initiative der nic.at GmbH - https://www.nic.at/
// Firmenbuchnummer 172568b, LG Salzburg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cert.at/pipermail/intelmq-users/attachments/20210607/c0b2ad52/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.cert.at/pipermail/intelmq-users/attachments/20210607/c0b2ad52/attachment.sig>


More information about the IntelMQ-users mailing list