一种电子邮件跟踪系统及其方法和服务器 E-mail tracking system, method and server thereof
技术领域 Technical field
本发明涉及电子邮件技术, 特别涉及一种电子邮件跟踪系统及其方 法和服务器。 发明背景 The present invention relates to electronic mail technology, and more particularly to an email tracking system and method and server therefor. Background of the invention
目前的电子邮件软件, 如 Foxmail和 Outlook等, 主要是使用了一 种可选的 "回执,, 服务来确认邮件的收讫, 收件人可以自愿选择告知发 件人。 还有一种 Msgtag的服务则是在邮件打开时自动通知发件人。 Current e-mail software, such as Foxmail and Outlook, mainly uses an optional "receipt, service to confirm the receipt of the mail, the recipient can voluntarily choose to inform the sender. There is also a Msgtag service. The sender is automatically notified when the message is opened.
而在网页邮箱(webmail )中, 发件人发完电子邮件以后, 如果收件 人没有在网页邮箱中设置收到邮件后自动返回回执, 发件人一般无法知 道该电子邮件是否到达对方的邮箱, 也无法知道该电子邮件的投递状 态。 尤其是对于一些重要程度较高的电子邮件, 发件人希望能够明确地 知道该电子邮件在某个时间点的投递状态, 例如: 邮件已经到达对方邮 箱还是被拒收, 或者被延迟投递。 In the webmail (webmail), after the sender sends the email, if the recipient does not automatically return the receipt after receiving the email in the webmail mailbox, the sender generally cannot know whether the email arrives at the other party's email address. , and I don't know the delivery status of the email. Especially for some highly important emails, the sender wants to be able to clearly know the delivery status of the email at a certain point in time, for example: whether the email has arrived at the other mailbox or was rejected, or was delayed.
由此可知, 上述跟踪功能的实现取决于收件人在网页邮箱、 电子邮 件软件中的设置。 如果收件人未在网页邮箱、 电子邮件软件中设置回执 功能, 那么发件人就无法得知电子邮件的投递状态, 因此给发件人带来 4艮大的不便。 发明内容 It can be seen that the implementation of the above tracking function depends on the settings of the recipient in the webmail mailbox and the email software. If the recipient does not set the return function in the webmail and email software, the sender cannot know the delivery status of the email, thus causing 4 inconvenience to the sender. Summary of the invention
本发明实施例提供一种电子邮件跟踪系统及其方法和服务器, 在收 件人未在网页邮箱中设置回执功能的情况下, 也能有效地跟踪用户电子 邮件的投递状态, 并及时将该投递状态显示给用户。
本发明实施例的技术方案包括: The embodiment of the invention provides an email tracking system, a method and a server thereof, and can effectively track the delivery status of the user's email when the recipient does not set the receipt function in the webpage mailbox, and timely deliver the email. The status is displayed to the user. The technical solution of the embodiment of the present invention includes:
一种电子邮件跟踪系统, 包括邮件发送方和邮件服务器: 其中: 所述邮件发送方, 用于发送带有跟踪标识的电子邮件, 所述跟踪标 识包括发件人信息和邮件标识号; An email tracking system, comprising: a mail sender and a mail server: wherein: the mail sender is configured to send an email with a tracking identifier, the tracking identifier comprising a sender information and a mail identification number;
所述邮件服务器, 用于投递所述电子邮件并解析所述电子邮件的跟 踪标识, 根据解析出的邮件标识号确定电子邮件, 根据解析出的发件人 信息确定对应于该发件人信息的索引表, 并将所确定的电子邮件的最新 投递状态更新至所述对应于该发件人信息的索引表中。 The mail server is configured to deliver the email and parse the tracking identifier of the email, determine an email according to the parsed email identification number, and determine, according to the parsed sender information, the information corresponding to the sender information. Indexing the table, and updating the determined latest delivery status of the email to the index table corresponding to the sender information.
本发明实施例还同时公开了一种电子邮件跟踪方法, 包括: 发送带有跟踪标识的电子邮件, 所述跟踪标识包括发件人信息和邮 件标识号; The embodiment of the present invention also discloses an email tracking method, including: sending an email with a tracking identifier, where the tracking identifier includes a sender information and a mail identification number;
投递所述电子邮件并解析所述电子邮件的跟踪标识, 根据解析出的 邮件标识号确定电子邮件, 根据解析出的发件人信息确定对应于该发件 人信息的索引表, 并将所确定的电子邮件的最新投递状态更新至所述对 应于该发件人信息的索引表中。 Delulating the email and parsing the tracking identifier of the email, determining an email according to the parsed email identification number, determining an index table corresponding to the sender information according to the parsed sender information, and determining The latest delivery status of the email is updated to the index table corresponding to the sender information.
一种电子邮件服务器, 该电子邮件服务器包括电子邮件接收模块和 索引表保存模块, 每个发件人对应一个索引表, 其中: An email server includes an email receiving module and an index table saving module, and each sender corresponds to an index table, where:
电子邮件接收模块, 用于接收包含电子邮件跟踪标识的电子邮件并 对所述电子邮件进行投递, 该跟踪标识包括发件人信息和邮件标识号, 并解析所述电子邮件的跟踪标识, 根据解析出的邮件标识号确定电子邮 件, 根据解析出的发件人信息确定对应于该发件人信息的索引表, 并将 所确定的电子邮件的最新投递状态更新至所述对应于该发件人信息的 索引表中; An email receiving module, configured to receive an email containing an email tracking identifier, and send the email, the tracking identifier includes a sender information and a mail identification number, and parse the tracking identifier of the email, according to the parsing The outgoing mail identification number determines an email, determines an index table corresponding to the sender information based on the parsed sender information, and updates the determined latest email status of the determined email to the sender corresponding to the sender Information in the index table;
索引表保存模块, 用于保存发件人所对应的索引表, 并将保存在索 引表中对应于所述邮件标识号的电子邮件的最新投递状态显示给发件
人。 An index table saving module, configured to save an index table corresponding to the sender, and display the latest delivery status of the email corresponding to the email identification number stored in the index table to the sending People.
通过采用本发明实施例的技术方案, 发件人能够有效地跟踪用户电 子邮件的投递状态, 并及时将该投递状态显示给该发件人。 附图简要说明 By adopting the technical solution of the embodiment of the present invention, the sender can effectively track the delivery status of the user's email, and display the delivery status to the sender in time. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是本发明实施例一种电子邮件跟踪系统的结构示意图; 图 2是本发明实施例一种电子邮件跟踪方法的流程图。 实施本发明的方式 1 is a schematic structural diagram of an e-mail tracking system according to an embodiment of the present invention; and FIG. 2 is a flowchart of an e-mail tracking method according to an embodiment of the present invention. Mode for carrying out the invention
下面根据附图和具体实施例对本发明作进一步阐述。 The invention will now be further elucidated with reference to the drawings and specific embodiments.
在本发明实施例中, 提出了一种电子邮件跟踪系统。 该系统包括邮 件发送方和邮件服务器。 其中: 邮件发送方, 用于发送带有跟踪标识的 电子邮件, 所述跟踪标识包括发件人信息和邮件标识号; 邮件服务器, 用于投递所述电子邮件并解析所述电子邮件的跟踪标识, 根据解析出的 邮件标识号确定电子邮件, 根据解析出的发件人信息确定对应于该发件 人信息的索引表, 并将所确定的电子邮件的最新投递状态更新至所述对 应于该发件人信息的索引表中。 In an embodiment of the invention, an email tracking system is proposed. The system includes a mail sender and a mail server. Wherein: a mail sender, configured to send an email with a tracking identifier, the tracking identifier including sender information and a mail identification number; a mail server, a tracking identifier for delivering the email and parsing the email Determining an email according to the parsed mail identification number, determining an index table corresponding to the sender information according to the parsed sender information, and updating the determined latest email status of the determined email to the corresponding In the index table of the sender information.
其中, 邮件服务器,可以在投递过程中出现邮件投递延迟和 /或失败 情况时, 根据预设的超时时间对超时的电子邮件作处理, 并将邮件超时 的提示信息记载到所述索引表中或者直接将邮件超时的提示信息发送 到所述邮件发送方。 邮件服务器, 还可以在对电子邮件进行投递之前, 首先过滤伪电子邮件跟踪标识或过滤无需跟踪其投递状态的电子邮件。 The mail server may process the timeout email according to a preset timeout period when a mail delivery delay and/or a failure occurs during the delivery process, and record the email timeout prompt information in the index table or Send the prompt message of the mail timeout directly to the sender of the mail. The mail server can also filter the fake email tracking identifier or filter emails that do not need to track their delivery status before delivering the email.
比如, 下面结合附图详细描述本发明实施例所提出的电子邮件跟踪 系统的示范性结构。 For example, an exemplary structure of an email tracking system proposed by an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
如图 1所示, 本发明较佳实施例中, 一种电子邮件跟踪系统主要包
括: 网页用户发件箱 1、 设置在网页用户发件箱 1上带有电子邮件跟踪 模块的电子邮件 2、 设置在后台服务器 7上的索引表 3以及设置在后台 服务器 7的电子邮件跟踪标识过滤模块 5和电子邮件接收模块 6。 As shown in FIG. 1, in a preferred embodiment of the present invention, an email tracking system main package The webpage user outbox 1, the email provided with the email tracking module on the webpage user outbox 1, the index table 3 set on the background server 7, and the email tracking identifier set in the background server 7. The filtering module 5 and the email receiving module 6.
电子邮件跟踪模块包括邮件标识号生成单元, 用于根据预设算法生 成唯一的邮件标识号, 并同时保存在网页用户发件箱 1中。 当发件人需 要通过网页用户发件箱 1发信时, 可在电子邮件 2的头部记入电子邮件 跟踪模块, 其跟踪标识可表示为 X-TraceMail-Tag, 该 Tag的格式可表示 为: <发件人〉 _ <邮件标识号〉, 并同时记录电子邮件的发送时间, 将该 邮件已发送成功的信息更新至发件人的索引表 3上。 The email tracking module includes a mail identification number generating unit for generating a unique mail identification number according to a preset algorithm, and simultaneously saving in the webpage user outbox 1. When the sender needs to send a message through the webpage user outbox 1, an email tracking module can be recorded in the header of the email 2, and the tracking identifier can be represented as X-TraceMail-Tag, and the format of the tag can be expressed as : <Sender> _ <mail identification number>, and simultaneously record the e-mail sending time, and update the information that the mail has been successfully sent to the sender's index table 3.
其中, 索引表 3保存在后台服务器 7上, 可以每个邮件帐号用户对 应一个索引表 3。 索引表 3用于记录该电子邮件的最新投递状态, 以显 示给发件人。 当发件人点击已发送邮件箱中的已发送电子邮件时, 即可 看到该电子邮件的投递状态。 The index table 3 is stored on the background server 7, and each mail account user can correspond to an index table 3. The index table 3 is used to record the latest delivery status of the email to be displayed to the sender. When the sender clicks on the sent email in the sent mailbox, you can see the delivery status of the email.
电子邮件接收模块 6, 设置在后台服务器 7上。 所有的网页用户发 件箱 1发出的电子邮件 2, 都发送到邮件服务提供商的后台服务器 7, 由后台服务器 7将这些邮件经过内部的转发投递流程最终将这些邮件投 递出去。 电子邮件接收模块 6用于统一接收电子邮件, 对所述电子邮件 的跟踪标识进行解析, 并将接收到的电子邮件进行分类投递, 由跟踪标 识唯一确定跟踪的每封邮件, 根据所述电子邮件跟踪模块所记录的跟踪 标识将分类投递后的所述电子邮件的最新投递状态更新至发件人的索 引表 3中。 The email receiving module 6 is set on the background server 7. All e-mails 2 sent by the web user's outbox 1 are sent to the back-end server 7 of the mail service provider, and these messages are finally delivered by the back-end server 7 through the internal forwarding delivery process. The e-mail receiving module 6 is configured to receive the e-mail in a unified manner, parse the tracking identifier of the e-mail, and perform classified delivery on the received e-mail, and the tracking identifier uniquely determines each e-mail to be tracked, according to the e-mail. The tracking identifier recorded by the tracking module updates the latest delivery status of the email after the classified delivery to the sender's index table 3.
作为本发明实施例的一个改进, 本发明较佳实施例中, 一种电子邮 件跟踪系统还包括邮件超时处理模块 4。 当邮件在投递过程出现非终止 状态, 例如: 同时有大量的信件发出, 导致邮件队列积信很多, 使得后 台投递邮件服务器队列过长, 这时就会进行延迟队列或退信队列处理。
退信的可能情形还包括收件人地址不对, 等等。 若信件被持续延迟, 若 延迟时间时间超过预设的超时时间 timeout, 则可由邮件超时处理模块 4 将邮件超时的提示信息(如 "邮件延迟" 或者 "邮件投递失败" 等)返 回给发件人。 As an improvement of the embodiment of the present invention, in an embodiment of the present invention, an email tracking system further includes a mail timeout processing module 4. When the mail is in a non-terminating state during the delivery process, for example: A large number of letters are sent at the same time, resulting in a large number of mail queues, so that the background delivery mail server queue is too long, and then the delay queue or the return queue processing is performed. Possible cases of bounces include incorrect recipient addresses, and so on. If the letter is continuously delayed, if the delay time exceeds the preset timeout timeout, the message timeout processing module 4 may return the message of the mail timeout (such as "mail delay" or "mail delivery failure", etc.) to the sender. .
其中,预设的超时时间 timeout可以这样定义:发件人发信时记录的 发送时间为 T1 , 当发件人在网页用户发件箱 1 点击打开已发送的邮件 时, 经查询用户数据索引表该封信还没有达到终止态, 页面记录再次打 开该邮件的时间 T2。 若 T2-Tl〉timeout, 那么则认为该邮件已经被超时 处理, 页面应该返回给发件人邮件超时的提示信息。 The preset timeout timeout can be defined as follows: the sending time recorded by the sender when sending a message is T1, and when the sender clicks on the sent mail in the webpage user outbox 1, the user data index table is queried. The letter has not reached the termination state, and the page records the time T2 when the message is opened again. If T2-Tl>timeout, then the message is considered to have been timed out, and the page should return a message to the sender's message timeout.
作为本发明实施例的另一个改进, 本发明较佳实施例中, 一种电子 邮件跟踪系统还包括电子邮件跟踪标识过滤模块 5 , 其用于过滤伪电子 邮件跟踪标识或过滤无需跟踪其投递状态的电子邮件, 经过过滤后的邮 件则到达电子邮件接收模块 6。 一般来说, 对于其它伪电子邮件跟踪标 识需要过滤,以避免给用户造成错觉;对于通过邮件客户端(如: outlook, foxmail等电子邮件软件 )可以不需要跟踪,也就是说本发明实施例所述 的跟踪是指通过登陆 webmail进行发信的情况,由邮件客户端发出的不在 跟踪范围内。 As another improvement of the embodiment of the present invention, in an embodiment of the present invention, an email tracking system further includes an email tracking identifier filtering module 5 for filtering a pseudo email tracking identifier or filtering without tracking its delivery status. The email, the filtered email, arrives at the email receiving module 6. In general, other pseudo e-mail tracking identifiers need to be filtered to avoid illusion to the user; for the e-mail client (eg, Outlook, foxmail, etc.), tracking may not be required, that is, the embodiment of the present invention The tracking refers to the case of sending a message by logging in to webmail, and the mail client sends out the tracking range.
本发明实施例的电子邮件跟踪系统可与其它网页邮箱共用后台服务 器 7。 本领域技术人员知道, 本发明实施例中电子邮件接收模块 6的功 能可在后台服务器 7中实现。 The email tracking system of the embodiment of the present invention can share the background server 7 with other webmail mailboxes. Those skilled in the art will appreciate that the functions of the email receiving module 6 in the embodiment of the present invention can be implemented in the background server 7.
本发明实施例还提出了一种电子邮件服务器。 该电子邮件服务器包 括电子邮件接收模块和索引表保存模块, 每个发件人对应一个索引表, 其中: An embodiment of the present invention also provides an email server. The email server includes an email receiving module and an index table saving module, and each sender corresponds to an index table, where:
电子邮件接收模块, 用于接收包含电子邮件跟踪标识的电子邮件并 对所述电子邮件进行投递, 该跟踪标识包括发件人信息和邮件标识号,
并解析所述电子邮件的跟踪标识, 根据解析出的邮件标识号确定电子邮 件, 根据解析出的发件人信息确定对应于该发件人信息的索引表, 并将 所确定的电子邮件的最新投递状态更新至所述对应于该发件人信息的 索引表中; An email receiving module, configured to receive an email containing an email tracking identifier and deliver the email, the tracking identifier including a sender information and a mail identification number, And parsing the tracking identifier of the email, determining an email according to the parsed email identification number, determining an index table corresponding to the sender information according to the parsed sender information, and updating the determined email The delivery status is updated to the index table corresponding to the sender information;
索引表保存模块, 用于保存发件人所对应的索引表, 并将保存在索 引表中对应于所述邮件标识号的电子邮件的最新投递状态显示给发件 人。 The index table saving module is configured to save the index table corresponding to the sender, and display the latest delivery status of the email corresponding to the mail identification number stored in the index table to the sender.
其中, 索引表保存模块, 可以主动向邮件发送方发送保存在索引表 中对应于所述邮件标识号的电子邮件的最新投递状态, 或者用于响应于 邮件标识号的电子邮件的最新投递状态。 The index table saving module may actively send the mail sender to the latest delivery status of the email corresponding to the mail identification number stored in the index table, or the latest delivery status of the email in response to the mail identification number.
另外, 电子邮件服务器还可以进一步包括邮件超时处理模块。 所述 邮件超时处理模块,用于在投递过程中出现邮件投递延迟和 /或失败情况 时, 根据预设的超时时间对超时的电子邮件作处理, 并将邮件超时的提 示信息记载到所述索引表中或者直接将邮件超时的提示信息发送到所 述邮件发送方。 In addition, the email server may further include a mail timeout processing module. The mail timeout processing module is configured to process a timeout email according to a preset timeout period when a mail delivery delay and/or a failure occurs during the delivery process, and record the email timeout prompt information to the index. The prompt information of the mail timeout is directly sent to the mail sender in the table.
不仅与此, 该电子邮件服务器优选进一步包括电子邮件跟踪标识过 滤模块。 电子邮件跟踪标识过滤模块, 用于过滤伪电子邮件跟踪标识或 过滤无需^踪其投递状态的电子邮件。 Not only this, the email server preferably further includes an email tracking identity filtering module. An email tracking identity filtering module that filters fake email tracking identifiers or filters emails that do not need to be tracked for their delivery status.
如图 2所示, 本发明较佳实施例中, 一种电子邮件跟踪方法主要包 括以下步骤: As shown in FIG. 2, in an embodiment of the present invention, an email tracking method mainly includes the following steps:
步骤 Sl、 S2 , 发件人发送带有跟踪标识的电子邮件。 用户通过 webmail发信时, 在邮件的头部记入邮件跟踪标识 X-TraceMail-Tag, 该 Tag的格式: <发件人〉 _<邮件标识号〉, 并同时记录下邮件的发送时间, 并将邮件已经发送成功的信息更新至该发件人的索引表中。
例如:用户 12345@qq.com在网页邮箱给 67890@qq .com的用户发送 电子邮件 A , 将<发送时间〉和<发送成功的状态〉保存在用户 12345@qq.com这个用户的索引表(index ) 结构中, 同时在电子邮件的 头部记录一个字段 X-TraceMail-Tag: 12345_XX...X (该邮件标识号可由 预设算法生成全球唯一的 N位数字串, N可以为 31 ) , 此时该电子邮件 已保存在已发送邮件箱中。 当 12345@qq.com用户打开已发送邮件时, 系统就会将 "已成功发送" 的提示信息显示给用户。 Steps S1, S2, the sender sends an email with a tracking identifier. When the user sends a message via webmail, the message tracking identifier X-TraceMail-Tag is entered at the head of the mail. The format of the tag is: <sender>_<mail identification number>, and the time of sending the mail is recorded at the same time, and Update the message that the message has been successfully sent to the sender's index table. For example, the user 12345@qq.com sends an email A to the user of the 67890@qq.com in the webpage mailbox, and saves the <send time> and the <successful status of the transmission> in the user's index table of the user 12345@qq.com ( In the structure, a field X-TraceMail-Tag is also recorded in the header of the email: 12345_XX...X (The email identification number can be generated by a preset algorithm to generate a globally unique N-digit string, N can be 31) The email is now saved in the Sent Mailbox. When the 12345@qq.com user opens the sent message, the system will display the message "Successfully sent" to the user.
步骤 S3 , 由电子邮件跟踪标识过滤模块 5对接收到的电子邮件进行 过滤处理。 一般来说, 对于其它伪电子邮件跟踪标识需要过滤, 以避免 给用户造成错觉; 对于通过邮件客户端(如: outlook, foxmail等电子邮 件软件)可以不需要跟踪, 因为即使投递不成功,客户端也会产生退信。 Step S3: The email tracking identifier filtering module 5 filters the received email. In general, other pseudo-email tracking identifiers need to be filtered to avoid illusions to users; for tracking via email clients (eg, Outlook, foxmail, etc.), there is no need to track, because even if the delivery is unsuccessful, the client There will also be a bounce.
步骤 S4, 经过过滤的电子邮件到达电子邮件接收模块 6时, 由电子 邮件接收模块 6进行分类投递。 进行分类时, 一般需分出哪些是发送到 内域(例如: @ qq.com投递给 @ qq.com ) 的邮件, 哪些是发送外域(例 如: @qq.com投递给 @ 163.com ) 的邮件。 在投递之前, 需要对电子邮 件进行解析, 例如对上述电子邮件进行解析, 得到 X-TraceMail-Tag: 12345_XX...X。 Step S4: When the filtered email arrives at the email receiving module 6, the email receiving module 6 performs classified delivery. When classifying, it is generally necessary to sort out which messages are sent to the inner domain (for example: @qq.com is delivered to @qq.com), and which are sent to the foreign domain (for example: @qq.com is delivered to @163.com) mail. Before the delivery, the email needs to be parsed, for example, the above email is parsed to obtain X-TraceMail-Tag: 12345_XX...X.
步骤 S5 , 判断是否投递成功。 正常的投递过程速度会比较快, 一封 普通 200K的电子邮件仅需 0.3S即可投递到对方邮箱, 如果投递成功则 执行步骤 S7; 但是如果在投递过程中出现非终止状态, 例如: 邮件队列 积信很多, 同时有大量的信件发出,使得后台投递邮件服务器队列过长, 则执行步骤 S6。 In step S5, it is determined whether the delivery is successful. The normal delivery process will be faster. An ordinary 200K email can be delivered to the other mailbox only by 0.3S. If the delivery is successful, step S7 is performed; however, if a non-terminating state occurs during the delivery process, for example: mail queue There are a lot of letters, and a large number of letters are sent out, so that the background delivery mail server queue is too long, and step S6 is performed.
步骤 S6, 对超时的电子邮件作相应处理。 若信件被持续延迟, 若延 迟时间时间超过预设的超时时间 timeout,则可由邮件超时处理模块 4将 邮件超时的提示信息(如 "邮件延迟" 或者 "邮件投递失败" 等) 更新
到索引表, 并通过索引表返回给发件人。 可选地, 邮件超时处理模块 4 也可以直接将邮件超时的提示信息返回给发件人。 其中, 预设的超时时 间 timeout可以这样定义: 发件人发信时记录的发送时间为 T1 , 当发件 人在网页邮箱点击打开已发送的邮件时, 页面记录首次打开该邮件的时 间 T2。 若 T2-Tl〉timeout, 那么则认为该邮件已经被超时处理, 页面应 该返回给发件人邮件超时的提示信息。 In step S6, the time-out email is processed accordingly. If the mail is continuously delayed, if the delay time exceeds the preset timeout timeout, the mail timeout processing module 4 may update the prompt information of the mail timeout (such as "mail delay" or "mail delivery failure", etc.) Go to the index table and return it to the sender via the index table. Optionally, the mail timeout processing module 4 may directly return the prompt information of the mail timeout to the sender. The preset timeout timeout can be defined as follows: When the sender sends a message, the sending time is T1. When the sender clicks on the sent email in the webpage mailbox, the page records the time T2 when the email is first opened. If T2-Tl>timeout, then the message is considered to have been timed out, and the page should return a message to the sender's email timeout.
步骤 S7, 通过取出该电子邮件的跟踪标识, 由 X-TraceMail-Tag里 的邮件标识 ID即可唯一标识该被跟踪的电子邮件, 然后将步骤 S5中该 电子邮件的投递成功的最新投递状态更新至该 X-TraceMail-Tag描述的 发件人在后台服务器的索引表中。 一般来说, 电子邮件经过投递之后可 能会出现的投递终止状态: Step S7, by extracting the tracking identifier of the email, the email identifier ID in the X-TraceMail-Tag can uniquely identify the tracked email, and then update the latest delivery status of the successful delivery of the email in step S5. The sender described by the X-TraceMail-Tag is in the index table of the background server. In general, the delivery termination status that may occur after an email has been delivered:
本域投递出现的状态有: The status of the delivery of this domain is:
a、 SENT_OK: 表示成功投递到本域用户收件箱; a, SENT_OK: indicates successful delivery to the user inbox of the domain;
b、 NO_SPACE: 表示收件人空间不足; b, NO_SPACE: indicates that the recipient space is insufficient;
c、 NO_USER: 表示收件人地址不存在; c, NO_USER: indicates that the recipient address does not exist;
d、 FILTERJGNORE: 表示收件人通过过滤器设置过滤掉; e、 ANTISPAMJGNORE: 表示收件人通过垃圾设置过滤掉; f、 SYS_ERR: 表示系统错误; d, FILTERJGNORE: indicates that the recipient is filtered by the filter settings; e, ANTISPAMJGNORE: indicates that the recipient is filtered by the garbage setting; f, SYS_ERR: indicates a system error;
g: BOUNCE: 表示系统退信。 g: BOUNCE: Indicates system bounce.
外域投递出现的状态有 (由于不可能知道外域邮件服务商的后台投 递是如何进行的, 所以会有以下两个终止状态;): The status of the outbound delivery is (because it is impossible to know how the background delivery of the foreign domain service provider is carried out, so there are two termination states;):
a、 SENT_OK_OUT: 表示投递到外域用户收件箱; a, SENT_OK_OUT: indicates delivery to the foreign domain user inbox;
b、 BOUNCE_OUT: 表示投递外域用户退信。 b, BOUNCE_OUT: indicates that the delivery of the foreign domain user is a bounce.
如果上述收件人 67890@qq.com设置了过滤器, 禁止接收来自 12345@qq.com的 来信 , 那 么 本域投递到 达终止状 态 为
FILTER_IGNORE„ 根据 X-TraceMail-Tag: 12345_XX...X字段信息里的 两个字段<发件人〉- <邮件标识号〉以及记录在发件人 12345@qq.com 索 引表中的<发送时间〉三者唯一确定该邮件是发给 67890@qq.com这个 用户的, 并将该电子邮件的投递状态 FILTER_IGNORE 重新写入 12345@qq.com用户索引表中。 If the above recipient 67890@qq.com sets a filter to prohibit receiving a letter from 12345@qq.com, then the domain delivery arrival termination status is FILTER_IGNORE „ According to the X-TraceMail-Tag: 12345_XX...X field information, two fields <sender>-<mail identification number> and <send time recorded in the sender's 12345@qq.com index table 〉 The three uniquely determined that the email was sent to the user of 67890@qq.com, and re-written the email delivery status FILTER_IGNORE into the 12345@qq.com user index table.
步骤 S8, 接收发件人的查询请求, 将索引表中的该电子邮件的投递 状态信息显示给该发件人。 也就是说当 12345@qq.com用户点击已发送 的该电子邮件 A时, 获取 12345@qq.com 的索引表中记录的信息, 将投 递终止态显示给该用户。 Step S8: Receive a sender's query request, and display the delivery status information of the email in the index table to the sender. That is to say, when the user of 12345@qq.com clicks on the sent email A, the information recorded in the index table of 12345@qq.com is obtained, and the delivery termination state is displayed to the user.
综上所述, 通过采用本发明实施例的技术方案, 发件人可以查询到 电子邮件从发送到投递的整个投递状态, 从而实现完整的邮件跟踪过 程。 In summary, by adopting the technical solution of the embodiment of the present invention, the sender can query the entire delivery state of the email from sending to delivery, thereby implementing a complete mail tracking process.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对 于本领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明 的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在 本发明的权利要求范围之内。
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. All modifications, equivalents, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the appended claims.