How does Apple find dates, times and addresses in emails?

后端 未结 6 740
陌清茗
陌清茗 2020-12-02 03:33

In the iOS email client, when an email contains a date, time or location, the text becomes a hyperlink and it is possible to create an appointment or look at a map simply by

6条回答
  •  执笔经年
    2020-12-02 03:58

    I once wrote a parser to do this, using pyparsing. It's really very simple, you just need to get all the different ways right, but there aren't that many. It only took a few hours and was pretty fast.

提交回复
热议问题