CN103607342B - A kind of loading method and device of Mail Contents - Google Patents
A kind of loading method and device of Mail Contents Download PDFInfo
- Publication number
- CN103607342B CN103607342B CN201310551823.9A CN201310551823A CN103607342B CN 103607342 B CN103607342 B CN 103607342B CN 201310551823 A CN201310551823 A CN 201310551823A CN 103607342 B CN103607342 B CN 103607342B
- Authority
- CN
- China
- Prior art keywords
- mailbox
- plug
- information
- browser
- 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.)
- Active
Links
- 238000011068 loading method Methods 0.000 title abstract description 17
- 238000000034 method Methods 0.000 abstract description 37
- 230000006870 function Effects 0.000 description 7
- 238000000605 extraction Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 235000014510 cooky Nutrition 0.000 description 2
- 230000001934 delay Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 238000013515 script Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种邮件内容的加载方法和装置,所述方法包括:插件服务器依据邮箱的用户名和密码向邮箱服务器侧发送登录请求,并获取所述邮箱服务器的登录标识;依据所述登录标识定时查询所述邮箱的状态信息;依据邮箱的状态信息从所述邮箱服务器中获取所述邮箱中邮件的网页格式数据;在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息;将所述消息内容发送至浏览器邮箱插件;所述消息内容为在所述浏览器邮箱插件的弹窗页面中与所述邮箱中邮件进行关联显示的信息。本发明可以同时对多个邮箱进行邮件内容的加载,避免了用户主动刷新多个邮箱页面,方便快捷,大大提高了邮箱的管理效率。
The invention discloses a method and device for loading mail content. The method includes: a plug-in server sends a login request to the mailbox server side according to the user name and password of the mailbox, and obtains a login identifier of the mailbox server; Regularly query the status information of the mailbox; obtain the webpage format data of the mail in the mailbox according to the status information of the mailbox; use the webpage format data to extract the mail in the webpage format data at the plug-in server side Content message; sending the message content to the browser mailbox plug-in; the message content is the information displayed in association with the mail in the mailbox in the pop-up window page of the browser mailbox plug-in. The present invention can simultaneously load the mail contents of multiple mailboxes, avoiding the user from actively refreshing the pages of multiple mailboxes, which is convenient and fast, and greatly improves the management efficiency of the mailboxes.
Description
技术领域technical field
本发明涉及通讯的技术领域,具体涉及一种邮件内容的加载方法,以及,一种邮件内容的加载装置。The present invention relates to the technical field of communications, in particular to a method for loading mail content and a device for loading mail content.
背景技术Background technique
随着互联网通讯技术的发展,电子邮箱作为目前互联网使用最为广泛的一种应用,已经广泛应用在学习、娱乐、工作等方面,在人们的日常生活中扮演着越来越重要的角色。With the development of Internet communication technology, e-mail, as the most widely used Internet application, has been widely used in learning, entertainment, work, etc., and plays an increasingly important role in people's daily life.
为了方便工作、学习、娱乐等,许多用户开通了多个电子邮箱,例如亲戚朋友之间联系会使用即时通讯软件捆绑的邮箱、工作时会使用企业邮箱、个人网店联系会使用电子商务邮箱、学习交流上会使用学校邮箱等等。在电子邮箱通讯的过程中,有很多信息、文件需要传递,而绝大部分都是使用网页版的电子邮件进行传递的。In order to facilitate work, study, entertainment, etc., many users have opened multiple email addresses. For example, relatives and friends will use emails bundled with instant messaging software; School mailboxes and so on will be used for learning and communication. In the process of e-mail communication, there are a lot of information and files that need to be transmitted, and most of them are transmitted by using the web version of e-mail.
但是,当电子邮件所在网页一关闭,用户就与电子邮箱彻底失去的联系,容易导致电子邮件查看不及时而延误重要的事件通知,甚至酿成大错,例如工作通知传达延误、个人网店发货不及时等等。However, when the webpage where the email is located is closed, the user will completely lose contact with the email, which will easily lead to delays in checking emails and delay important event notifications, and even lead to major mistakes, such as delays in the delivery of work notifications, personal online store emails, etc. The goods are not in time and so on.
虽然目前已有电子邮箱推出电子邮件提醒扩展功能,使用网页版邮箱的登录信息(cookie)模拟发送查询请求,根据邮箱服务器的返回信息判断是否有新的邮件。但其仅仅是针对推出该功能的电子邮箱的电子邮件进行轮询查看是否有新的邮件,如果有的话通过数字或者声音提示用户,并且,当网页的cookie失效后,提醒功能就不可用了,这远远不能满足大部分使用多邮箱的用户。Although there are currently e-mails that have launched an e-mail reminder extension function, the login information (cookie) of the web version of the e-mail is used to simulate sending a query request, and it is judged whether there is a new e-mail based on the return information of the e-mail server. But it only polls the e-mails of the e-mails that launched this function to check whether there are new e-mails, and if so, prompts the user with numbers or sounds, and when the cookie on the web page expires, the reminder function is unavailable , which is far from satisfying most users who use multiple mailboxes.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种邮件内容的加载方法和相应的一种邮件内容的加载装置。In view of the above problems, the present invention is proposed to provide a mail content loading method and a corresponding mail content loading device that overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种邮件内容的加载方法,包括:According to one aspect of the present invention, a method for loading email content is provided, including:
插件服务器依据邮箱的用户名和密码向邮箱服务器侧发送登录请求,并获取所述邮箱服务器的登录标识;The plug-in server sends a login request to the mailbox server side according to the user name and password of the mailbox, and obtains the login identifier of the mailbox server;
依据所述登录标识定时查询所述邮箱的状态信息;regularly query the status information of the mailbox according to the login identifier;
依据邮箱的状态信息从所述邮箱服务器中获取所述邮箱中邮件的网页格式数据;Obtaining the webpage format data of the mail in the mailbox from the mailbox server according to the state information of the mailbox;
在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息;Using the webpage format data on the plug-in server side to extract the email content message in the webpage format data;
将所述消息内容发送至浏览器邮箱插件;所述消息内容为在所述浏览器邮箱插件的弹窗页面中与所述邮箱中邮件进行关联显示的信息。The message content is sent to the browser mailbox plug-in; the message content is the information displayed in association with the mail in the mailbox on the pop-up window page of the browser mailbox plug-in.
可选地,所述邮箱的状态信息包括邮箱中接收到的邮件数量、未读邮件的信息、已读邮件的信息、文件夹信息和/或已发送邮件的信息。Optionally, the state information of the mailbox includes the number of mails received in the mailbox, information of unread mails, information of read mails, folder information and/or information of sent mails.
可选地,所述在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息的步骤包括:Optionally, the step of using the webpage format data on the plug-in server side to extract the email content message in the webpage format data includes:
采用所述网页格式数据遍历所述邮件对应的网页的DOM树节点;Using the webpage format data to traverse the DOM tree nodes of the webpage corresponding to the email;
当所述DOM树节点与预置的邮件关键字匹配成功时,提取所述DOM树节点对应的邮件内容。When the DOM tree node matches the preset email keyword successfully, the email content corresponding to the DOM tree node is extracted.
可选地,所述邮件关键字包括邮箱用户名、邮件地址、发件人、发件人用户名、邮件标题、邮件正文、附件和/或日期。Optionally, the email keywords include email username, email address, sender, sender username, email title, email body, attachment and/or date.
可选地,还包括:Optionally, also include:
将所述状态信息发送至浏览器邮箱插件;所述状态信息为在浏览器邮箱插件的弹窗页面中进行提示的信息。The state information is sent to the browser mailbox plug-in; the state information is the information prompted in the pop-up window page of the browser mailbox plug-in.
可选地,所述浏览器邮箱插件的弹窗页面为BACKGROUND页面,所述提示包括声音提示和/或文字提示。Optionally, the pop-up page of the browser mailbox plug-in is a Background page, and the prompt includes sound prompt and/or text prompt.
可选地,还包括:Optionally, also include:
当接收到浏览器邮箱插件针对所述邮件的操作指令时,执行所述操作指令指示的操作。When receiving an operation instruction from the browser mailbox plug-in for the email, perform the operation indicated by the operation instruction.
可选地,所述操作指令包括打开邮件的操作指令、删除邮件的操作指令和/或标记邮件的操作指令。Optionally, the operation instructions include an operation instruction for opening an email, an operation instruction for deleting an email, and/or an operation instruction for marking an email.
根据本发明的另一方面,提供了一种邮件内容的加载装置,包括:According to another aspect of the present invention, a device for loading mail content is provided, including:
登录请求方发送模块,适于插件服务器依据邮箱的用户名和密码向邮箱服务器侧发送登录请求;The login requester sending module is suitable for the plug-in server to send a login request to the mailbox server side according to the user name and password of the mailbox;
登录标识获取模块,适于获取所述邮箱服务器的登录标识;A login ID acquisition module, adapted to acquire the login ID of the mailbox server;
状态信息查询模块,适于依据所述登录标识定时查询所述邮箱的状态信息;A status information query module, adapted to periodically query the status information of the mailbox according to the login ID;
网页格式数据获取模块,适于依据邮箱的状态信息从所述邮箱服务器中获取所述邮箱中邮件的网页格式数据;The webpage format data acquisition module is adapted to acquire the webpage format data of the mail in the mailbox from the mailbox server according to the status information of the mailbox;
邮件内容消息提取模块,适于在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息;The email content message extraction module is adapted to extract the email content message in the webpage format data by using the webpage format data on the plug-in server side;
消息内容发送模块,适于将所述消息内容发送至浏览器邮箱插件;所述消息内容为在所述浏览器邮箱插件的弹窗页面中与所述邮箱中邮件进行关联显示的信息。The message content sending module is adapted to send the message content to the browser mailbox plug-in; the message content is information displayed in association with the mail in the mailbox on the pop-up window page of the browser mailbox plug-in.
可选地,所述邮箱的状态信息包括邮箱中接收到的邮件数量、未读邮件的信息、已读邮件的信息、文件夹信息和/或已发送邮件的信息。Optionally, the state information of the mailbox includes the number of mails received in the mailbox, information of unread mails, information of read mails, folder information and/or information of sent mails.
可选地,所述邮件内容消息提取模块还适于:Optionally, the mail content message extraction module is also suitable for:
采用所述网页格式数据遍历所述邮件对应的网页的DOM树节点;Using the webpage format data to traverse the DOM tree nodes of the webpage corresponding to the email;
当所述DOM树节点与预置的邮件关键字匹配成功时,提取所述DOM树节点对应的邮件内容。When the DOM tree node matches the preset email keyword successfully, the email content corresponding to the DOM tree node is extracted.
可选地,所述邮件关键字包括邮箱用户名、邮件地址、发件人、发件人用户名、邮件标题、邮件正文、附件和/或日期。Optionally, the email keywords include email username, email address, sender, sender username, email title, email body, attachment and/or date.
可选地,还包括:Optionally, also include:
状态消息发送模块,适于将所述状态信息发送至浏览器邮箱插件;所述状态信息为在浏览器邮箱插件的弹窗页面中进行提示的信息。The status message sending module is adapted to send the status information to the browser mailbox plug-in; the status information is the information prompted in the pop-up window page of the browser mailbox plug-in.
可选地,所述浏览器邮箱插件的弹窗页面为BACKGROUND页面,所述提示包括声音提示和/或文字提示。Optionally, the pop-up page of the browser mailbox plug-in is a Background page, and the prompt includes sound prompt and/or text prompt.
可选地,还包括:Optionally, also include:
操作执行模块,适于在接收到浏览器邮箱插件针对所述邮件的操作指令时,执行所述操作指令指示的操作。The operation execution module is adapted to execute the operation indicated by the operation instruction when receiving the operation instruction from the browser mailbox plug-in for the email.
可选地,所述操作指令包括打开邮件的操作指令、删除邮件的操作指令和/或标记邮件的操作指令。Optionally, the operation instructions include an operation instruction for opening an email, an operation instruction for deleting an email, and/or an operation instruction for marking an email.
本发明可以同时对多个邮箱进行邮件内容的加载,避免了用户主动刷新多个邮箱页面,方便快捷,大大提高了邮箱的管理效率。本发明可以采用登陆标识Token可以直接登录邮箱,查询邮箱的状态信息,可以免除了插件服务器再次发送模拟登录邮箱的请求包和邮箱服务器再次验证邮箱的用户名和密码,减少了插件服务器本地和邮箱服务器的系统资源占用,提高了登录邮箱的效率。此外,本发明可以将查询和提取邮件内容消息的操作在插件服务器中进行,可以大大减少浏览器的资源占用。本发明可以将邮件内容消息存储在浏览器侧本地,用户可以在离线情况也能对邮箱进行管理,灵活性高,实用性强。The present invention can simultaneously load the mail contents of multiple mailboxes, avoiding the user from actively refreshing the pages of multiple mailboxes, which is convenient and fast, and greatly improves the management efficiency of the mailboxes. The present invention can use the login identification Token to directly log in to the mailbox and query the status information of the mailbox, which can avoid the need for the plug-in server to send a request packet for simulating login to the mailbox and the mailbox server to verify the user name and password of the mailbox again, reducing the local plug-in server and the mailbox server Occupies less system resources and improves the efficiency of logging in to mailboxes. In addition, the present invention can perform the operation of querying and extracting mail content messages in the plug-in server, which can greatly reduce the resource occupation of the browser. The present invention can store mail content messages locally on the browser side, and users can also manage mailboxes offline, with high flexibility and strong practicability.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1示出了根据本发明一个实施例的一种邮件内容的加载方法实施例1的步骤流程图;FIG. 1 shows a flow chart of the steps of Embodiment 1 of a method for loading mail content according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的一种网页邮箱的系统结构图;Fig. 2 shows a system structure diagram of a web mailbox according to an embodiment of the present invention;
图3A-图3E示出了根据本发明一个实施例的一种邮件的示例图;FIG. 3A-FIG. 3E show an example diagram of a mail according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的一种邮件内容的加载方法实施例2的步骤流程图;以及FIG. 4 shows a flow chart of steps in Embodiment 2 of a method for loading email content according to an embodiment of the present invention; and
图5示出了根据本发明一个实施例的一种邮件内容的加载装置实施例的结构框图。Fig. 5 shows a structural block diagram of an embodiment of an apparatus for loading mail content according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
参照图1,示出了根据本发明一个实施例的一种邮件内容的加载方法实施例1的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of a method for loading mail content according to an embodiment of the present invention, which may specifically include the following steps:
步骤101,插件服务器依据邮箱的用户名和密码向邮箱服务器侧发送登录请求;Step 101, the plug-in server sends a login request to the mailbox server side according to the user name and password of the mailbox;
需要说明的是,插件(Plug-in,又称addin、add-in、addon或add-on,又译外挂)是一种遵循一定规范的应用程序接口编写出来的程序,可以通过和应用程序(例如浏览器,邮箱服务器)的互动,用来替应用程序增加一些所需要的特定的功能。It should be noted that a plug-in (Plug-in, also known as addin, add-in, addon or add-on, also translated as plug-in) is a program written according to a certain standard application program interface, which can be used with the application program ( Such as browser, email server) interaction, used to add some specific functions needed for the application.
电子邮箱(electronic mail、E-mail),又称电子函件、邮箱或电邮等,是指通过互联网进行书写、发送和接收信件,即电子邮件,这些电子邮件可以是文字、图像、声音等各种方式,目的是达成发信人和收信人之间的信息交互。Electronic mail (electronic mail, E-mail), also known as electronic mail, mailbox or e-mail, refers to writing, sending and receiving letters through the Internet, that is, e-mail. These e-mails can be text, images, sounds, etc. The purpose is to achieve information interaction between the sender and the recipient.
通常,电子邮箱地址的格式是:用户名@主机名。@是英文at的意思,即电子邮件地址可以是表示在某部主机上的一个用户帐号。Typically, email addresses are in the format: username@hostname. @ is the meaning of at in English, that is, the email address can be a user account on a certain host.
电子邮箱可以采用网页邮箱和独立的客户端进行管理。E-mail can be managed by web mail and independent client.
其中,网页邮箱(WebMail,一种基于万维网的电子邮件服务)是因特网上一种主要使用网页浏览器来阅读或发送电子邮件的服务。Wherein, WebMail (WebMail, an email service based on the World Wide Web) is a service on the Internet that mainly uses a web browser to read or send emails.
参照图2,示出了一种网页邮箱的系统结构图。如图2所示,网页邮箱可以是结合了E-mail系统和WWW(World Wide Web,环球信息网)系统特点的邮件系统,客户端通过浏览器来进行邮件的编写、阅读、接收和发送。通过邮件与网页的结合,使用户端大为简化。其中,MTA(Mail Transfer Agent)为一种用于收发邮件的程序;POP3(Post Office ProtocolVersion3)为一种能够让客户程序提取驻留于服务器的邮件的协议;MUA为电子邮件系统的构成之一,接受用户输入的各种指令,将用户的邮件发送至MTA或者通过POP3、IMAP(Internet Mail Access Protocol,交互式邮件存取协议)协议将邮件从MTA取到本机。Referring to FIG. 2 , it shows a system structure diagram of a web mailbox. As shown in Figure 2, the webmail can be a mail system that combines the characteristics of the E-mail system and the WWW (World Wide Web, Global Information Network) system. The client uses a browser to write, read, receive and send mail. Through the combination of mail and web pages, the user terminal is greatly simplified. Among them, MTA (Mail Transfer Agent) is a program for sending and receiving emails; POP3 (Post Office Protocol Version 3) is a protocol that allows client programs to extract emails residing on the server; MUA is one of the components of the email system , to accept various instructions entered by the user, send the user's mail to the MTA or retrieve the mail from the MTA to the machine through POP3, IMAP (Internet Mail Access Protocol, Interactive Mail Access Protocol) protocol.
用户可以通过浏览器来访问WWW服务器,而WWW服务器通过服务器的扩展(如ASP(Active Server Page,动态服务器页面)、PHP(Hypertext Preprocessor,超文本预处理语言)等)来完成MUA的功能,而MUA访问MTA来获取邮件,再通过WWW服务器以WWW方式返回客户端。Users can access the WWW server through a browser, and the WWW server completes the function of MUA through server extensions (such as ASP (Active Server Page, dynamic server page), PHP (Hypertext Preprocessor, hypertext preprocessing language), etc.), and The MUA accesses the MTA to get the mail, and returns the mail to the client through the WWW server in WWW mode.
WebMail与邮箱客户端相比,可以有如下优点:Compared with email clients, WebMail has the following advantages:
(1)只要能连上网络,便可随时随地转发邮件,方便快捷。(1) As long as you can connect to the Internet, you can forward emails anytime and anywhere, which is convenient and fast.
(2)在WebMail中可以修改密码,设置自动转发、自动回复等,功能多且操作方便。(2) In WebMail, you can change the password, set automatic forwarding, automatic reply, etc., with many functions and convenient operation.
(3)在WebMail中可以了解邮箱已使用容量,及时清理不需要的邮件,防止邮箱爆满,便于管理。(3) In WebMail, you can know the used capacity of the mailbox, clean up unnecessary emails in time, prevent the mailbox from being full, and facilitate management.
(4)邮件发送速度比通过邮箱客户端软件快捷。(4) The speed of sending emails is faster than that through email client software.
应用本发明实施例,可以在浏览器安装浏览器邮箱插件,其可以为基于浏览器的插件,可以与插件服务器进行数据交互。By applying the embodiment of the present invention, a browser mailbox plug-in can be installed in a browser, which can be a browser-based plug-in, and can perform data interaction with a plug-in server.
浏览器邮箱插件可以预先录入用户输入的邮箱的用户名和密码,可以是一个或多个。具体可以由所述浏览器邮箱插件通过NPAPI(Netscape Plugin ApplicationProgramming Interface,网景插件应用程序编程接口,是一种用于在浏览器中执行外部应用程序的通用接口)接口将所述邮箱的用户名和密码录入并存储在浏览器侧。然后可以将录入的邮箱的用户名和密码发送至插件服务器。The browser mailbox plug-in can pre-enter the user name and password of the mailbox input by the user, which can be one or more. Specifically, the browser mailbox plug-in can pass the user name and The password is entered and stored on the browser side. Then the user name and password of the entered mailbox can be sent to the plug-in server.
本发明可以同时对多个邮箱进行邮件内容的加载,避免了用户主动刷新多个邮箱页面,方便快捷,大大提高了邮箱的管理效率。The present invention can simultaneously load the mail contents of multiple mailboxes, avoiding the user from actively refreshing the pages of multiple mailboxes, which is convenient and fast, and greatly improves the management efficiency of the mailboxes.
在实际应用中,可以分别向不同用户名对应的邮箱服务器模拟(不是由用户触发,而是由插件服务器自动输入邮箱的用户名和密码,确认提交)发送http登录请求包,该请求包中可以包括邮箱的用户名和密码,可以用于登录当前邮箱,具体可以是同一个主机的邮箱,也可以是不同主机的邮箱,本发明实施例对此不加以限制。In practical applications, it is possible to send http login request packets to the mailbox servers corresponding to different usernames (not triggered by the user, but the plug-in server automatically enters the username and password of the mailbox and confirms the submission), which can include The user name and password of the mailbox can be used to log in to the current mailbox. Specifically, it can be a mailbox of the same host or a mailbox of a different host, which is not limited in the embodiment of the present invention.
步骤102,获取所述邮箱服务器的登录标识;Step 102, obtaining the login ID of the mailbox server;
当邮箱服务器对插件服务器发送的邮箱的用户名和密码验证成功后,可以生成一个登录标识Token,为登录对应邮箱的认证信息。After the mailbox server successfully verifies the username and password of the mailbox sent by the plug-in server, it can generate a login identification token, which is the authentication information for logging in to the corresponding mailbox.
步骤103,依据所述登录标识定时查询所述邮箱的状态信息;Step 103, regularly query the status information of the mailbox according to the login ID;
采用登陆标识Token可以直接登录邮箱,查询邮箱的状态信息,可以免除了插件服务器再次发送模拟登录邮箱的请求包和邮箱服务器再次验证邮箱的用户名和密码,减少了插件服务器本地和邮箱服务器的系统资源占用,提高了登录邮箱的效率。Using the login identification Token can directly log in to the mailbox and query the status information of the mailbox, which can save the plug-in server from sending a request packet for simulating login to the mailbox and the mailbox server to verify the user name and password of the mailbox again, reducing the system resources of the plug-in server and the mailbox server Occupy, improving the efficiency of logging in to the mailbox.
在实际应用中,可以定时轮询邮箱的状态信息,即向对应的服务器发送http请求包,该请求包中可以包括登陆标识Token,定时轮询的时间间隔可以是系统预设的,也可以是用户设置的,例如10分钟、15分钟、20分钟等等,本发明实施例对此不加以限制。In practical applications, you can regularly poll the status information of the mailbox, that is, send an http request packet to the corresponding server. The request packet can include the login identification Token. The time interval of the regular polling can be preset by the system, or it can be The values set by the user, such as 10 minutes, 15 minutes, 20 minutes, etc., are not limited in this embodiment of the present invention.
在本发明的一种优选实施例中,所述邮箱的状态信息可以包括邮箱中接收到的邮件数量、未读邮件的信息、已读邮件的信息、文件夹信息和/或已发送邮件的信息。In a preferred embodiment of the present invention, the status information of the mailbox may include the number of mails received in the mailbox, information of unread mails, information of read mails, folder information and/or information of sent mails .
其中,邮箱中接收到的邮件数量可以包括已读邮件的数量、未读邮件的数量、文件夹中的邮件数量、回收站的邮件数量和/或垃圾邮件的数量。Wherein, the number of emails received in the mailbox may include the number of read emails, the number of unread emails, the number of emails in folders, the number of emails in the recycle bin and/or the number of spam emails.
未读邮件的信息可以包括未读邮件的邮箱用户名、邮件地址、发件人、发件人用户名、邮件标题、邮件正文、附件和/或日期。The information of the unread email may include the mailbox username, email address, sender, sender username, email title, email body, attachment and/or date of the unread email.
已读邮件的信息可以包括未读邮件的邮箱用户名、邮件地址、发件人、发件人用户名、邮件标题、邮件正文、附件和/或日期。The information of the read emails may include the mailbox username, email address, sender, sender username, email title, email body, attachment and/or date of the unread email.
文件夹信息可以包括文件夹的标题、文件夹中的邮件信息(可以包括未读邮件的信息和/或已读邮件的信息)。The folder information may include folder title, mail information in the folder (may include information of unread mails and/or information of read mails).
已发送邮件的信息可以包括邮箱用户名、邮件地址、收件人、收件人用户名、邮件标题、邮件正文、附件和/或日期。Information about sent emails may include email username, email address, recipient, recipient username, email header, email body, attachments, and/or date.
当然,上述邮箱的状态信息只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他邮箱的状态信息,本发明实施例对此不加以限制。另外,除了上述操作指令外,本领域技术人员还可以实际需要采用其它邮箱的状态信息,本发明实施例对此也不加以限制。Certainly, the status information of the above-mentioned mailboxes is only an example, and the status information of other mailboxes may be set according to actual conditions when implementing the embodiment of the present invention, which is not limited in the embodiments of the present invention. In addition, in addition to the above operation instructions, those skilled in the art may actually need to use other mailbox status information, which is not limited in this embodiment of the present invention.
不同的邮箱的状态信息可以有不同的代码进行标识,只要识别出对应的代码,则可以识别出该邮箱的状态信息。The status information of different mailboxes may be identified by different codes, and as long as the corresponding codes are identified, the status information of the mailbox can be identified.
步骤104,依据邮箱的状态信息从所述邮箱服务器中获取所述邮箱中邮件的网页格式数据;Step 104, according to the status information of the mailbox, obtain the web page format data of the mail in the mailbox from the mailbox server;
需要说明的是,邮件的网页数据格式为邮件的HTML(HyperText MarkupLanguage,超文本标记语言)文本,可以包括邮件的所有内容(文字、图片、链接,甚至音乐、程序等非文字元素)。超文本标记语言的结构包括头部分(Head)、和主体部分(Body),其中头部(Head)提供关于网页邮件的信息,主体(Body)部分提供网页邮件的具体内容。It should be noted that the web page data format of the email is the HTML (HyperText Markup Language) text of the email, which can include all the content of the email (text, pictures, links, and even non-text elements such as music and programs). The structure of the hypertext markup language includes a head part (Head) and a body part (Body), wherein the head part (Head) provides information about the web mail, and the body part (Body) provides specific content of the web mail.
如图3A所示,该邮件的网页格式可以为:As shown in Figure 3A, the web page format of the email may be:
<html class><html class>
<head>_</head><head>_</head>
<body class=”ua-notie ua-chrome ua-noYaHei skin_163blue”>_</body><body class="ua-notie ua-chrome ua-noYaHei skin_163blue">_</body>
</html></html>
当点击“head”或者“body”前的三角符号时,其包括的内容(代码)则可进行显示。When the triangle symbol in front of "head" or "body" is clicked, the included content (code) can be displayed.
在具体实现中,邮箱中接收到的邮件数量、未读邮件的信息、已读邮件的信息、文件夹信息和/或已发送邮件的信息都可以获取对应的网页数据格式。In a specific implementation, the number of emails received in the mailbox, information of unread emails, information of read emails, folder information and/or information of sent emails can all be obtained in a corresponding web page data format.
以未读邮件的信息为例,如图3B所示,在“收件箱”栏(图3B中上黑栏所示的位置)对下的第二行中,可以获知“收件箱”中有21封未读邮件,在“订阅邮件”(图3B中下黑栏所示的位置)对下的第二行中,可以获知“订阅邮件”中5封未读邮件。Taking the information of unread emails as an example, as shown in Figure 3B, in the second line below the "Inbox" column (the position shown in the upper black column in Figure 3B), you can know the "Inbox" There are 21 unread emails, and in the second line under the pair of "Subscribe Emails" (the position shown in the lower black column in Figure 3B), you can get 5 unread emails in "Subscribe Emails".
步骤105,在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息;Step 105, using the webpage format data on the plug-in server side to extract the email content message in the webpage format data;
针对邮箱中接收到的邮件数量、未读邮件的信息、已读邮件的信息、文件夹信息和/或已发送邮件的信息对应的网页数据格式,可以对应获取邮件内容消息。其中,邮件内容消息可以为邮件的具体内容。For the web page data format corresponding to the number of emails received in the mailbox, information of unread emails, information of read emails, folder information and/or information of sent emails, email content messages can be acquired correspondingly. Wherein, the email content message may be specific content of the email.
在本发明的一种优选实施例中,所述步骤105具体可以包括如下子步骤:In a preferred embodiment of the present invention, the step 105 may specifically include the following sub-steps:
子步骤S11,采用所述网页格式数据遍历所述邮件对应的网页的DOM树节点;Sub-step S11, using the webpage format data to traverse the DOM tree nodes of the webpage corresponding to the email;
子步骤S12,当所述DOM树节点与预置的邮件关键字匹配成功时,提取所述DOM树节点对应的邮件内容。Sub-step S12, when the DOM tree node matches the preset email keyword successfully, extract the email content corresponding to the DOM tree node.
DOM(文件对象模型,Document Object Model)是处理可扩展置标语言的标准编程接口。DOM可以以一种独立于平台和语言的方式访问和修改一个文档的内容和结构,是表示和处理一个HTML或XML文档的常用方法。DOM (Document Object Model, Document Object Model) is a standard programming interface for dealing with Extensible Markup Language. DOM can access and modify the content and structure of a document in a platform- and language-independent manner, and is a common method for representing and processing an HTML or XML document.
DOM实际上是以面向对象方式描述的文档模型。DOM定义了表示和修改文档所需的对象、这些对象的行为和属性以及这些对象之间的关系。可以把DOM认为是页面上数据和结构的一个树形表示,不过页面当然可能并不是以这种树的方式具体实现。DOM is actually a document model described in an object-oriented manner. DOM defines the objects required to represent and modify a document, the behavior and properties of these objects, and the relationships between these objects. The DOM can be thought of as a tree representation of the data and structure on the page, but of course the page may not be implemented in this tree.
通过JavaScript可以重构整个HTML文档,可以添加、移除、改变或重排页面上的项目。The entire HTML document can be restructured through JavaScript, and items on the page can be added, removed, changed, or rearranged.
要改变页面的某个东西,JavaScript就需要获得对HTML文档中所有元素进行访问的入口。这个入口,连同对HTML元素进行添加、移动、改变或移除的方法和属性,都是通过文档对象模型来获得的(DOM)。To change something on the page, JavaScript needs access to all the elements in the HTML document. This entry, along with methods and properties for adding, moving, changing, or removing HTML elements, is available through the Document Object Model (DOM).
可以将HTML文档视作树结构,而这种结构被称为节点树(THML DOM)。通过HTMLDOM,树中的所有节点均可通过JavaScript进行访问。所有HTML元素(节点)均可被修改,也可以创建或删除节点。An HTML document can be viewed as a tree structure, and this structure is called a node tree (THML DOM). With HTMLDOM, all nodes in the tree are accessible via JavaScript. All HTML elements (nodes) can be modified, and nodes can be created or deleted.
节点树中的节点彼此拥有层级关系。可以采用父(parent)、子(child)和同胞(sibling)等术语用于描述这些关系。其中,父节点拥有子节点。同级的子节点被称为同胞(兄弟或姐妹)。在节点树中,顶端节点被称为根(root)。每个节点都有父节点、除了根(它没有父节点)。一个节点可拥有任意数量的子,同胞是拥有相同父节点的节点。Nodes in a node tree have hierarchical relationships with each other. Terms such as parent, child, and sibling can be used to describe these relationships. Among them, the parent node has child nodes. Child nodes at the same level are called siblings (brothers or sisters). In a node tree, the top node is called the root. Every node has a parent, except the root (which has no parent). A node can have any number of children, and siblings are nodes that share the same parent.
具体可以通过若干种方法在节点树来查找希望操作的网页元素:Specifically, there are several ways to find the desired web page element in the node tree:
例如,可以通过使用getElementById()和getElementsByTagName()方法进行查找。For example, lookups can be done using the getElementById() and getElementsByTagName() methods.
又例如,可以通过使用一个元素节点的parentNode、firstChild以及lastChild属性。For another example, you can use the parentNode, firstChild, and lastChild properties of an element node.
其中,getElementById()和getElementsByTagName()这两种方法,可查找整个HTML文档中的任何HTML元素。而这两种方法会忽略文档的结构。假如查找文档中所有的<p>元素,getElementsByTagName()会把它们全部找到,不管<p>元素处于文档中的哪个层次。同时,getElementById()方法也会返回正确的元素,不论它被隐藏在文档结构中的什么位置。这两种方法会提供任何所需要的HTML元素,不论它们在文档中所处的位置。Among them, the two methods getElementById() and getElementsByTagName() can search for any HTML element in the entire HTML document. These two methods ignore the structure of the document. If you search for all <p> elements in the document, getElementsByTagName() will find them all, no matter what level the <p> elements are in the document. Also, the getElementById() method will return the correct element no matter where it is hidden in the document structure. These two methods will provide any desired HTML elements, regardless of their position in the document.
此外,getElementById()可通过指定的ID来返回网页元素。In addition, getElementById() can return the webpage element by the specified ID.
在具体实现中,所述邮件关键字包括邮箱用户名、邮件地址、发件人、发件人用户名、邮件标题、邮件正文、附件和/或日期。In a specific implementation, the email keyword includes email username, email address, sender, sender username, email title, email body, attachment and/or date.
例如,采用标题(title)作为关键字进行DOM树节点的匹配,可以如图3C所示,在图3C所示的网页格式数据中黑栏部分,读取到当前邮件的标题,具体为“专利审查指南修改”。For example, using the title (title) as a keyword to match DOM tree nodes, as shown in Figure 3C, the title of the current email can be read in the black column part of the webpage format data shown in Figure 3C, specifically "patent Review Guidelines Revised".
采用正文(content)作为关键字进行DOM树节点的匹配,可以如图3D所示,在图3C所示的网页格式数据中黑栏部分,读取到当前邮件的正文。Using the text (content) as the keyword to match the DOM tree nodes, as shown in FIG. 3D , the text of the current email can be read in the black column part of the webpage format data shown in FIG. 3C .
采用附件(affix)作为关键字进行DOM树节点的匹配,可以如图3E所示,在图3E所示的网页格式数据中分别读取到当前邮件的附件的标题“《专利审查指南修改草案(征求意见稿)》对照页”、附件的URL(UniformResourceLocator,统一资源定位符)地址。Use the attachment (affix) as the keyword to match the DOM tree nodes. As shown in Figure 3E, the title of the attachment of the current email "Revised Draft of Patent Examination Guidelines ( Draft for comments) "Contrast Page", the URL (UniformResourceLocator, Uniform Resource Locator) address of the attachment.
在提取邮件内容消息之后,可以将其转换为预设的文档格式,例如PDF、TXT、Word等等,然后存储在浏览器本地。After the email content message is extracted, it can be converted into a preset document format, such as PDF, TXT, Word, etc., and then stored locally in the browser.
特别地,若邮件中包括有附件,则可以在用户进行指示后再从附件的URL地址进行下载,或者,可以直接从附件的URL地址直接进行下载,本发明实施例对此不加以限制。In particular, if the email includes an attachment, it can be downloaded from the URL address of the attachment after the user gives an instruction, or it can be downloaded directly from the URL address of the attachment, which is not limited in the embodiment of the present invention.
本发明可以将查询和提取邮件内容消息的操作在插件服务器中进行,可以大大减少浏览器的资源占用。The invention can perform the operation of querying and extracting mail content messages in the plug-in server, and can greatly reduce the resource occupation of the browser.
本发明将邮件内容消息存储在浏览器侧本地,用户可以在离线情况也能对邮箱进行管理,灵活性高,实用性强。The invention stores the mail content message locally on the browser side, and the user can manage the mailbox even in an offline state, and has high flexibility and strong practicability.
步骤106,将所述消息内容发送至浏览器邮箱插件;所述消息内容为在所述浏览器邮箱插件的弹窗页面中与所述邮箱中邮件进行关联显示的信息。Step 106, sending the message content to the browser mailbox plug-in; the message content is information displayed in association with the mail in the mailbox on the pop-up window page of the browser mailbox plug-in.
当浏览器邮箱插件接收到消息内容后,可以在浏览器邮箱插件的弹窗页面中与邮箱中邮件进行关联显示。After the browser mailbox plug-in receives the message content, it can be displayed in association with the mail in the mailbox on the pop-up window page of the browser mailbox plug-in.
在具体实现中,该弹窗页面可以为POPUP页面(HTML页面)中进行邮件内容消息的显示。则可以显示邮箱中接收到的邮件数量、未读邮件的信息、已读邮件的信息、文件夹信息和/或已发送邮件的信息中的内容消息(包括邮箱用户名、邮件地址、发件人、发件人用户名、邮件标题、邮件正文、附件和/或日期)。In a specific implementation, the popup page may be a POPUP page (HTML page) for displaying email content messages. Then you can display the number of emails received in the mailbox, the information of unread emails, the information of read emails, the folder information and/or the content messages in the information of sent emails (including mailbox user name, email address, sender , sender username, message subject, message body, attachments, and/or date).
参照图4,示出了根据本发明一个实施例的一种邮件内容的加载方法实施例2的步骤流程图,具体可以包括如下步骤:Referring to FIG. 4 , it shows a flow chart of steps in Embodiment 2 of a method for loading mail content according to an embodiment of the present invention, which may specifically include the following steps:
步骤401,插件服务器依据邮箱的用户名和密码向邮箱服务器侧发送登录请求;Step 401, the plug-in server sends a login request to the mailbox server side according to the user name and password of the mailbox;
步骤402,获取所述邮箱服务器的登录标识;Step 402, obtaining the login ID of the mailbox server;
步骤403,依据所述登录标识定时查询所述邮箱的状态信息;Step 403, regularly query the status information of the mailbox according to the login ID;
步骤404,将所述状态信息发送至浏览器邮箱插件;所述状态信息为在浏览器邮箱插件的弹窗页面中进行提示的信息;Step 404, sending the state information to the browser mailbox plug-in; the state information is the information prompted in the pop-up window page of the browser mailbox plug-in;
当浏览器邮箱插件接收到状态消息后,可以在浏览器邮箱插件的弹窗页面中进行提示。When the browser mailbox plug-in receives the status message, it can prompt in the pop-up window page of the browser mailbox plug-in.
在具体实现中,每一种邮箱的状态信息可以有对应的提示方式。In a specific implementation, each type of mailbox status information may have a corresponding prompting method.
所述浏览器邮箱插件的弹窗页面可以为BACKGROUND(后台页面,可以用于执行各种脚本)页面,所述提示可以包括声音提示和/或文字提示。The pop-up window page of the browser mailbox plug-in can be a Background (background page, which can be used to execute various scripts) page, and the prompt can include sound prompt and/or text prompt.
以未读邮件的信息为例,声音提示可以为播放“您有一封新邮件”,文字提示可以为当前网页的右下角生成弹窗页面,上面有文字“您有一封新邮件”。Taking the information of unread emails as an example, the sound prompt can be playing "You have a new email", and the text prompt can generate a pop-up window page with the text "You have a new email" in the lower right corner of the current web page.
步骤405,依据邮箱的状态信息从所述邮箱服务器中获取所述邮箱中邮件的网页格式数据;Step 405, according to the state information of the mailbox, obtain the web page format data of the mail in the mailbox from the mailbox server;
步骤406,在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息;Step 406, using the webpage format data to extract the email content message in the webpage format data at the plug-in server side;
步骤407,将所述消息内容发送至浏览器邮箱插件;所述消息内容为在所述浏览器邮箱插件的弹窗页面中与所述邮箱中邮件进行关联显示的信息;Step 407, sending the message content to the browser mailbox plug-in; the message content is information displayed in association with the mail in the mailbox in the pop-up window page of the browser mailbox plug-in;
步骤408,当接收到浏览器邮箱插件针对所述邮件的操作指令时,执行所述操作指令指示的操作。Step 408, when receiving an operation instruction from the browser mailbox plug-in for the email, perform the operation indicated by the operation instruction.
当用户对在浏览器邮箱插件的弹窗页面中的邮件的消息内容进行管理,通过浏览器邮箱插件可以将用户的操作指令发送到插件服务器,插件服务器则执行该操作指令指示的操作。When the user manages the message content of the email in the pop-up window page of the browser mailbox plug-in, the user's operation instruction can be sent to the plug-in server through the browser mailbox plug-in, and the plug-in server executes the operation indicated by the operation instruction.
在具体实现中,所述操作指令可以包括打开邮件的操作指令、删除邮件的操作指令和/或标记邮件的操作指令。In a specific implementation, the operation instruction may include an operation instruction for opening an email, an operation instruction for deleting an email, and/or an operation instruction for marking an email.
其中,打开邮件的操作指令指示的操作为打开邮件。特别地,当该邮件为未读邮件时,则在打开后,可以在网页邮箱将其标记为已读。Wherein, the operation indicated by the operation instruction of opening the mail is to open the mail. In particular, when the email is an unread email, it can be marked as read in the web mailbox after opening.
删除邮件的操作指令指示的操作为删除邮件,可以在网页邮箱将该邮件删除。The operation indicated by the operation instruction of deleting an email is to delete an email, and the email can be deleted in the web mailbox.
标记邮件的操作指令指示的操作为标记邮件,可以在网页邮箱将该邮件进行标记,以实现重要邮件、特定邮件等的标识操作。The operation indicated by the operation instruction of marking mail is marking mail, and the mail can be marked in the web mailbox, so as to realize the operation of identifying important mails, specific mails, and the like.
当然,上述操作指令只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他操作指令,例如新建文件的操作指令、移动邮件的操作指令、清空回收箱的操作指令等等,本发明实施例对此不加以限制。另外,除了上述操作指令外,本领域技术人员还可以实际需要采用其它操作指令,本发明实施例对此也不加以限制。Of course, the above operation instructions are only examples. When implementing the embodiment of the present invention, other operation instructions can be set according to the actual situation, such as operation instructions for creating a new file, operation instructions for moving mail, operation instructions for emptying the recycle bin, etc., the present invention The embodiments do not limit this. In addition, in addition to the above operation instructions, those skilled in the art may also use other operation instructions according to actual needs, which is not limited in this embodiment of the present invention.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action order, because according to the embodiment of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图5,示出了根据本发明一个实施例的一种邮件内容的加载装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 5 , it shows a structural block diagram of an embodiment of an apparatus for loading mail content according to an embodiment of the present invention, which may specifically include the following modules:
登录请求方发送模块501,适于插件服务器依据邮箱的用户名和密码向邮箱服务器侧发送登录请求;The login requester sending module 501 is suitable for the plug-in server to send a login request to the mailbox server side according to the user name and password of the mailbox;
登录标识获取模块502,适于获取所述邮箱服务器的登录标识;The login identification obtaining module 502 is adapted to obtain the login identification of the mailbox server;
状态信息查询模块503,适于依据所述登录标识定时查询所述邮箱的状态信息;The status information query module 503 is adapted to periodically query the status information of the mailbox according to the login ID;
网页格式数据获取模块504,适于依据邮箱的状态信息从所述邮箱服务器中获取所述邮箱中邮件的网页格式数据;The webpage format data obtaining module 504 is adapted to obtain the webpage format data of the mail in the mailbox from the mailbox server according to the state information of the mailbox;
邮件内容消息提取模块505,适于在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息;The email content message extraction module 505 is adapted to extract the email content message in the webpage format data by using the webpage format data on the plug-in server side;
消息内容发送模块506,适于将所述消息内容发送至浏览器邮箱插件;所述消息内容为在所述浏览器邮箱插件的弹窗页面中与所述邮箱中邮件进行关联显示的信息。The message content sending module 506 is adapted to send the message content to the browser mailbox plug-in; the message content is information displayed in association with the mail in the mailbox on the pop-up window page of the browser mailbox plug-in.
在本发明的一种优选实施例中,所述邮箱的状态信息可以包括邮箱中接收到的邮件数量、未读邮件的信息、已读邮件的信息、文件夹信息和/或已发送邮件的信息。In a preferred embodiment of the present invention, the status information of the mailbox may include the number of mails received in the mailbox, information of unread mails, information of read mails, folder information and/or information of sent mails .
在本发明的一种优选实施例中,所述邮件内容消息提取模块还可以适于:In a preferred embodiment of the present invention, the mail content message extraction module can also be adapted to:
采用所述网页格式数据遍历所述邮件对应的网页的DOM树节点;Using the webpage format data to traverse the DOM tree nodes of the webpage corresponding to the email;
当所述DOM树节点与预置的邮件关键字匹配成功时,提取所述DOM树节点对应的邮件内容。When the DOM tree node matches the preset email keyword successfully, the email content corresponding to the DOM tree node is extracted.
在本发明的一种优选实施例中,所述邮件关键字可以包括邮箱用户名、邮件地址、发件人、发件人用户名、邮件标题、邮件正文、附件和/或日期。In a preferred embodiment of the present invention, the email keywords may include email username, email address, sender, sender username, email title, email body, attachment and/or date.
在本发明的一种优选实施例中,所述装置还可以包括如下模块:In a preferred embodiment of the present invention, the device may also include the following modules:
状态消息发送模块,适于将所述状态信息发送至浏览器邮箱插件;所述状态信息为在浏览器邮箱插件的弹窗页面中进行提示的信息。The status message sending module is adapted to send the status information to the browser mailbox plug-in; the status information is the information prompted in the pop-up window page of the browser mailbox plug-in.
在本发明的一种优选实施例中,所述浏览器邮箱插件的弹窗页面可以为BACKGROUND页面,所述提示可以包括声音提示和/或文字提示。In a preferred embodiment of the present invention, the pop-up window page of the browser mailbox plug-in may be a Background page, and the prompt may include sound prompt and/or text prompt.
在本发明的一种优选实施例中,所述装置还可以包括如下模块:In a preferred embodiment of the present invention, the device may also include the following modules:
操作执行模块,适于在接收到浏览器邮箱插件针对所述邮件的操作指令时,执行所述操作指令指示的操作。The operation execution module is adapted to execute the operation indicated by the operation instruction when receiving the operation instruction from the browser mailbox plug-in for the email.
在本发明的一种优选实施例中,所述操作指令可以包括打开邮件的操作指令、删除邮件的操作指令和/或标记邮件的操作指令。In a preferred embodiment of the present invention, the operation instructions may include an operation instruction for opening an email, an operation instruction for deleting an email, and/or an operation instruction for marking an email.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings), as well as any method or method so disclosed, may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的邮件内容的加载设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the mail content loading device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明公开了A1、一种邮件内容的加载方法,包括:The invention discloses A1. A method for loading mail content, comprising:
插件服务器依据邮箱的用户名和密码向邮箱服务器侧发送登录请求,并获取所述邮箱服务器的登录标识;The plug-in server sends a login request to the mailbox server side according to the user name and password of the mailbox, and obtains the login identifier of the mailbox server;
依据所述登录标识定时查询所述邮箱的状态信息;regularly query the status information of the mailbox according to the login identifier;
依据邮箱的状态信息从所述邮箱服务器中获取所述邮箱中邮件的网页格式数据;Obtaining the webpage format data of the mail in the mailbox from the mailbox server according to the state information of the mailbox;
在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息;Using the webpage format data on the plug-in server side to extract the email content message in the webpage format data;
将所述消息内容发送至浏览器邮箱插件;所述消息内容为在所述浏览器邮箱插件的弹窗页面中与所述邮箱中邮件进行关联显示的信息。The message content is sent to the browser mailbox plug-in; the message content is the information displayed in association with the mail in the mailbox on the pop-up window page of the browser mailbox plug-in.
A2、如A1所述的方法,所述邮箱的状态信息包括邮箱中接收到的邮件数量、未读邮件的信息、已读邮件的信息、文件夹信息和/或已发送邮件的信息。A2. The method described in A1, wherein the status information of the mailbox includes the number of mails received in the mailbox, information of unread mails, information of read mails, folder information and/or information of sent mails.
A3、如A1所述的方法,所述在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息的步骤包括:A3. The method as described in A1, the step of extracting the email content message in the webpage format data using the webpage format data at the plug-in server side includes:
采用所述网页格式数据遍历所述邮件对应的网页的DOM树节点;Using the webpage format data to traverse the DOM tree nodes of the webpage corresponding to the email;
当所述DOM树节点与预置的邮件关键字匹配成功时,提取所述DOM树节点对应的邮件内容。When the DOM tree node matches the preset email keyword successfully, the email content corresponding to the DOM tree node is extracted.
A4、如A3所述的方法,所述邮件关键字包括邮箱用户名、邮件地址、发件人、发件人用户名、邮件标题、邮件正文、附件和/或日期。A4. The method as described in A3, wherein the email keywords include mailbox username, email address, sender, sender username, email title, email body, attachment and/or date.
A5、如A1所述的方法,还包括:A5. The method as described in A1, further comprising:
将所述状态信息发送至浏览器邮箱插件;所述状态信息为在浏览器邮箱插件的弹窗页面中进行提示的信息。The state information is sent to the browser mailbox plug-in; the state information is the information prompted in the pop-up window page of the browser mailbox plug-in.
A6、如A5所述的方法,所述浏览器邮箱插件的弹窗页面为BACKGROUND页面,所述提示包括声音提示和/或文字提示。A6. The method described in A5, wherein the pop-up page of the browser mailbox plug-in is a Background page, and the prompt includes sound prompt and/or text prompt.
A7、如A1所述的方法,还包括:A7. The method as described in A1, further comprising:
当接收到浏览器邮箱插件针对所述邮件的操作指令时,执行所述操作指令指示的操作。When receiving an operation instruction from the browser mailbox plug-in for the email, perform the operation indicated by the operation instruction.
A8、如A7所述的方法,所述操作指令包括打开邮件的操作指令、删除邮件的操作指令和/或标记邮件的操作指令。A8. The method according to A7, wherein the operation instructions include an operation instruction for opening an email, an operation instruction for deleting an email, and/or an operation instruction for marking an email.
本发明还公开了B9、一种邮件内容的加载装置,包括:The present invention also discloses B9, a mail content loading device, comprising:
登录请求方发送模块,适于插件服务器依据邮箱的用户名和密码向邮箱服务器侧发送登录请求;The login requester sending module is suitable for the plug-in server to send a login request to the mailbox server side according to the user name and password of the mailbox;
登录标识获取模块,适于获取所述邮箱服务器的登录标识;A login ID acquisition module, adapted to acquire the login ID of the mailbox server;
状态信息查询模块,适于依据所述登录标识定时查询所述邮箱的状态信息;A status information query module, adapted to periodically query the status information of the mailbox according to the login ID;
网页格式数据获取模块,适于依据邮箱的状态信息从所述邮箱服务器中获取所述邮箱中邮件的网页格式数据;The webpage format data acquisition module is adapted to acquire the webpage format data of the mail in the mailbox from the mailbox server according to the status information of the mailbox;
邮件内容消息提取模块,适于在插件服务器侧采用所述网页格式数据提取所述网页格式数据中的邮件内容消息;The email content message extraction module is adapted to extract the email content message in the webpage format data by using the webpage format data on the plug-in server side;
消息内容发送模块,适于将所述消息内容发送至浏览器邮箱插件;所述消息内容为在所述浏览器邮箱插件的弹窗页面中与所述邮箱中邮件进行关联显示的信息。The message content sending module is adapted to send the message content to the browser mailbox plug-in; the message content is information displayed in association with the mail in the mailbox on the pop-up window page of the browser mailbox plug-in.
B10、如B9所述的装置,所述邮箱的状态信息包括邮箱中接收到的邮件数量、未读邮件的信息、已读邮件的信息、文件夹信息和/或已发送邮件的信息。B10. The device according to B9, wherein the state information of the mailbox includes the number of mails received in the mailbox, information of unread mails, information of read mails, folder information and/or information of sent mails.
B11、如B9所述的装置,所述邮件内容消息提取模块还适于:B11, the device as described in B9, the mail content message extraction module is also suitable for:
采用所述网页格式数据遍历所述邮件对应的网页的DOM树节点;Using the webpage format data to traverse the DOM tree nodes of the webpage corresponding to the email;
当所述DOM树节点与预置的邮件关键字匹配成功时,提取所述DOM树节点对应的邮件内容。When the DOM tree node matches the preset email keyword successfully, the email content corresponding to the DOM tree node is extracted.
B12、如B11所述的装置,所述邮件关键字包括邮箱用户名、邮件地址、发件人、发件人用户名、邮件标题、邮件正文、附件和/或日期。B12. The device as described in B11, wherein the email keywords include mailbox username, email address, sender, sender username, email title, email text, attachment and/or date.
B13、如B9所述的装置,还包括:B13. The device as described in B9, further comprising:
状态消息发送模块,适于将所述状态信息发送至浏览器邮箱插件;所述状态信息为在浏览器邮箱插件的弹窗页面中进行提示的信息。The status message sending module is adapted to send the status information to the browser mailbox plug-in; the status information is the information prompted in the pop-up window page of the browser mailbox plug-in.
B14、如B13所述的装置,所述浏览器邮箱插件的弹窗页面为BACKGROUND页面,所述提示包括声音提示和/或文字提示。B14. The device as described in B13, the pop-up window page of the browser mailbox plug-in is a Background page, and the prompt includes sound prompt and/or text prompt.
B15、如B9所述的装置,还包括:B15. The device as described in B9, further comprising:
操作执行模块,适于在接收到浏览器邮箱插件针对所述邮件的操作指令时,执行所述操作指令指示的操作。The operation execution module is adapted to execute the operation indicated by the operation instruction when receiving the operation instruction from the browser mailbox plug-in for the email.
B16、如B15所述的装置,所述操作指令包括打开邮件的操作指令、删除邮件的操作指令和/或标记邮件的操作指令。B16. The device according to B15, wherein the operation instruction includes an operation instruction for opening an email, an operation instruction for deleting an email, and/or an operation instruction for marking an email.
Claims (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310551823.9A CN103607342B (en) | 2013-11-07 | 2013-11-07 | A kind of loading method and device of Mail Contents |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310551823.9A CN103607342B (en) | 2013-11-07 | 2013-11-07 | A kind of loading method and device of Mail Contents |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103607342A CN103607342A (en) | 2014-02-26 |
CN103607342B true CN103607342B (en) | 2018-10-09 |
Family
ID=50125542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310551823.9A Active CN103607342B (en) | 2013-11-07 | 2013-11-07 | A kind of loading method and device of Mail Contents |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103607342B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980469A (en) * | 2014-04-10 | 2015-10-14 | 阿里巴巴集团控股有限公司 | E-mail extraction method and system |
CN109376998B (en) * | 2018-09-20 | 2024-02-06 | 平安科技(深圳)有限公司 | Performance data management method, device, computer equipment and storage medium |
CN111091339A (en) * | 2018-10-24 | 2020-05-01 | 北京数聚鑫云信息技术有限公司 | Device and method for automatically analyzing information in e-mail |
CN109447472B (en) * | 2018-10-30 | 2023-11-28 | 平安科技(深圳)有限公司 | Performance task data processing method and device, computer equipment and storage medium |
CN111079043B (en) * | 2019-12-05 | 2023-05-12 | 北京数立得科技有限公司 | Key content positioning method |
CN117411847B (en) * | 2023-12-14 | 2024-03-08 | 彩讯科技股份有限公司 | Mail out-link picture transfer method, system and medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710893A (en) * | 2005-07-27 | 2005-12-21 | 北京立通无限科技有限公司 | Mail transfering system and method based on WAP protocol |
CN101202737B (en) * | 2006-12-11 | 2012-02-15 | 腾讯科技(深圳)有限公司 | Method and system for managing third party mail account |
CN101325561B (en) * | 2007-06-12 | 2012-01-04 | 阿里巴巴集团控股有限公司 | Method, apparatus and system for processing electronic mail |
CN101247563A (en) * | 2008-03-20 | 2008-08-20 | 宇龙计算机通信科技(深圳)有限公司 | Mail pushing system and mail receiving and dispatching method |
CN103136273A (en) * | 2011-12-02 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and device for displaying user information in webpage |
CN102663291B (en) * | 2012-03-23 | 2015-02-25 | 北京奇虎科技有限公司 | Information prompting method and information prompting device for e-mails |
-
2013
- 2013-11-07 CN CN201310551823.9A patent/CN103607342B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103607342A (en) | 2014-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102663291B (en) | Information prompting method and information prompting device for e-mails | |
CN103607342B (en) | A kind of loading method and device of Mail Contents | |
US8577888B2 (en) | Tagging email and providing tag clouds field of the invention | |
US7509382B1 (en) | System and method to deflect email threads to a blogging system | |
US9521101B2 (en) | Method of and system for reformatting an e-mail message based on a categorization thereof | |
JP5129567B2 (en) | Messaging protocol for processing messages with attachments | |
CN103606074A (en) | Mail content loading method and apparatus, and browser | |
US8346878B2 (en) | Flagging resource pointers depending on user environment | |
US20170193083A1 (en) | Identifying message content related to an event utilizing natural language processing and performing an action pertaining to the event | |
US20090300127A1 (en) | E-mail forwarding method and system | |
JP2009505286A (en) | Annotating public acquaintances with public descriptors | |
US20150358258A1 (en) | Systems and methods for message personalization | |
TWI587660B (en) | Methods, devices and systems for publishing information to websites | |
US8572192B2 (en) | Private messaging a second recipient of an electronic communication | |
JP4500285B2 (en) | Spam removal method | |
US10404634B2 (en) | Method for publishing and sharing content on the internet | |
US20140278624A1 (en) | System and Method For Automatically Disseminating Information And Queries Concerning External Organizations To Relevant Employees | |
US10389668B2 (en) | Safe unsubscribe | |
KR20140107625A (en) | Method and system for replying to website update event | |
CN104506426A (en) | Information prompting method and device for E-mails | |
US20160323227A1 (en) | Method and system for providing a user with an indication of an unread e-mail count on a client device | |
TWI287720B (en) | Junk mail filtering systems and methods based on abnormal features in e-mails | |
Wright | Browsing Blogs | |
TW201203951A (en) | Electronic mail sending system and method thereof | |
TW201319831A (en) | Recognition system and method for spam |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee after: Beijing Qizhi Business Consulting Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240116 Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Beijing Qizhi Business Consulting Co.,Ltd. |