Thanks for the response, much apreciated. Please find headers below for the same mail before and after being retrieved by getmail:
Ive highlighted what is added after being retrieved by getmail. Now Ive just tested Thunderbird, and the dates are correct on the mail's once the mbox is imported. Apple Mail however is displaying all email dates as 28th May. Should have tested another client first, but I still dont udnerstand why Apple Mail is reporting the latest "Received By" date, and Thunderbird is correctly ignoring that date?
Original Header
Code:
Delivered-To: some_receiver@example.com
Received: by xxx.xxx.xxx.xxx with SMTP id a8csp143816oag;
Sun, 4 Nov 2012 10:55:30 -0800 (PST)
Received: by xxx.xxx.xxx.xxx with SMTP id h11mr2994552lbc.99.1352055329733;
Sun, 04 Nov 2012 10:55:29 -0800 (PST)
Return-Path: <some_sender@example.com>
Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [ xxx.xxx.xxx.xxx])
by mx.google.com with ESMTPS id v1si11150985lbh.45.2012.11.04.10.55.29
(version=TLSv1/SSLv3 cipher=OTHER);
Sun, 04 Nov 2012 10:55:29 -0800 (PST)
Received-SPF: pass (google.com: domain of some_sender@example.com designates xxx.xxx.xxx.xxx as permitted sender) client-ip= xxx.xxx.xxx.xxx;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of some_sender@example.com designates xxx.xxx.xxx.xxx as permitted sender) smtp.mail=some_sender@example.com
Received: by mail-la0-f53.google.com with SMTP id l5so3593875lah.40
for <some_receiver@example.com>; Sun, 04 Nov 2012 10:55:29 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type
:x-gm-message-state;
bh=PUwnjwmibDFtcMlaDAnyqSsTdHpOXjNJPLjbnXMDRbg=;
b=eOsp84FJEsd7uLqsua3cx3GMoLE1FnCn2pkkdoLtrob9qpYQB+NPGrJNMYGVodZi8I
Ogzef6Ybf481kpbsm7TGX/uRnUUC0mcKvO6faVSpHwnh0blhlLd1PiNW8kQfz3PDp+nU
rUkjbzJizNlBdsA+39ufwwxKT/tf09Rq3KNdtCL2NrBUSyt7RePa3DE0NDLI1NAS3vXC
l6l6C3NCpPy+rmKyE3ZkUkpTAcWWyn+6J5wPwWjLpOjiVJ3PDSrBKZpEvWUXAu2Eeoz2
QOb1lPgrdcVN/IjLtCeHwEkkaP14lBy/fuqNVgHFS0K8LcDreg59bQ+T6e1OjjIrVIbx
qjng==
MIME-Version: 1.0
Received: by xxx.xxx.xxx.xxx with SMTP id fv4mr7035539lab.39.1352055325548;
Sun, 04 Nov 2012 10:55:25 -0800 (PST)
Received: by xxx.xxx.xxx.xxx with HTTP; Sun, 4 Nov 2012 10:55:25 -0800 (PST)
Date: Sun, 4 Nov 2012 18:55:25 +0000
Message-ID: <CAPhtDuZwNcDrB39KBYMoqNHuCfmJFu-qyqZb_yRHEuEfF9Qc6A@mail.gmail.com>
Subject: some crap.
From: some_sender@example.com
To: undisclosed-recipients:;
Content-Type: multipart/alternative; boundary=f46d040711e56561f404cdafe906
Bcc: some_receiver
X-Gm-Message-State: ALoCoQnPtm4SqwEsofQrY7zb/9iJAZBZhXmobxs1W3lHoXNwVc5zJMDMpNnBe7OMH960mhYZ/j6O
--f46d040711e56561f404cdafe906
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
After Getmail Retrieval:
Code:
Return-Path: <some_sender@example.com>
Delivered-To: unknown
Received: from imap.gmail.com (173.194.66.108:993) by
xxx.xxx.xxx.xxx with IMAP4-SSL; 28 May 2013
10:30:04 -0000
Delivered-To: some_receiver@example.com
Received: by xxx.xxx.xxx.xxx with SMTP id a8csp143816oag;
Sun, 4 Nov 2012 10:55:30 -0800 (PST)
Received: by xxx.xxx.xxx.xxx with SMTP id h11mr2994552lbc.99.1352055329733;
Sun, 04 Nov 2012 10:55:29 -0800 (PST)
Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53])
by mx.google.com with ESMTPS id v1si11150985lbh.45.2012.11.04.10.55.29
(version=TLSv1/SSLv3 cipher=OTHER);
Sun, 04 Nov 2012 10:55:29 -0800 (PST)
Received-SPF: pass (google.com: domain of some_sender@example.com designates xxx.xxx.xxx.xxx as permitted sender) client-ip=xxx.xxx.xxx.xxx;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of ome_sender@example.com designates xxx.xxx.xxx.xxx as permitted sender) smtp.mail=some_sender@example.com
Received: by mail-la0-f53.google.com with SMTP id l5so3593875lah.40
for <some_receiver@example.com>; Sun, 04 Nov 2012 10:55:29 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type
:x-gm-message-state;
bh=PUwnjwmibDFtcMlaDAnyqSsTdHpOXjNJPLjbnXMDRbg=;
b=eOsp84FJEsd7uLqsua3cx3GMoLE1FnCn2pkkdoLtrob9qpYQB+NPGrJNMYGVodZi8I
Ogzef6Ybf481kpbsm7TGX/uRnUUC0mcKvO6faVSpHwnh0blhlLd1PiNW8kQfz3PDp+nU
rUkjbzJizNlBdsA+39ufwwxKT/tf09Rq3KNdtCL2NrBUSyt7RePa3DE0NDLI1NAS3vXC
l6l6C3NCpPy+rmKyE3ZkUkpTAcWWyn+6J5wPwWjLpOjiVJ3PDSrBKZpEvWUXAu2Eeoz2
QOb1lPgrdcVN/IjLtCeHwEkkaP14lBy/fuqNVgHFS0K8LcDreg59bQ+T6e1OjjIrVIbx
qjng==
MIME-Version: 1.0
Received: by xxx.xxx.xxx.xxx with SMTP id fv4mr7035539lab.39.1352055325548;
Sun, 04 Nov 2012 10:55:25 -0800 (PST)
Received: by xxx.xxx.xxx.xxx with HTTP; Sun, 4 Nov 2012 10:55:25 -0800 (PST)
Date: Sun, 4 Nov 2012 18:55:25 +0000
Message-ID: <CAPhtDuZwNcDrB39KBYMoqNHuCfmJFu-qyqZb_yRHEuEfF9Qc6A@mail.gmail.com>
Subject: some crap.
From: some_sender@example.com
To: undisclosed-recipients:;
Content-Type: multipart/alternative; boundary=f46d040711e56561f404cdafe906
Bcc: some_receiver
X-Gm-Message-State: ALoCoQnPtm4SqwEsofQrY7zb/9iJAZBZhXmobxs1W3lHoXNwVc5zJMDMpNnBe7OMH960mhYZ/j6O
--f46d040711e56561f404cdafe906
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable