[MlMt] issues with content-type matching in smart mailboxes and sorting by date in same
Christopher LILJENSTOLPE
mailmate at cdl.asgaard.org
Wed Mar 20 23:38:15 UTC 2013
Greetings,
I am trying to get a smart mailbox to display all messages that have a
calendar or vcard attachment in them (anyone figure out how to get
calendar.app to get invites out of mm yet?) My smart mailbox is defined
as:
Show messages in:
Any of the following mailboxes
All Messages > All Body Parts
Under the following conditions
Any of the following is true
content-type > subtype is calendar
content-type > subtype is ics
content-type > subtype is vcard
content-type > subtype is Calender (yes, I see the sp6 - love to know
which application is using it)
content-type > subtype is x-vcalendar
content-type > subtype is x-vcard
However, not all messages are matching. Here is a quick test I sent
from my google calendar - this does not end up in the smart folder.
Any thoughts?
Also, when sorting in any mailbox that is fed by All Messages > All Body
Parts, date sorting doesn't work, sender sorting doesn't work, etc.
Somewhat understandable, since the body parts don't have dates, senders,
etc (but the actual all messages > All body parts does sort correctly).
Christopher
Return-Path:
<3biVKUQwJA3EaXaYTchidaeTVbPXa.RdbRSaPhVPPgS.dgV at calendar-server.bounces.google.com>
<some headers snipped>
MIME-Version: 1.0
<more headers snipped>
Auto-Submitted: auto-generated
Message-ID: <20cf307f3474a9b9e104d861a1b5 at google.com>
Date: Wed, 20 Mar 2013 21:09:02 +0000
Subject: Invitation: test @ Wed Mar 20, 2013 3pm - 4pm (bar at example.com)
From: <snip>
To: <snip>
<dspam snipped>
Content-Type: multipart/mixed; boundary=20cf307f3474a9b9d504d861a1b4
--20cf307f3474a9b9d504d861a1b4
Content-Type: multipart/alternative;
boundary=20cf307f3474a9b9d004d861a1b2
--20cf307f3474a9b9d004d861a1b2
Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes
Content-Transfer-Encoding: base64
WW91IGhhdmUgYmVlbiBpbnZpdGVkIHRvIHRoZSBmb2xsb3dpbmcgZXZlbnQuDQoNClRpdGxlOiB0
ZXN0DQpXaGVuOiBXZWQgTWFyIDIwLCAyMDEzIDNwbSCWIDRwbSBQYWNpZmljIFRpbWUNCldoZXJl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Qo=
--20cf307f3474a9b9d004d861a1b2
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
<div style=3D""><table cellspacing=3D"0" cellpadding=3D"8" border=3D"0"
sum=
mary=3D"" style=3D"width:100%;font-family:Arial,Sans-serif;border:1px
Solid=
#ccc;border-width:1px 2px 2px 1px;background-color:#fff;" itemscope
itemty=
pe=3D"http://schema.org/Event"><tr><td><div style=3D"padding:2px"><span
ite=
mprop=3D"publisher" itemscope
itemtype=3D"http://schema.org/Organization"><=
meta itemprop=3D"name" content=3D"Google Calendar"/></span><div
style=3D"fl=
oat:right;font-weight:bold;font-size:13px"> <a
href=3D"https://www.google.c=
om/calendar/event?action=3DVIEW&eid=3DbmhxYXFhdmN0dGQwczlzanBsZ2RmZGp0a=
m8gY2RsQGFzZ2FhcmQub3Jn&tok=3DMjIjbGlsamVuc3RvbHBlQGdtYWlsLmNvbTZlNzA5N=
2Q0N2Y2MTcxNjRkOWNjNDJlYjVkNWFiOWIyNTViNmYzMmE&ctz=3DAmerica/Los_Angele=
s&hl=3Den" style=3D"color:#20c;white-space:nowrap">more details
»=
</a><br></div><h3 style=3D"padding:0 0 6px
0;margin:0;font-family:Arial,San=
s-serif;font-size:16px;font-weight:bold;color:#222"><span
itemprop=3D"name"=
> test</span></h3><table cellpadding=3D"0" cellspacing=3D"0"
> border=3D"0" su=
mmary=3D"Event details"><tr><td style=3D"padding:0 1em 10px
0;font-family:A=
rial,Sans-serif;font-size:13px;color:#888;white-space:nowrap"
valign=3D"top=
"><div><i style=3D"font-style:normal">When</i></div></td><td
style=3D"paddi=
ng-bottom:10px;font-family:Arial,Sans-serif;font-size:13px;color:#222"
vali=
gn=3D"top"><time itemprop=3D"startDate"
datetime=3D"20130320T220000Z"></tim=
e><time itemprop=3D"endDate" datetime=3D"20130320T230000Z"></time>Wed
Mar 2=
0, 2013 3pm =96 4pm <span style=3D"color:#888">Pacific
Time</span></td></tr=
> <tr><td style=3D"padding:0 1em 10px
> 0;font-family:Arial,Sans-serif;font-si=
ze:13px;color:#888;white-space:nowrap" valign=3D"top"><div><i
style=3D"font=
-style:normal">Where</i></div></td><td
style=3D"padding-bottom:10px;font-fa=
mily:Arial,Sans-serif;font-size:13px;color:#222" valign=3D"top"><span
itemp=
rop=3D"location" itemscope itemtype=3D"http://schema.org/Place"><span
itemp=
rop=3D"name">test</span><span dir=3D"ltr"> (<a
href=3D"http://maps.google.c=
om/maps?q=3Dtest&hl=3Den" style=3D"color:#20c;white-space:nowrap"
targe=
t=3D"_blank" itemprop=3D"map">map</a>)</span></span></td></tr><tr><td
style=
=3D"padding:0 1em 10px
0;font-family:Arial,Sans-serif;font-size:13px;color:=
#888;white-space:nowrap" valign=3D"top"><div><i
style=3D"font-style:normal"=
> Calendar</i></div></td><td
> style=3D"padding-bottom:10px;font-family:Arial,=
Sans-serif;font-size:13px;color:#222"
valign=3D"top">bar at example.com</td></=
tr><tr><td style=3D"padding:0 1em 10px
0;font-family:Arial,Sans-serif;font-=
size:13px;color:#888;white-space:nowrap" valign=3D"top"><div><i
style=3D"fo=
nt-style:normal">Who</i></div></td><td
style=3D"padding-bottom:10px;font-fa=
mily:Arial,Sans-serif;font-size:13px;color:#222" valign=3D"top"><table
cell=
spacing=3D"0" cellpadding=3D"0"><tr><td
style=3D"padding-right:10px;font-fa=
mily:Arial,Sans-serif;font-size:13px;color:#222"><span
style=3D"font-family=
:Courier New,monospace">•</span></td><td
style=3D"padding-right:10px=
;font-family:Arial,Sans-serif;font-size:13px;color:#222"><div><div
style=3D=
"margin:0 0 0.3em 0">foo at example.com<span style=3D"font-size:11px;co=
lor:#888"> - organizer</span></div></div></td></tr><tr><td
style=3D"padding=
-right:10px;font-family:Arial,Sans-serif;font-size:13px;color:#222"><span
s=
tyle=3D"font-family:Courier New,monospace">•</span></td><td
style=3D=
"padding-right:10px;font-family:Arial,Sans-serif;font-size:13px;color:#222"=
> <div><div style=3D"margin:0 0 0.3em
> 0">bar at example.com</div></div></td></t=
r></table></td></tr></table></div><p
style=3D"color:#222;font-size:13px;mar=
gin:0"><span
style=3D"color:#888">Going? </span><wbr><stro=
ng><span itemprop=3D"action" itemscope
itemtype=3D"http://schema.org/RsvpAc=
tion"><meta itemprop=3D"attendance"
content=3D"http://schema.org/RsvpAttend=
ance/Yes"/><span itemprop=3D"handler" itemscope
itemtype=3D"http://schema.o=
rg/HttpActionHandler"><link itemprop=3D"method"
href=3D"http://schema.org/H=
ttpRequestMethod/GET"/><a
href=3D"https://www.google.com/calendar/event?act=
ion=3DRESPOND&eid=3DbmhxYXFhdmN0dGQwczlzanBsZ2RmZGp0am8gY2RsQGFzZ2FhcmQ=
ub3Jn&rst=3D1&tok=3DMjIjbGlsamVuc3RvbHBlQGdtYWlsLmNvbTZlNzA5N2Q0N2Y=
2MTcxNjRkOWNjNDJlYjVkNWFiOWIyNTViNmYzMmE&ctz=3DAmerica/Los_Angeles&=
hl=3Den" style=3D"color:#20c;white-space:nowrap"
itemprop=3D"url">Yes</a></=
span></span><span style=3D"margin:0 0.4em;font-weight:normal"> -
</span><sp=
an itemprop=3D"action" itemscope
itemtype=3D"http://schema.org/RsvpAction">=
<meta itemprop=3D"attendance"
content=3D"http://schema.org/RsvpAttendance/M=
aybe"/><span itemprop=3D"handler" itemscope
itemtype=3D"http://schema.org/H=
ttpActionHandler"><link itemprop=3D"method"
href=3D"http://schema.org/HttpR=
equestMethod/GET"/><a
href=3D"https://www.google.com/calendar/event?action=
=3DRESPOND&eid=3DbmhxYXFhdmN0dGQwczlzanBsZ2RmZGp0am8gY2RsQGFzZ2FhcmQub3=
Jn&rst=3D3&tok=3DMjIjbGlsamVuc3RvbHBlQGdtYWlsLmNvbTZlNzA5N2Q0N2Y2MT=
cxNjRkOWNjNDJlYjVkNWFiOWIyNTViNmYzMmE&ctz=3DAmerica/Los_Angeles&hl=
=3Den" style=3D"color:#20c;white-space:nowrap"
itemprop=3D"url">Maybe</a></=
span></span><span style=3D"margin:0 0.4em;font-weight:normal"> -
</span><sp=
an itemprop=3D"action" itemscope
itemtype=3D"http://schema.org/RsvpAction">=
<meta itemprop=3D"attendance"
content=3D"http://schema.org/RsvpAttendance/N=
o"/><span itemprop=3D"handler" itemscope
itemtype=3D"http://schema.org/Http=
ActionHandler"><link itemprop=3D"method"
href=3D"http://schema.org/HttpRequ=
estMethod/GET"/><a
href=3D"https://www.google.com/calendar/event?action=3DR=
ESPOND&eid=3DbmhxYXFhdmN0dGQwczlzanBsZ2RmZGp0am8gY2RsQGFzZ2FhcmQub3Jn&a=
mp;rst=3D2&tok=3DMjIjbGlsamVuc3RvbHBlQGdtYWlsLmNvbTZlNzA5N2Q0N2Y2MTcxNj=
RkOWNjNDJlYjVkNWFiOWIyNTViNmYzMmE&ctz=3DAmerica/Los_Angeles&hl=3Den=
" style=3D"color:#20c;white-space:nowrap"
itemprop=3D"url">No</a></span></s=
pan></strong> <wbr><a
href=3D"https://www.google.com=
/calendar/event?action=3DVIEW&eid=3DbmhxYXFhdmN0dGQwczlzanBsZ2RmZGp0am8=
gY2RsQGFzZ2FhcmQub3Jn&tok=3DMjIjbGlsamVuc3RvbHBlQGdtYWlsLmNvbTZlNzA5N2Q=
0N2Y2MTcxNjRkOWNjNDJlYjVkNWFiOWIyNTViNmYzMmE&ctz=3DAmerica/Los_Angeles&=
amp;hl=3Den" style=3D"color:#20c;white-space:nowrap">more options
»</=
a></p></td></tr><tr><td
style=3D"background-color:#f6f6f6;color:#888;border=
-top:1px Solid
#ccc;font-family:Arial,Sans-serif;font-size:11px"><p>Invitat=
ion from <a href=3D"https://www.google.com/calendar/" target=3D"_blank"
sty=
le=3D"">Google Calendar</a></p><p>You are receiving this courtesy email
at =
the account bar at example.com because you are an attendee of this
event.</p><=
p>To stop receiving future notifications for this event, decline this
event=
. Alternatively you can sign up for a Google account at
https://www.google.=
com/calendar/ and control your notification settings for your entire
calend=
ar.</p></td></tr></table></div>
--20cf307f3474a9b9d004d861a1b2
Content-Type: text/calendar; charset=UTF-8; method=REQUEST
Content-Transfer-Encoding: 7bit
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130320T220000Z
DTEND:20130320T230000Z
DTSTAMP:20130320T210902Z
ORGANIZER;CN=foo at example.com:mailto:foo at example.com
UID:nhqaqavcttd0s9sjplgdfdjtjo at google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
;CN=Chris Liljenstolpe;X-NUM-GUESTS=0:mailto:foo at example.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
TRUE;CN=bar at example.com;X-NUM-GUESTS=0:mailto:bar at example.com
CREATED:20130320T210902Z
DESCRIPTION:View your event at
http://www.google.com/calendar/event?action=
VIEW&eid=bmhxYXFhdmN0dGQwczlzanBsZ2RmZGp0am8gY2RsQGFzZ2FhcmQub3Jn&tok=MjIjb
GlsamVuc3RvbHBlQGdtYWlsLmNvbTZlNzA5N2Q0N2Y2MTcxNjRkOWNjNDJlYjVkNWFiOWIyNTVi
NmYzMmE&ctz=America/Los_Angeles&hl=en.
LAST-MODIFIED:20130320T210902Z
LOCATION:test
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:test
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
--20cf307f3474a9b9d004d861a1b2--
--20cf307f3474a9b9d504d861a1b4
Content-Type: application/ics; name="invite.ics"
Content-Disposition: attachment; filename="invite.ics"
Content-Transfer-Encoding: base64
QkVHSU46VkNBTEVOREFSDQpQUk9ESUQ6LS8vR29vZ2xlIEluYy8vR29vZ2xlIENhbGVuZGFyIDcw
LjkwNTQvL0VODQpWRVJTSU9OOjIuMA0KQ0FMU0NBTEU6R1JFR09SSUFODQpNRVRIT0Q6UkVRVUVT
VA0KQkVHSU46VkVWRU5UDQpEVFNUQVJUOjIwMT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VEOjIwMTMwMzIwVDIxMDkwMloNCkxPQ0FUSU9OOnRlc3QNClNFUVVFTkNFOjANClNUQVRV
UzpDT05GSVJNRUQNClNVTU1BUlk6dGVzdA0KVFJBTlNQOk9QQVFVRQ0KRU5EOlZFVkVOVA0KRU5E
OlZDQUxFTkRBUg0K
--20cf307f3474a9b9d504d861a1b4--
--
李柯睿
Check my PGP key here: https://www.asgaard.org/~cdl/cdl.asc
Current vCard here: https://www.asgaard.org/~cdl/cdl.vcf
Check my calendar availability: https://tungle.me/cdl
More information about the mailmate
mailing list