"GetMessages"
This method Retrieves the set of mail messages with the specified unique identifiers (UIDs) using the specified set of header names.
"GetMailHeaders"
This method Retrieves the mail headers for the mail message with the specified unique identifiers (mailIds) in a single command, instead of sending the same command multiple times.
Both the methods improve performance in retrieving mail just by sending one command to fetch a set of mails instead of sending same command multiple times.
"GetMessages" This method Retrieves the set of mail messages with the specified unique identifiers (UIDs) using the specified set of header names. "GetMailHeaders" This method Retrieves the mail headers for the mail message with the specified unique identifiers (mailIds) in a single command, instead of sending the same command multiple times.
Both the methods improve performance in retrieving mail just by sending one command to fetch a set of mails instead of sending same command multiple times.