CN1250288A - Processing method and device for e-mail data synchronization - Google Patents
Processing method and device for e-mail data synchronization Download PDFInfo
- Publication number
- CN1250288A CN1250288A CN 98120918 CN98120918A CN1250288A CN 1250288 A CN1250288 A CN 1250288A CN 98120918 CN98120918 CN 98120918 CN 98120918 A CN98120918 A CN 98120918A CN 1250288 A CN1250288 A CN 1250288A
- Authority
- CN
- China
- Prior art keywords
- data
- mentioned
- tag
- database
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
本发明有关于一种电子邮件数据同步的处理方法和装置,特别是用来同步散落在各个终端设备上的使用者电子邮件的处理方法和装置。The invention relates to a processing method and device for email data synchronization, in particular to a processing method and device for synchronizing user emails scattered on various terminal devices.
目前一般在互联网中所采用的电子邮件操作结构,主要是以用户端/服务端(client/serven)的方式达成。详言之,就是在网络上提供一个邮件服务器(mailserver),并且设置对应于各使用者(用户端)的电子邮件信箱。当电子邮件传来时,即被送到对应的电子信箱内加以保存。当使用者(用户端)连线到邮件服务器并且要求查看电子邮件信箱内容时,邮件服务器便会读出电子信箱的内容并且送到此用户端上。Currently, the e-mail operation structure generally adopted in the Internet is mainly implemented in a client/server manner. Specifically, a mail server (mailserver) is provided on the network, and an email mailbox corresponding to each user (client) is set. When an e-mail arrives, it will be sent to the corresponding e-mail box for storage. When the user (client) connects to the mail server and requests to check the contents of the e-mail box, the mail server will read the content of the e-mail box and send it to the client.
在一般电子邮件的协定中,当电子邮件数据从邮件服务端移转到用户端时,会将邮件服务器中被移转的电子邮件数据加以删除,也就是不再保留此电子邮件数据。不过也有部分的邮件系统会将所有的电子邮件保留在服务器中,例如CC-mail。这种将所有邮件数据保留在服务器的系统具有一个比较严重的问题,就是在长期使用后,服务端中会累积相当数量的电子邮件数据。每当使用者要求下载电子邮件数据时,便会花费大量的时间检查或下载许多重复的电子邮件数据,因此降低网络的效率。In general email protocols, when email data is transferred from the mail server to the client, the transferred email data in the mail server will be deleted, that is, the email data will no longer be retained. However, some mail systems will keep all emails in the server, such as CC-mail. This system that keeps all email data in the server has a serious problem, that is, after long-term use, a considerable amount of email data will accumulate in the server. Whenever a user requests to download email data, it will take a lot of time to check or download many duplicate email data, thus reducing the efficiency of the network.
不过最后电子邮件数据还是会被送到用户端的设备上。然而现代人的工作经常是在不同的终端设备上进行。例如,使用者可能白天在公司内的个人电脑中工作,但是晚上则是在家中的电脑上操作,而在旅行时则是使用便携式的笔记型电脑或是手持式个人电脑。图1即表示此一工作型态的架构示意图。使用者可能通过不同的终端设备,如办公室用电脑1、家中电脑2和便携式电脑3,来存取邮件服务器4上一个或数个电子信箱中的电子邮件。也就是说,各种电子邮件数据可能会散落在不同的终端设备中。再者,即使在同一终端设备上进行工作,也可能因为使用了不同的电子邮件软件,而使得电子邮件数据散落在各电子邮件软件对应的不同数据夹中。因此,由于电子邮件数据的分散,使用者在调阅不同电子邮件数据时,往往必须通过不同的终端设备以及不同的电子邮件软件才能进行,同时也很难将所有收发的电子邮件数据共用。However, in the end, the email data will still be sent to the client's device. However, the work of modern people is often carried out on different terminal devices. For example, a user may work on a PC in the company during the day, but at night on a computer at home, and a portable notebook or handheld PC when traveling. FIG. 1 shows a schematic diagram of the structure of this working mode. Users may access the e-mails in one or several e-mail boxes on the
简言之,目前的电子邮件系统存在数据同步上的问题。对于将所有电子邮件数据保留在邮件服务器的电子邮件系统(如CC-mail)而言,日积月累的数据非常的庞大,同时在用户端载入电子邮件数据时,也必须浪费相当多的时间来处理,降低了网络的使用效率。对于邮件服务器传送电子邮件后即删除的电子邮件系统(如SMTP)而言,邮件数据可能会散落在不同的终端设备以及不同的数据夹中,增加数据整合上的困难。In short, the current e-mail system has data synchronization problems. For an email system (such as CC-mail) that keeps all email data in the mail server, the accumulated data is very large, and at the same time, a considerable amount of time must be wasted when the user end loads the email data for processing , reducing the efficiency of network usage. For the e-mail system (such as SMTP) where the e-mail server deletes the e-mail after sending it, the e-mail data may be scattered in different terminal devices and different folders, which increases the difficulty of data integration.
有鉴于此,本发明的主要目的在于提供一种电子邮件数据同步的处理方法和装置,能够将散落在不同终端设备和不同数据夹中的电子邮件数据加以同步化,也就是整合所有的电子邮件数据在同一终端设备和档案中,以方便进一步的处理。In view of this, the main purpose of the present invention is to provide a processing method and device for e-mail data synchronization, which can synchronize e-mail data scattered in different terminal devices and different data folders, that is, integrate all e-mail data The data is in the same terminal device and archive for further processing.
本发明的另一目的在于提供一种电子邮件数据同步的处理方法和装置,可以对于将邮件数据全部保留在邮件服务器的系统,减少邮件服务器和用户端之间的数据下载时的处理时间,以便提高网络的使用效率。Another object of the present invention is to provide a processing method and device for e-mail data synchronization, which can reduce the processing time when downloading data between the mail server and the client for the system that retains all mail data in the mail server, so that Improve network efficiency.
根据上述目的,本发明提出一种电子邮件数据同步的处理方法,用以同步第一装置和第二装置中所储存的多个电子邮件数据,其包括下列步骤。首先,在上述第一装置和上述第二装置中分别建立第一标记数据库和第二标记数据库,上述第一标记数据数据库用以记录上述第一装置中储存的电子邮件数据所对应的标记数据,上述第二标记数据库用以记录上第二装置中储存的电子邮件数据所对应的标记数据。接着读取上述第一标记数据库和上述第二标记库数据库。接着根据上述第一标记数据库和上述第二标记数据库,用以搜寻出所有在上述第一标记数据库和上述第二标记数据库中记录的标记数据所对应的电子邮件数据。接着根据上述搜索结果,并且至少设上述第一装置和上述第二装置中之一为一同步结果储存装置,储存所有搜寻出的电子邮件数据。最后,更新上述同步结果储存装置中的标记数据库。According to the above purpose, the present invention proposes a processing method for email data synchronization, which is used to synchronize multiple email data stored in the first device and the second device, which includes the following steps. Firstly, a first mark database and a second mark database are respectively established in the above-mentioned first device and the above-mentioned second device, and the above-mentioned first mark data database is used to record mark data corresponding to the e-mail data stored in the above-mentioned first device, The second tag database is used to record tag data corresponding to the email data stored in the second device. Then read the above-mentioned first tag database and the above-mentioned second tag library database. Next, according to the above-mentioned first tag database and the above-mentioned second tag database, it is used to search for all email data corresponding to the tag data recorded in the above-mentioned first tag database and the above-mentioned second tag database. Then, according to the search results, at least one of the first device and the second device is set as a synchronous result storage device to store all the searched email data. Finally, the tag database in the synchronization result storage device is updated.
另外,标记数据库的建立步骤是在进行电子邮件的传送和接收处理时,将其对应的标记数据储存于标记数据库来完成。另外,上述的标记数据至少由辨识数据、位置数据和时间数据所构成,上述辨识数据用以辨识对应的电子邮件数据,上述位置数据用以定义对应的电子邮件数据的储存位置,上述时间数据用以定义对应的电子邮件数据的最新更新时间。因此,根据上述标记数据中的辨识数据,可以判断储存于上述第一装置和上述第二装置的电子邮件数据中重复的电子邮件数据,藉以搜寻出在上述第一标记数据和上述第二标记数据中记录的标记数据所对应的所有电子邮件数据,并且根据上述标记数据中的时间数据,定用电子邮件数据的最新版本;而根据上述标记数据中的位置数据,可以决定电子邮件数据的读取位置。In addition, the step of establishing the tag database is completed by storing the corresponding tag data in the tag database when sending and receiving emails. In addition, the above-mentioned tag data is at least composed of identification data, location data and time data, the above-mentioned identification data is used to identify the corresponding email data, the above-mentioned location data is used to define the storage location of the corresponding email data, and the above-mentioned time data is used for to define when the corresponding email data was last updated. Therefore, according to the identification data in the above-mentioned mark data, it is possible to judge the repeated email data stored in the above-mentioned first device and the above-mentioned second device, so as to search out the email data in the above-mentioned first mark data and the above-mentioned second mark data. All e-mail data corresponding to the marked data recorded in , and according to the time data in the above marked data, the latest version of the e-mail data is used; and according to the position data in the above marked data, the reading of the e-mail data can be determined Location.
另一方面,本发明亦提供一种电子邮件数据同步处理装置,用以与一外部电子邮件数据同步处理装置进行电子邮件的同步,其包括:一启动模组,用以接收一使用者的同步命令;一电子邮件数据库,具有多个电子邮件数据;一标记数据库,具有多个标记数据,分别对应于上述电子邮件数据;一通讯模组,耦接于上述启动模组,并且接收上述同步命令,用以与外部电子邮件数据同步处理装置连线,一标记次数控制模组,耦接于上述通讯模组和上述标记数据库,其对应于上述同步命令,读出上述标记数据库的上述标记数据以及通过上述通讯模组得到上述外部电子邮件数据同步处理装置的标记数据,进行比较,搜寻出所有对应于不同电子邮件数据的标记数据;以及一邮件数据控制模组,耦接于上述通导讯模组、上述标记数据控制模组、上述标记数据库和上述电子邮件数据库,根据上述标记数据控制模组所得到的搜寻结果,通过上述通讯模组读取上述外部电子邮件数据同步处理装置的电子邮件数据,藉以更新上述电子邮件数据库和上述标记数据库。On the other hand, the present invention also provides an e-mail data synchronization processing device for synchronizing e-mails with an external e-mail data synchronization processing device, which includes: an activation module for receiving a user's synchronization Command; an email database with a plurality of email data; a tag database with a plurality of tag data corresponding to the email data; a communication module coupled to the startup module and receiving the synchronization command , used to connect with the external e-mail data synchronization processing device, a marking times control module, coupled to the above-mentioned communication module and the above-mentioned mark database, which corresponds to the above-mentioned synchronization command, reads the above-mentioned mark data of the above-mentioned mark database and Obtain the tag data of the above-mentioned external e-mail data synchronization processing device through the above-mentioned communication module, compare and search out all the tag data corresponding to different e-mail data; and a mail data control module, coupled to the above-mentioned communication module group, the above-mentioned mark data control module, the above-mentioned mark database and the above-mentioned e-mail database, according to the search result obtained by the above-mentioned mark data control module, read the e-mail data of the above-mentioned external e-mail data synchronization processing device through the above-mentioned communication module , which updates the email database above and the tag database above.
另外,亦包括一事件设备模组,用以在一邮件管理程序中设定至少一特定事件,上述特定事件对应于上述邮件管理程序对于上述电子邮件数据库的处理动作,当上述特定事件出现时,上述邮件管理程序即送出一事件通知;一事件监视模组,用以接收上述事件通知;以及一事件注册模组,根据上述事件监视模组所接收到和上述事件通知,对于上述标记数据库进行对应的修正。藉此,建立及维护标记数据库。In addition, an event device module is also included, which is used to set at least one specific event in a mail management program, and the specific event corresponds to the processing action of the above-mentioned mail management program on the above-mentioned email database. When the above-mentioned specific event occurs, The above-mentioned mail management program sends an event notification; an event monitoring module for receiving the above-mentioned event notification; and an event registration module for corresponding to the above-mentioned tag database according to the above-mentioned event monitoring module received and the above-mentioned event notification correction. Thereby, a tag database is established and maintained.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举一较佳实施例,并配合附图,作详细说明如下:In order to make the above-mentioned purpose, features and advantages of the present invention more obvious and understandable, a preferred embodiment is specially cited below, and in conjunction with the accompanying drawings, the detailed description is as follows:
图1表示一般邮件服务器在使用上的方块示意图。FIG. 1 shows a schematic block diagram of a general mail server in use.
图2表示在本发明实施例中,当用户端设备通过邮件服务器收发电子邮件时的硬件结构方块图。FIG. 2 shows a block diagram of the hardware structure when the client device sends and receives emails through the mail server in the embodiment of the present invention.
图3表示在本发明实施例中,当用户端设备通过邮件服务器收发电子邮件时的数据流向图。FIG. 3 shows a data flow diagram when the client device sends and receives e-mail through the mail server in the embodiment of the present invention.
图4表示在本发明实施例中的标记数据库的结构示意图。Fig. 4 shows a schematic diagram of the structure of the tag database in the embodiment of the present invention.
图5表示在本发明实施例中,当两个用户端设备进行电子邮件数据同步时的硬件结构方块图。FIG. 5 shows a block diagram of a hardware structure when two client devices synchronize email data in an embodiment of the present invention.
图6表示在本发明实施例中,当两个用户端设备进行电子邮件数据同步时的数据流向图。FIG. 6 shows a data flow diagram when two client devices synchronize email data in an embodiment of the present invention.
图7表示本发明实施例在进行电子邮件数据同步处理时的简化流程图。FIG. 7 shows a simplified flow chart of the embodiment of the present invention when synchronizing email data.
本发明的电子邮件数据同步处理方法可以分为两个阶段,第一个阶段是在一般收发电子邮件时处理,其目的在于建立对应电子邮件数据的标记数据库(tagdatabase)。标记数据库是用来储存在进行数据同步时对应于各电子邮件数据的相关讯息。第二个阶段则是根据在各用户端设备上所建立的标记数据库,实际进行电子邮件数据的同步交换。在以下实施例中,主要是针对用户端设备之间的数据同步情况来做说明。但是对于用户端设备和邮件服务器之间的情况,同样适用以下实例。The e-mail data synchronous processing method of the present invention can be divided into two stages, the first stage is processing when sending and receiving e-mails generally, and its purpose is to establish a tag database (tagdatabase) corresponding to e-mail data. The tag database is used to store relevant information corresponding to each email data during data synchronization. The second phase is the actual synchronous exchange of e-mail data based on the tag database established on each client device. In the following embodiments, descriptions are mainly made on data synchronization between user end devices. But for the situation between the client device and the mail server, the following examples also apply.
图2表示在本实施例中,当用户端设备通过邮件服务器收发电子邮件时的硬件结构方块图。如图所示,用户端设备10通过调制解调器9连线到邮件服务器4,藉以进行电子邮件的收发动作。用户端设备10和调制解调器9一般是通过串行、,并行端和PCMCIA接口连接。而调制解调器9和邮件服务器4之间则是通过公众服务电话网(PSTN)进行信息的交换。调制解调器9的作用是将数字数据转换成模拟型式,以便在PSTN上进行传送。但是当用户端设备10是通过广域网或是互联网(Internet)直接连接到邮件服务器4时,则可能不需要调制解调器9,而是使用适当适配器(adaptor)来进行连接。FIG. 2 shows a block diagram of the hardware structure when the client device sends and receives emails through the mail server in this embodiment. As shown in the figure, the
本实施例中的用户端设备10,无论是桌上型电脑、笔记型电脑或是个人数字助理器,都包含图2所示的各组成元件:中央处理单元100、通讯电路101、输入装置102(例如键盘)、输出装置103(例如显示器)、储存装置104(例如硬盘或快擦写存储器)和主存储器105(动态随机存取存储器,DRAM)。在收发电子邮件的过程中,中央处理单元100是负责进行电子邮件收发动机的控制,以及实际负责建立和管理对应的标记数据库。通讯电路101则是负责调制解调器9的通讯控制。输入装置102则是供使用者下达接收或传送电子邮件的指令。输出装置103则是用来显示使用者界面以及电子邮件收发的讯息。储存装置104是用来储存传送和接收的电子邮件数据以及对应各电子邮件的标记数据(标记数据库)。主存储器105则是用来实际在电子邮件传送和接收时的存储器装置。以下分别就传送电子邮件和接收电子邮件的情况,说明图2中的硬件如何建立及维护其对应的标记数据库。The
当使用者通过输入装置102输入传送电子邮件的指令时,中央处理单元100会将储存在储存装置104的电子邮件载入到主存储器105,再将其传送到通讯电子13。调制解调器9则将通讯电路101所提供的电子邮件数据转换成模拟信号,送到邮件服务器4,准备进行传送。当调制解调器9回应正常传送的信息后,中央处理单元100便会将在同步处理时所需要的信息(标记数据),储存到储存装置104上,藉此建立了对刚才传送的电子邮件所记录的同步处理用信息。When the user inputs an instruction to send an email through the
另一方面,当使用者通过输入装置14输入接收电子邮件的指令时,中央处理单元100便会将接收电子邮件的指令传送到通讯电路101上,通过调制解调器9传送到邮件服务器4。此时系统必须等待邮件服务器4的回应。当邮件服务器4传送回该使用者在其电子信臬中所接到的电子出件时,通过调制解调器9和通讯电路101,中央处理单元100将这些电子邮件数据暂存地储存在主存储器105中。经过检查无误后,中央处理单元100便将这些电子邮件数据储存到储存装置104中。在成功完成所有邮件接收步骤后,中央处理单元100便将各电子邮件数据中,会使用于同步处理时所需要的信息(标记数据),储存到储存装置104上,藉此建立了对刚才接收的电子邮件所记录的同步处理用信息。因此,对应每一个所接收的电子邮件和所传送的电子邮件,系统都会记录下其对应的标记数据,供在不同用户端设备间进行电子邮件同步处理时之用。On the other hand, when the user inputs an instruction to receive emails through the input device 14 , the
以上是以硬件的观点说明本实施例在建立标记数据库时的程序。以下参照图3,详细说明如何实施建立标记数据库的方法。图3表示在本实施例中,当用户端设备通过邮件服务器收发电子邮件时的数据流向图。在图3所示的数据流图中分为两个部分,分别为邮件服务端4和用户端设备10,对应于图2中相同标记的部分。另外在图3中所示的各模组和数据中,邮件服务端4的邮件信箱400、讯息传输代理模组401以及用户端设备10的讯息传输代理模组110、邮件管理模组112和电子邮件数据库120是一般用来进行电子邮件收发操作的必要部分。邮件信箱400是邮件服务器4储存使用者电子邮件的储存区,邮件管理模组112则是在用户端上负责让使用者管理电子邮件的应用程序模组,例如Eudora(tm)、Netscape mailbox等等。使用者可以通过邮件管理模组112下达发送或接收电子邮件的指令,通过讯息传输代理模组110和401的数据传输,便可在电子邮件数据库120和邮件信箱400之间交换讯息。储存在电子邮件数据库120中的数据,可以是加密形式,以增加其保密性。至于事件(event)设定模组113、事件监视模组114、事件注册模组115则是在本实施例中所加入的部分,其目的在于建立和维护标记数据库130。The above is a description of the procedure for creating the tag database in this embodiment from the hardware point of view. Referring to FIG. 3 , how to implement the method for establishing a tag database will be described in detail below. FIG. 3 shows a data flow diagram when the client device sends and receives emails through the mail server in this embodiment. The data flow diagram shown in FIG. 3 is divided into two parts, namely, the
事件设定模组113、事件监视模组114和事件注册模组115是本实施例中的电子邮件ADS(动态数据同步)模组群中的一部分,主要是在使用者进行电子邮件收发时动作,藉以对于每一个接收或发出的电子邮件112(电子邮件应用程序)启动时,必须一并启动上述三个模组。The event setting module 113, the event monitoring module 114 and the event registration module 115 are a part of the email ADS (dynamic data synchronization) module group in the present embodiment, and mainly act when the user sends and receives emails , so that when each incoming or outgoing email 112 (email application program) is activated, the above three modules must be activated together.
要使事件设定模组113、事件监视模组114和事件注册模组115在邮件管理模组112启动同时一并启动,可以先在一般系统内的注册数据库中注册(register)一个服务,即至少包括上述三个模组的电子邮件ADS模组群,而其启动的类型则是设为请求其他特定服务程序时启动。再将这些特定服务服序设定成系统中所有的电子邮件应用程度程序,就可以在启动图3中的邮件管理模组112时,同时启动事件设定模组113、事件监视模组114和事件注册模组115。上述做法的另一个优点则是无论是利用何种电子邮件应用程序来收发电子邮件,都可以记录在相同的标记数据库130中。To make the event setting module 113, the event monitoring module 114 and the event registration module 115 start together when the mail management module 112 is started, a service can be registered (register) in the registration database in the general system earlier, namely The e-mail ADS module group including at least the above three modules, and its startup type is set to start when other specific service programs are requested. Then set these specific service orders as all email application programs in the system, when starting the mail management module 112 in Fig. 3, start the event setting module 113, event monitoring module 114 and Event registration module 115 . Another advantage of the above approach is that no matter what email application is used to send and receive emails, they can all be recorded in the same token database 130 .
在启动后,被启动的事件设定模组113会先在邮件管理模组112中注册需要通知(notify)的事件。在本实施例中,被注册的通知事件可以包括:由用户端发出电子邮件、由用户端接收电子邮件,在邮件管理模组112中修改某个电子邮件数据等等的情况。另外,注册通知事件所需要告知的对象则为事件监视模组114。After being activated, the activated event setting module 113 will first register the events to be notified in the mail management module 112 . In this embodiment, the registered notification events may include: sending out emails by the client, receiving emails by the client, modifying certain email data in the mail management module 112, and so on. In addition, the event monitoring module 114 is the object to be notified when registering the notification event.
此时,使用者可通过邮件管理模组112来进行电子邮件的管理和维护工作。一直到邮件管理模组112发现任何需要通知的事件时,便会以事件发生的讯息通知事件监视模组114。事件监视模组114接着让事件注册模组15进行此事件的注册,以便在标记数据库130中建立对应此事件的标记数据。上述的处理会持续到邮件管理模组112结束之前,藉以将所有相关的标记讯息写入标记数据库130中。At this point, the user can manage and maintain emails through the email management module 112 . Until the mail management module 112 finds any event that needs to be notified, it will notify the event monitoring module 114 with an event occurrence message. The event monitoring module 114 then allows the event registration module 15 to register the event so as to create tag data corresponding to the event in the tag database 130 . The above-mentioned processing will continue until the mail management module 112 ends, so as to write all related tagged messages into the tagged database 130 .
图4则是表示在本实施例中的标记数据库130的结构示意图,也就是每笔标记数据所包含的同步处理用相关数据。如图所示,每笔标记数据包含以下的各项数据:电子邮件编码130a、寄件地址130b、收件地址130c、邮件主题名称130d、邮件收发时间130e、邮件存放位置130f、邮件修改时间130g和邮件状态数据130h。其中电子邮件编码130a是用来记录各电子邮件在标记数据库130中的编码。FIG. 4 is a schematic diagram showing the structure of the mark database 130 in this embodiment, that is, the relevant data for synchronization processing contained in each mark data. As shown in the figure, each mark data includes the following items of data: email code 130a, sending address 130b, receiving address 130c, email subject name 130d, email sending and receiving time 130e, email storage location 130f, email modification time 130g and mail status data 130h. Wherein the email code 130a is used to record the code of each email in the tag database 130 .
寄件地址130b、收件地址130c、邮件主题名称130d和邮件收发时间130e是用来做为电子邮件的辨识数据。由于一般电子邮件数据可散布在用户端的不同设备上,因此在记录每个电子邮件数据时必须保证电子邮件的唯一性。在标记数据库130中使用了四个变量来标示电子邮件数据,亦即此电子邮件的寄件电子邮件地址(寄位地址130b)、此电子邮件所要寄送的对象(收件地址130c)、在电子邮件中主题(subject)栏位中的数据(邮件主题名称130d)、以及在用户端处收到或是发出此邮件的日期/时间(邮件收发时间130e),来标示出单一份电子邮件。The sender address 130b, receiver address 130c, mail subject name 130d and mail sending and receiving time 130e are used as identification data of the email. Because general email data can be distributed on different devices of the user end, the uniqueness of email must be guaranteed when recording each email data. Four variables have been used in the tag database 130 to mark the email data, i.e. the sender email address (post address 130b) of this email, the object (receiver address 130c) to be sent by this email, The data (mail subject name 130d) in the subject field of the email, and the date/time (mail sending and receiving time 130e) when the email is received or sent out at the client end are used to identify a single email.
邮件存放位置130f则是用标示此标记数据所对应的电子邮件数据的储存位置,亦即是在那个用户端设备中的那个数据夹中。邮件修改时间130g则是用来记录此电子邮件数据进行最后一次修改的时间,利用此信息可以在不同版本中找出最近的一个。邮件状态数据130h则是用来指示此电子邮件数据的其他讯息,在本实施例中,邮件状态数据130h共定义了四种状态,亦即清除共享(Clean-Shared)表示此份电子邮件数据已经被同步处理过)、沾污共享(Dirty-Shared)(表示此份电子邮件数据需要被同步处理,也就是其为新增或是在同步过后又被修改过)、删除(Deleted)(表示此份电子邮件数据被删除)和Exclusive(表示此份电子邮件数据被加密处理)。The mail storage location 130f is used to indicate the storage location of the email data corresponding to the tag data, that is, in the data folder in the client device. The email modification time 130g is used to record the time when the email data was last modified, and this information can be used to find the latest one among different versions. The mail status data 130h is other information used to indicate the email data. In the present embodiment, the mail status data 130h defines four states altogether, that is, Clear-Shared means that the email data has been Synchronized), Dirty-Shared (indicates that this email data needs to be synchronized, that is, it is new or has been modified after synchronization), Deleted (Deleted) (indicates that this E-mail data is deleted) and Exclusive (indicating that this e-mail data is encrypted).
上述在标记数据中的各项讯息在同步处理时的作用,可以简单描述如下。当系统要进行同步处理时,可以通过寄件地址130b、收件地址130c、邮件主题名称130d和邮件收发时间130e的辨识数据来决定电子邮件的唯一性,以避免重复记录。但是当两个电子邮件数据的辨识数据相同时,就必须根据邮件修改时间130g和邮件状态数据130h来决定出最新的版本。而在进行电子邮件传送时,则是根据邮件存储位置130f来取出对应的电子邮件数据。The functions of the above-mentioned information in the tag data in synchronous processing can be briefly described as follows. When the system is to perform synchronization, the uniqueness of the e-mail can be determined by the identification data of the sender address 130b, receiver address 130c, mail subject name 130d, and mail sending and receiving time 130e, so as to avoid duplicate records. But when the identification data of the two emails are the same, the latest version must be determined according to the email modification time 130g and the email status data 130h. When sending emails, the corresponding email data is retrieved according to the email storage location 130f.
上述说明虽然是以单一用户端设备为例,但是同样的情况是可以适用于不同的用户端设备中。也就是说,使用者在利用不同用户端设备来收发电子邮件时,可以在不同的设备上建立出个别的标记数据库。本实施例以下就说明如何利用这些标记数据库,来达到电子邮件数据同步的目的。Although the above description takes a single client device as an example, the same situation can be applied to different client devices. That is to say, when users use different client devices to send and receive emails, they can create individual tag databases on different devices. In the following, this embodiment will describe how to use these tag databases to achieve the purpose of e-mail data synchronization.
图5表示在本实施例中,当两个用户端设备进行电子邮件数据同步处理时的硬件结构立块图。如图所示,用户端设备10和用户端设备20之间连接进行电子邮件数据的同步处理。如先前所述,用户端设备10中包括中央处理单元100、通讯电路101、输入装置102、输出装置103、存储装置104和主存储器105。另外,用户端设备20中也包括中央处理单元200、通讯电路201、输入装置202、输出装置203、储存装置204和主存储器205。两者间连接的部分为通讯电路101和201,其可以利用并行端、串行端或是红外线通讯来实现,实际连线的网络也可以是广域网或是局域网。在以下说明中,是假设使用者是由用户端设备20下达电子邮件数据同步的指令,并且会一并更新用户端设备10和20中的电子邮件数据,以达到电子邮件数据一致(同步)的目的。例如,用户端设备10可以是辨公室内的电脑或是家中的桌上型电脑,而用户端设备20则可以是容易携带的笔记型电脑或个人数字助理器。然而即使利用桌上型电脑发出同步指令,或是将所有电子邮件数据集中在桌上型电脑或是个人数位助理向上的情况,也同样符合本发明的精神。FIG. 5 shows a block diagram of the hardware structure when two client devices perform email data synchronization processing in this embodiment. As shown in the figure, the
以下说明在进行电子邮件数据同步处理时的硬件操作。此时用户端设备10和20的标记数据库和其对应的电子邮件数据库,是分别储存在储存装置104和204中。当用户端设备20发出电子邮件数据同步指令时,也就是使用者通过输入装置202下达同步指令后,中央处理单元200会通过通讯电路201和101,将此指令传送到用户端设备10。在用户端设备10的中央处理单元100接收到比同步指令后,便会将储存装置104中的标记数据库(对应于用户端设备10)读出,传送到用户端设备20。当中央处理单元200接收到此传送来的标记数据库(对应于用户端设备10)时,会先将其储存到存储器205中,接着再由已方的储存装置204中读出标记数据库(对应于用户端设备20),同样地储存在主存储器205中,最后再进行两个标记数据库的比较。The hardware operation at the time of e-mail data synchronization processing is described below. At this time, the tag databases of the
在上述处理过程中,主要是以用户端设备20做为比较标记数据的装置,所以所有标记数据库都是送到用户端设备20中。不过比较标记数据的装置也可以设在用户端设备10上。换言之,当用户端设备20发出同步指令的同时,也将其对应的标记数据库送到用户端设备10;接着用户端设备10就将传送来的标记数据库和本身的标记数据库一并储存到主存储105中,准备进行比较。以下的说明仍以用户端设备20做为比较的装置。In the above processing process, the
当用户端设备20的中央处理单元200进行比较后,可以根据其中的相关讯息,决定出所有目前储存的两端的电子邮件数据。接着,先更新储存在主存储器205中的标记数据库,再根据更新后的标记数据库,发出电子邮件的搬移指令,让用户端设备10和用户端设备20之间传送电子邮件数据,以便更新两端内的电子邮件数据库。在此处是以同步更新两端数据的情况来说明,但是实际应用时,也可以指定其中一个用户端设备来集中所有更新后的数据。在完成两端内的电子邮件数据库更新处理后,接着利用暂时储存在主存储器205中的标记数据库,更新两用户端设备的标记数据库,即完成同步的处理。此时,用户端设备10和20中都储存了更新后的电子邮件数据库和标记数据库。After the comparison, the
以上是以便件的观点说明本实施例在进行电子邮件同步处理时的程序。以下参考图6,详细说明如何实施电子邮件同步处理的方法。图6表示在本实施例中,当用户端设备10和20进行电子邮件数据同步时的数据流向图。如图所示,当进行电子邮件同步处理时,电子邮件ADS模组群包括了四个部分,分别为ADS启始模组(270,在图6中仅在用户端设备20中标示出)、通讯模组(240、140)、邮件数据控制模组(250、150)和标记数据控制模组(260、160)。换言之,图6中的ADS启始模组、通讯模组、邮件数据控制模组和标记数据控制模组以及图3的事件设定模组、事件监视模组和事件注册模组,构成本实施例中的完整电子邮件ADS模组群。The above is a description of the procedure of the present embodiment when performing e-mail synchronization processing from the point of view of software. Referring to FIG. 6 , how to implement the email synchronization method will be described in detail below. FIG. 6 shows a data flow diagram when the
以下分别叙述上述四个模组的作用。ADS启始模组270是用来启动整个电子邮件同步处理的程序,其根据使用者7的指示,下达同步处理程序的启动指令。通讯模组(240、140)则是在同步处理过程中,负责程序的控制以及在用户端设备10和20间传达同步指令、电子邮件数据和标记数据。邮件数据控制模组(250、150)则是用来负责电子邮件数据库220的读取与更新。标记数据控制模组(260、160)则是用来控制标记数据库230的读取,除此之外,标记数据控制模组260还必须负责进行标记数据库130和230的比较,并且根据比较结果,控制相关的模组进行电子邮件数据同步的动作。以下根据图6,详细说明在本实施例中如何利用标记数据库的数据来达到数据同步的目的。The functions of the above four modules are described below. The ADS starting module 270 is a program used to start the entire email synchronization process, and it issues an instruction to start the synchronization process program according to the instructions of the user 7 . The communication module ( 240 , 140 ) is responsible for program control and communication of synchronization commands, email data and tag data between the
当用户端设备10和20经过适当的硬件连线后,使用者7首先是在用户端设备20下达ADS启动指令。ADS启始模组270在接收到此ADS启动指令后,接着便会通知通讯模组240此相关的讯息,例如同步更新后的电子邮件数据库和标记数据库必须存放在那个用户端设备中(本实施例中是将同步更新后数据同时存放在两个用户端设备上)。通讯模组240接着会将此同步指令传送到用户端设备10的通讯模组140,并且要求其送出其内的标记数据库130内数据。After the
用户端设备10中,当通讯模组140接收到此同步指令后,即通过标记数据控制模组160读出标记数据库130。此标记数据库130再通过通讯模组140和240,送到标记数据控制模组260中。另一方面,通讯模组240也会在用户端设备20中要求标记数据控制模组260读出标记数据库230。此时在标记数据控制模组260中便保留了标记数据库130和230,准备进行两者的比较。In the
参考前述标记数据库结构(图4),以下描述标记数据控制模组260中进行比较的动作。参考图4,每一标记数据中都包括了辨识数据(即寄件地址130b、收件地址130c、邮件主题名称130和邮件收发时间130e)、储存数据(即邮件存放位置130f)和时间数据)即邮件修改时间130g)。比较两个标记数据库的目的,是在于找出所有储存在用户端设备10和20中的电子邮件数据。因此,标记数据控制模组260首先根据各标记数据中的辨识数据,决定出所有对应的电子邮件数据。当两份或是两份以下的标记数据指向相同的电子邮件数据,即表示可能是重复或者是接收(或发出)此电子邮件后又进行了修正。此部分可以利用邮件修正时间130g来决定。在本实施例中,无论是重复或修正的情况,都只选择最近修正后的一份电子邮件数据。于是,标记数据控制模组260将标记数据库130和230中重复的标记数据部分去除,而对于指示不同版本的电子邮件数据则取其中对应较新版本的标记数据,建立出一个新的标记数据库(未图示)。Referring to the aforementioned tag database structure ( FIG. 4 ), the following describes the comparison actions in the tag data control module 260 . With reference to Fig. 4, identification data (being sender's address 130b, receiving address 130c, mail subject name 130 and mail sending and receiving time 130e), storage data (being mail storage location 130f) and time data) have been included in each mark data) That is, the mail modification time 130g). The purpose of comparing the two tag databases is to find out all email data stored in the
接着标记数据控制模组260将比较后的结果分别送到用户端设备10的邮件数据控制模组150(通过通讯模组240、140)以及用户端设备20的邮件数据控制模组250。根据新同步更新后的标记数据库,邮件数据控制模组250和150可以利用邮件存放位置130f进行部分的电子邮件数据交换,以便更新电子邮件数据库120和220。完成电子邮件的更新后,接着便同步更新标记数据库130和230。至此,即完成电子邮件的同步处理。Then the marked data control module 260 sends the compared results to the mail data control module 150 of the client device 10 (through the communication modules 240, 140) and the mail data control module 250 of the
图7表示本发明实施例在进行电子邮件数据同步处理时的简化流程图。在进行同步处理之前,必须利用事件处理的相关模组(即事件设备模组113、事件监视模组114、事件注册模组115),建立标记数据库或是更新标记数据库(S1)。当两台用户端设备连线并且使用者下达同步命令时,先利用通讯模组(140、240)读出目前的标记数据库(130、230)(S2)。接着标记数据控制模组260比较标记数据库,并且找出所有对应于不同电子邮件数据的标记数据(S3)。利用此比较出的结果,邮件数据控制模组(150、250)交换电子邮件数据。以便更新电子邮件数据库(120、220)(S4),最后则是更新标记数据库(130、230)(S5),完成电子邮件同步的处理。FIG. 7 shows a simplified flow chart of the embodiment of the present invention when synchronizing email data. Before synchronous processing, related modules of event processing (ie, event device module 113, event monitoring module 114, event registration module 115) must be used to create or update the tag database (S1). When two client devices are connected and the user issues a synchronization command, the communication module (140, 240) is used to read out the current tag database (130, 230) (S2). Then the tag data control module 260 compares the tag database and finds out all tag data corresponding to different email data (S3). Using the result of this comparison, the mail data control modules (150, 250) exchange email data. In order to update the email database (120, 220) (S4), and finally update the tag database (130, 230) (S5), to complete the processing of email synchronization.
根据以上所述,本发明的电子邮件数据同步处理方法具有下列优点:According to the above, the e-mail data synchronization processing method of the present invention has the following advantages:
1.本发明的处理方法和装置,能够将散落在不同终端设备和不同数据夹中的电子邮件数据加以同步化,也就是整合所有的电子邮件数据在同一终端设备和档案中,以方便进一步的处理。1. The processing method and device of the present invention can synchronize the e-mail data scattered in different terminal devices and different data folders, that is, integrate all e-mail data in the same terminal device and file, to facilitate further deal with.
2.另外,本发明的处理方法和装置也同样可以适用在将邮件数据全部保留在邮件服务器的系统。亦即在用户端要载入邮件服务器中的电子邮件数据时,也可以利用本发明的方法来减少邮件服务器和用户端之间在数据下载时的处理时间,以便提高网络的使用效率。2. In addition, the processing method and device of the present invention can also be applied to a system that keeps all mail data in the mail server. That is to say, when the user end wants to load the email data in the mail server, the method of the present invention can also be used to reduce the processing time between the mail server and the user end when data is downloaded, so as to improve the use efficiency of the network.
本发明虽以一较佳实施例揭示如上,然其并非用以限定本发明,任何熟习此项技艺者,在不脱离本发明精神和范围内,当可做些许的更动与润饰,因此本发明的保护范围当由后附的权利要求来限定。Although the present invention is disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Anyone skilled in this art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, this The scope of protection of the invention should be defined by the appended claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 98120918 CN1103525C (en) | 1998-10-06 | 1998-10-06 | Processing method and device for e-mail data synchronization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 98120918 CN1103525C (en) | 1998-10-06 | 1998-10-06 | Processing method and device for e-mail data synchronization |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1250288A true CN1250288A (en) | 2000-04-12 |
CN1103525C CN1103525C (en) | 2003-03-19 |
Family
ID=5226900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 98120918 Expired - Fee Related CN1103525C (en) | 1998-10-06 | 1998-10-06 | Processing method and device for e-mail data synchronization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1103525C (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1302399C (en) * | 2003-01-29 | 2007-02-28 | 联想(北京)有限公司 | Mail transmitting-receiving system and method |
CN1316397C (en) * | 2001-02-12 | 2007-05-16 | Emc公司 | System and method of indexing unique electronic mail messages and uses for same |
CN100336351C (en) * | 2001-06-15 | 2007-09-05 | 诺基亚有限公司 | Selecting synchronous data |
CN100450108C (en) * | 2006-03-23 | 2009-01-07 | 华为技术有限公司 | A system, device and method for synchronously processing e-mails using data |
CN101848432A (en) * | 2009-03-26 | 2010-09-29 | 株式会社电装 | The mail operating device and the method for the transmission of control e-mail messages |
CN107276880A (en) * | 2017-06-13 | 2017-10-20 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus for obtaining mail |
-
1998
- 1998-10-06 CN CN 98120918 patent/CN1103525C/en not_active Expired - Fee Related
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1316397C (en) * | 2001-02-12 | 2007-05-16 | Emc公司 | System and method of indexing unique electronic mail messages and uses for same |
CN100336351C (en) * | 2001-06-15 | 2007-09-05 | 诺基亚有限公司 | Selecting synchronous data |
CN1302399C (en) * | 2003-01-29 | 2007-02-28 | 联想(北京)有限公司 | Mail transmitting-receiving system and method |
CN100450108C (en) * | 2006-03-23 | 2009-01-07 | 华为技术有限公司 | A system, device and method for synchronously processing e-mails using data |
CN101848432A (en) * | 2009-03-26 | 2010-09-29 | 株式会社电装 | The mail operating device and the method for the transmission of control e-mail messages |
US8401524B2 (en) | 2009-03-26 | 2013-03-19 | Denso Corporation | Mail operating device and method for controlling transmission of mail information |
CN101848432B (en) * | 2009-03-26 | 2014-04-09 | 株式会社电装 | Mail operating device and method for controlling transmission of mail information |
CN107276880A (en) * | 2017-06-13 | 2017-10-20 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus for obtaining mail |
Also Published As
Publication number | Publication date |
---|---|
CN1103525C (en) | 2003-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6671703B2 (en) | System and method for file transmission using file differentiation | |
US6925476B1 (en) | Updating application data including adding first change log to aggreagate change log comprising summary of changes | |
US7222139B2 (en) | Method, system and program for synchronizing data | |
US9594821B2 (en) | Method and apparatus for synchronizing how data is stored in different data stores | |
EP1825376B1 (en) | Content addressed storage device configured to maintain content address mapping | |
US9612919B2 (en) | Methods and apparatus for storing and transmitting historical configuration data associated with information technology assets | |
CN101416183B (en) | Method and system for maintaining current data for wireless devices | |
US20020133515A1 (en) | Method and apparatus for synchronizing multiple versions of digital data | |
KR101685215B1 (en) | Automatic discovery of alternate mailboxes | |
US20070244920A1 (en) | Hash-Based Access To Resources in a Data Processing Network | |
US9118696B2 (en) | Method, data transfer arrangement, server and terminal device for updating information in a terminal device | |
JP2001511611A (en) | System and method for synchronizing email across a network | |
JP2005521938A (en) | Full wireless synchronization system and method for data processing apparatus using data service | |
CA2537448A1 (en) | Mail server based application record synchronization | |
US20040193659A1 (en) | Method, apparatus, and program for archive management based on access log | |
US20070022166A1 (en) | System, computer program product and method of keeping track of a detached e-mail attachment | |
CN1250288A (en) | Processing method and device for e-mail data synchronization | |
US20090055499A1 (en) | Administration Of Time-Sensitive Email | |
CN1783117A (en) | Cooperative system and method | |
JP3296570B2 (en) | File transfer method | |
US7096236B2 (en) | Change sequence number generator | |
US20020120678A1 (en) | Locally distributed databases | |
JPH11184889A (en) | Image data management device | |
JPH11282818A (en) | Client configuration information management system | |
TW381225B (en) | Processing method and apparatus for synchronizing e-mail data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20030319 Termination date: 20101006 |