CN112217710B - E-mail receiving and sending method based on POP3 protocol - Google Patents

E-mail receiving and sending method based on POP3 protocol Download PDF

Info

Publication number
CN112217710B
CN112217710B CN202010912262.0A CN202010912262A CN112217710B CN 112217710 B CN112217710 B CN 112217710B CN 202010912262 A CN202010912262 A CN 202010912262A CN 112217710 B CN112217710 B CN 112217710B
Authority
CN
China
Prior art keywords
mail
sending
receiving
service provider
user
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
Application number
CN202010912262.0A
Other languages
Chinese (zh)
Other versions
CN112217710A (en
Inventor
方曙强
刘晓珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaanxi Bestino Information Technology Co ltd
Original Assignee
Shaanxi Bestino Information Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shaanxi Bestino Information Technology Co ltd filed Critical Shaanxi Bestino Information Technology Co ltd
Priority to CN202010912262.0A priority Critical patent/CN112217710B/en
Publication of CN112217710A publication Critical patent/CN112217710A/en
Application granted granted Critical
Publication of CN112217710B publication Critical patent/CN112217710B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for receiving and sending an email based on a POP3 protocol, which comprises a mail sending user, a mail sending service provider, a mail receiving user and a mail receiving service provider, and also comprises an analysis server, wherein the mail sending user sends the email according to the coding rule of the mail sending service provider, firstly, the content of the email is obtained through the analysis server, the analysis server analyzes the email, then, the analysis server matches the coding rule of the mail receiving service provider, finally, the analysis server forwards the email to the mail receiving service provider, the mail receiving service provider displays the email to the mail receiving user, and the mail receiving user receives the email; the invention is based on the improvement and upgrade of the mail receiving and dispatching method on POP3 protocol, has solved the messy code that the mail sending based on POP3 protocol originally produced, the attachment can't be looked over, the mail content picture can't be shown and different countries ' mail intercommunication is not smooth a series of problems, adopt the technological scheme of the invention to raise the mail receiving and dispatching efficiency greatly, and is suitable for the mail of the whole world to transmit each other.

Description

E-mail receiving and sending method based on POP3 protocol
Technical Field
The invention relates to the technical field of image-text information transmission, in particular to a method for receiving and sending an electronic mail based on POP3 protocol.
Background
The current worldwide e-mail interworking is different according to the rules established by different e-mail service providers, such as: encoding rules; picture path rules; attachment path rules, etc. The user has used the rules defined by the different mail service providers when using the services of the mail service providers. Therefore, the mail service provider directly sends the mail according to the rule specifically set by the mail service provider, but other self-defined rules may be used by other mail service providers, so that the problems of messy code of the mail text content, incapability of viewing an attachment, incapability of displaying a mail content picture, loss of mail sending and the like can occur when a receiver sees the mail.
The POP3 protocol supports offline mail processing, and after the mail based on the POP3 protocol is sent to the server, the email client will call the mail client program to download all unread emails (this offline access mode is a store-and-forward service). However, due to different rule protocols established by different mail service providers, when the mail is sent and received by different mail service providers, the problems of messy codes of the content of the mail, incapability of viewing an attachment, incapability of displaying a picture of the content of the mail, loss of the mail sending and the like can be caused.
Based on the background, the new e-mail service needing to be researched optimizes the mails sent and received in the POP3 protocol, and solves the problems of messy codes of mail body contents, incapability of viewing attachments, incapability of displaying mail content pictures, lost mail sending and the like in the process of sending and receiving mails by different mail service providers and users.
Disclosure of Invention
The invention aims to solve the problems, provides an e-mail receiving and sending method based on POP3 protocol, and solves the problems of messy code of mail text content, incapability of viewing attachments, incapability of displaying mail content pictures, mail sending loss and the like caused by sending and receiving between different mail service providers in the current global mail intercommunication.
In order to achieve the purpose, the invention adopts the following technical scheme:
a receiving and sending method of E-mail based on POP3 protocol includes sending mail user, sending mail service provider, receiving mail user and receiving mail service provider, also includes analysis server, the sending mail user sends mail with coding rule of sending mail service provider, first obtains mail content through analysis server, analysis server analyzes mail, then analysis server matches coding rule of receiving mail service provider, finally analysis server forwards mail to receiving mail service provider, receiving mail service provider shows mail to receiving mail user, receiving mail user receives mail.
In the above method for sending and receiving e-mail based on POP3 protocol, the method for analyzing the e-mail by the analysis server is as follows: aiming at the text content of the mail text, messy codes in the mail text are replaced one by positioning the city and the language environment of the current mail sending, and the messy codes in the mail text are converted into the international coding format and finally restored into the initial sending content of the mail sending user; for the picture of the mail text, dumping the picture in the mail of the mail sending user to obtain the address of the original picture after dumping, and replacing or replacing the address or path of the original picture in the mail content with the real path after dumping; and processing and decoding the attachment messy codes of the mail text by using an internationalized coding format, and finally restoring the attachment messy codes into the initial sending content of the mail sending user.
In the method for sending and receiving the e-mail based on the POP3 protocol, the international coding format is the ISO8859-1 coding format.
The method for sending and receiving the E-mail based on the POP3 protocol also comprises the condition that the E-mail which cannot be obtained by a sender or a receiver is lost, and the sender or the receiver is found by extracting information through get All Headers
In the method for sending and receiving the e-mail based on the POP3 protocol, the method for obtaining the mail content by the analysis server further comprises the step of obtaining user authorization.
The beneficial effects produced by adopting the invention are as follows:
(1) the invention is based on the improvement and upgrade of the mail receiving and dispatching method on POP3 protocol, has solved the messy code that the mail sending based on POP3 protocol originally produced, the attachment can't be looked over, the mail content picture can't be shown and different countries ' mail intercommunication is not smooth a series of problems, adopt the technological scheme of the invention to raise the mail receiving and dispatching efficiency greatly, and is suitable for the mail of the whole world to transmit each other.
(2) By adopting the technical scheme of the invention, the messy code of the text content can be analyzed into the text content during sending, the normal viewing of the attachment downloading (including the messy code analysis processing of the attachment content), the normal display of the mail content picture and the correct sending of the mail can be ensured when the mail is sent and received by different mail service providers.
Drawings
FIG. 1 is a schematic diagram of a mail receiving/sending service flow according to the present invention.
FIG. 2 is a schematic diagram of a server configuration according to the present invention
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
In an actual application scene, in the sending and receiving processes of a plurality of mails, messy codes can occur, pictures can not be loaded, the user receiving the mails can not receive the mails, or attachments are lost, and the like.
Referring to fig. 1 and fig. 2, the method for sending and receiving e-mail based on POP3 protocol includes sending mail user, sending mail service provider, receiving mail user and receiving mail service provider, and is characterized by also including parsing server.
The user of the sending mail has used the coding rules of the sending mail service provider while editing the content of the mail using the services of the sending mail service provider. Therefore, the user sending the mail directly sends the mail according to the coding rule of the mail sending service provider, but other coding rules may be used by the mail receiving service provider, so that the problem of messy codes and the like can occur when the user receiving the mail sees the mail, and the problem of messy codes is not solved at all. For international mailings, the encoding rules used by mailers in different countries differ. Thus, in the mail sending process, a garbled code is caused. In China, for example, the network is easy and the encoding rule used by Tencent is different, and random codes can be generated in the sending process of some mails.
Referring to fig. 1 and 2, a mail written by a user sending the mail is easy to encode the content of the mail via a sending mail service provider, such as the internet, and then the sending mail service provider sends the mail encoded according to an encoding rule set by the sending mail service provider to a mailbox address provided by a receiving mail service provider, and the receiving mail service provider decodes the received mail according to the encoding rule of the receiving mail service provider and presents the decoded mail to a user receiving the mail.
The steps of the method for receiving and sending the E-mail of the invention are as follows:
(1) and the mail sending user sends the mail to the mail receiving user, and in the process of mail transmission, the mail of the mail sending user is firstly sent to the analysis server, and the mail is analyzed through the analysis server.
(2) The analysis server judges the mail content and classifies the mail content, and the mail content is roughly divided into three categories of single text, mixed editing of pictures and texts and mixed editing of attachments.
(3) And the treatment is specifically carried out according to three major situations. Applicable to different rules of different mail service providers. And calling the corresponding processing method according to the coding rules of the mails of different classifications. The mail analyzing and processing method comprises the following steps:
for a mail with a single text, after the mail is downloaded offline by an analysis server, algorithm analysis is carried out on messy codes in a mail text, the messy codes are restored to initial sending content and then transmitted to a mail receiving user, if mode rules of receiving parties of different mail service providers are different, related information of the mail receiving user is obtained according to the mail service provider rule of a sending party, and therefore the related information is matched with the mail service provider rule of the receiving party, and as long as mail services built by the analysis server and the mail service providers are based on a transmission protocol of POP3, the mail service of the analysis server can accurately transmit the mail to the mail receiving user after the messy code problem is processed.
The method for firstly restoring the single text type into the initial sending content comprises the following steps: the method is used for carrying out unified coding internationalization processing on the title of the mail and messy codes appearing in a text, namely converting the messy codes in the text into an internationalized coding format (ISO8859-1), determining a city and a language, and providing a method for positioning the city and the language environment of the currently sent mail in a tool kit of a parsing server.
The text and the picture are mixed and edited, the text content is the same as the single text content in processing mode, the mail text and the picture are the picture numbers defined by some mail sending service providers or mail receiving service providers, and if the mail is separated from the services of the mail sending service providers or the mail receiving service providers, the picture cannot be displayed when the mail is checked under the services of other mail service providers. The invention dumps the picture in the mail of the user sending the mail, acquires the address of the original picture after the dump, replaces or replaces the picture address or the path in the mail content with the real path after the dump, acquires and matches the rules suitable for receiving the mail service provider, thus the picture can be seen when the mail is checked by other mail service providers. As long as the mail service of our party and the mail service built by the mail service provider are based on the transmission protocol of POP3, the mail service of our party can accurately transmit the mail to the user of the receiving party after processing the mail problem.
And thirdly, the attachment mixed editing type is the same as the processing mode of the text content and the picture of the mail and the text mixed editing content.
The attachment content is divided into an extended name and a non-extended name. Attachments with extensions but not text type or without extensions do not have the problem of being scrambled or not received.
If the extension name is the attachment of the text type, the text content is obtained by a method for obtaining the mail content (getContent) in the public tool class, and then the messy code is processed and decoded. And stored. And further matching the rule of the received mail service provider, and transmitting the mail content and the attachment to the user of the receiving party. As long as the mail service of our party and the mail service built by the mail service provider are based on the transmission protocol of POP3, the mail service of our party can accurately transmit the mail to the user of the receiving party after processing the mail problem.
The method for processing and decoding the attachment messy codes of the text type comprises the following steps: the method is characterized in that the messy codes appearing in the text are subjected to unified coding internationalization processing, namely the messy codes in the text are converted into an internationalized coding format (ISO8859-1), the city and the language are determined, namely a method for locating the current city and language environment is provided in a tool kit of a parsing server, and by the method, the messy codes in the text are replaced one by using the internationalized coding format (ISO8859-1), so that internationalized switching is realized, and then the mail content is restored to the originally sent content.
The method for locating the current city and language environment is to adopt the current public locating scheme.
Fourthly, the sender/receiver can not obtain the information, namely the mail is lost: the recipient/sender is found by information extraction by get All Headers.
(4) After the processing is finished, the mail is transferred to the mail receiving user according to the service types of different mail sending service providers to receive the mail. As long as the service class set up by the sending mail service provider or the receiving mail service provider is based on the protocol of POP3, the parsing server of the present invention will be perfectly matched. The reason is that the services built by the resolution server are also based on the POP3 protocol, and the POP3 protocol is equivalent to be in the same network segment.
The method for acquiring the mail content (getContent) and get All Headers is a public method, and the mail content can be acquired by calling the method after the user authorization as long as the user authorization is requested.
The categories of the sending mail service provider and the receiving mail service provider include: EDM comprehensive service class, design capability and channel capability are strong; a service class, which has stronger customer service capability but rents others' channels; and the data service class expands EDM work by relying on a database.
And because the coding rules of various countries are different, the invention uniformly uses the international code of ISO8859-1,
the key is how to translate the mail, the first step is to obtain the mail content, the second step is to determine the service rule of the service provider, the third step is to match the rule, the second step and the third step are to process the mail content and to process the problem mail, and the invention is based on the method. And 4, sending to the user. It is on this basis that the efficiency of this service is greatest.
The invention is based on the improvement and upgrade of the mail receiving and sending method on POP3 agreement, have solved the messy code that the mail sending based on POP3 agreement originally produced, the attachment can't be looked over, the mail content picture can't be shown and the intercommunication of mail of different countries is not smooth a series of problems, adopt the technological scheme of the invention to raise the mail receiving and sending efficiency greatly, and is suitable for the mail of the whole world to transmit each other.
By adopting the technical scheme of the invention, the messy code analysis of the text content can be ensured to be the text content during sending, the normal viewing of the attachment downloading (including the messy code analysis processing of the attachment content), the normal display of the mail content picture and the correct sending of the mail when the mail is sent and received by different mail service providers.
The foregoing is a more detailed description of the invention that is presented in connection with specific embodiments, which are not intended to limit the invention to the particular embodiments described herein. For a person skilled in the art to which the invention pertains, several equivalent alternatives or obvious modifications, all of which have the same properties or uses, without departing from the inventive concept, should be considered as falling within the scope of the patent protection of the invention, as determined by the claims filed.

Claims (4)

1. A receiving and dispatching method of E-mail based on POP3 protocol comprises a mail sending user, a mail sending service provider, a mail receiving user and a mail receiving service provider, and is characterized by also comprising an analysis server, wherein the mail sending user sends the mail according to the coding rule of the mail sending service provider, the mail content is firstly obtained through the analysis server, the analysis server analyzes the mail, then the analysis server matches the coding rule of the mail receiving service provider, finally the analysis server forwards the mail to the mail receiving service provider, the mail receiving service provider displays the mail to the mail receiving user, and the mail receiving user receives the mail;
the method for analyzing and processing the mail by the analysis server comprises the following steps: aiming at the text content of the mail text, the messy codes in the mail text are replaced one by using an international coding format through positioning the city and the language environment of the current mail to be sent, and the messy codes in the mail text are converted into the international coding format and finally restored into the initial sending content of the mail sending user; the method comprises the steps that for a picture of a mail text, the picture in a mail of a user sending the mail is dumped, the address of the original picture after the dumping is obtained, and the address or the path of the original picture in the mail content is replaced or replaced by a real path after the dumping; and processing and decoding the attachment messy codes of the mail text by using an internationalized coding format, and finally restoring the attachment messy codes to the initial sending content of the mail sending user.
2. The method for sending and receiving an e-mail according to claim 1, wherein: the internationalized encoding format is the ISO8859-1 encoding format.
3. The method for sending and receiving an e-mail according to claim 1, wherein: the method also comprises the condition that the mail which cannot be acquired by the sender or the receiver is lost, and the receiver or the sender is found by extracting information through get All Headers.
4. The method for sending and receiving an e-mail according to claim 1, wherein: the method for obtaining the mail content by the analysis server further comprises the step of obtaining user authorization.
CN202010912262.0A 2020-09-02 2020-09-02 E-mail receiving and sending method based on POP3 protocol Active CN112217710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010912262.0A CN112217710B (en) 2020-09-02 2020-09-02 E-mail receiving and sending method based on POP3 protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010912262.0A CN112217710B (en) 2020-09-02 2020-09-02 E-mail receiving and sending method based on POP3 protocol

Publications (2)

Publication Number Publication Date
CN112217710A CN112217710A (en) 2021-01-12
CN112217710B true CN112217710B (en) 2022-09-23

Family

ID=74049036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010912262.0A Active CN112217710B (en) 2020-09-02 2020-09-02 E-mail receiving and sending method based on POP3 protocol

Country Status (1)

Country Link
CN (1) CN112217710B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201286115Y (en) * 2008-10-20 2009-08-05 青岛海信移动通信技术股份有限公司 E-mail customer terminal and mobile communication terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551792A (en) * 2008-04-03 2009-10-07 鸿富锦精密工业(深圳)有限公司 Messy code recovery system and method
CN102238095A (en) * 2010-05-06 2011-11-09 阿里巴巴集团控股有限公司 Transcoding method, device and system
CN103595615B (en) * 2012-08-15 2018-10-19 腾讯科技(深圳)有限公司 The method of sending and receiving of Email, terminal
CN103888348B (en) * 2014-03-28 2017-10-27 新浪网技术(中国)有限公司 E-mail applications system and electron post transmission method, device
CN109039876B (en) * 2018-09-19 2021-01-08 天津字节跳动科技有限公司 Mail processing method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201286115Y (en) * 2008-10-20 2009-08-05 青岛海信移动通信技术股份有限公司 E-mail customer terminal and mobile communication terminal

Also Published As

Publication number Publication date
CN112217710A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
EP1075750B1 (en) A method and apparatus for processing electronic mail
US10080113B1 (en) Method of and system for displaying mobile messages in unsupported formats
CN1643877B (en) Method, apparatus and system for providing multimedia messages to incompatible terminals
EP1226695B1 (en) Transmission of multimedia messages between mobile station terminals
US7587458B2 (en) Delta code messaging
US20030193967A1 (en) Method, apparatus and system for processing multimedia messages
US20070266090A1 (en) Emoticons in short messages
EP1417617A2 (en) System and methodology for optimizing delivery of e-mail attachments for disparate devices
CN1647554A (en) Facilitating instant messaging outside of user-defined buddy group in a wireless and non-wireless environment
GB2409785A (en) Multi-language wireless email transmission method for mobile communication
CN1269379C (en) Method for realizing realtime mobile e-mail delivery by mobile short-message
CN100461776C (en) System, method and device for realizing Email notification
US7436823B2 (en) Method for transmitting data
CN112217710B (en) E-mail receiving and sending method based on POP3 protocol
US20040177305A1 (en) Providing a corrected delivery address
CN102132264B (en) Relay device, relay method, and recording medium
CN109218162B (en) Mail delivery method and device
EP1733521B1 (en) A method and an apparatus to classify electronic communication
WO2009026955A1 (en) Transmitting data over a mobile telecommunication network
WO2006017241A2 (en) Selection of bearer mode according to message characteristics
KR20030088019A (en) Mobile text message delivery system using image conversion method
GB2425437A (en) Sending MMS/SMS messages to e-mail addresses
JP2001217970A (en) Network facsimile terminal
KR20020089707A (en) method for mail transmission in mobile terminal
CN116319040A (en) System and method for processing suspicious E-mail

Legal Events

Date Code Title Description
PB01 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