Skip to content

Instantly share code, notes, and snippets.

@cedricdubois
Created July 6, 2015 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cedricdubois/7fef1eb81cb5175dbd35 to your computer and use it in GitHub Desktop.
Save cedricdubois/7fef1eb81cb5175dbd35 to your computer and use it in GitHub Desktop.
A multipart mail, with one empty part (eg. no text, spacing doesn't matter). Calling learn_ham or learn_spam in rspamc will cause the controller process to segfault
Return-Path: <example@example.net>
Date: 29 Apr 2015 04:56:53 -0000
MIME-Version: 1.0
From: example@example.net
Subject: This is the subject
Content-Type: multipart/alternative;
boundary="=_1ad00c4b74ff9921bb562f02b6e6df7a"
Message-ID: <mid1234@example.net>
To: example@example.net
--=_1ad00c4b74ff9921bb562f02b6e6df7a
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
--=_1ad00c4b74ff9921bb562f02b6e6df7a
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
<b>HTML part only. The previous part makes the controller process crash</b>
--=_1ad00c4b74ff9921bb562f02b6e6df7a--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment