From: Alan Knowles Date: Mon, 7 May 2018 05:22:55 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=06d911b00cc663791d1dda99094ceae36201bddd;p=app.mailtrimmer src/strip.vala --- diff --git a/src/strip.vala b/src/strip.vala index d1a60b5..e3871fa 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -680,14 +680,18 @@ public class Strip : GLib.Object { var bits = lines[i].strip().split(" "); if (bits[0] == "id") { this.active_message_exim_id = bits[1].replace(";",""); - var dbits = lines[i].strip().split(";"); + + + } + if (lines[i].contains(";")) { + var dbits = lines[i].strip().split(";"); var timez = GMime.utils_header_decode_date(dbits[1], null); if (timez != 0) { var dts = new DateTime.from_unix_utc(timez); this.created_date = dts.format("%Y-%m-%d %H:%M:%s"); } - } + } }