User Profile
Mark_Babayev
Copper Contributor
Joined Aug 19, 2019
User Widgets
Recent Discussions
Validate Guest/Member users for accounts created before 2014
Old exchange accounts that were created before 2014-2015 don't have userType field. When we query such users their userType returns null: https://graph.microsoft.com/v1.0/users/xxx?$select=createdDateTime,userType How do we differ in such case between Guest and Member accounts?759Views0likes3CommentsRe: SMTP connector for emails with Korean charset
This issue can be reproduced by this JS code: iconv.decode(iconv.encode(iconv.decode(iconv.encode('하나은행 보안메일', 'euc_kr'), 'utf_8'), 'utf_8'), 'euc-kr') After this convertion we receive duplicate characters as in the original case: `占싹놂옙占쏙옙占쏙옙 占쏙옙占싫몌옙占쏙옙` So, I think this is a Microsoft bug. It translates incorrect korean text from MSG to EML format.591Views0likes0CommentsGraph API - Email content is different from raw data
I send an email with dashed item list (put dashes manually without clicking on any buttons): - x - x - x When I afterwards check it in GraphAPI with the command: `https://graph.microsoft.com/v1.0/users/[USER]/messages/[MID]?$select=$value` I receive a correct email body (after manually parsing and un-base64 eml): <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="Generator" content="Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face { font-family: Wingdings; panose-1: 5 0 0 0 0 0 0 0 0 0; } @font-face { font-family: "Cambria Math"; panose-1: 2 4 5 3 5 4 6 3 2 4; } @font-face { font-family: Calibri; panose-1: 2 15 5 2 2 2 4 3 2 4; } /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm; font-size: 11.0pt; font-family: "Calibri", sans-serif; mso-ligatures: standardcontextual; } p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph { mso-style-priority: 34; margin-top: 0cm; margin-right: 0cm; margin-bottom: 0cm; margin-left: 36.0pt; font-size: 11.0pt; font-family: "Calibri", sans-serif; mso-ligatures: standardcontextual; } span.EmailStyle17 { mso-style-type: personal-compose; font-family: "Calibri", sans-serif; color: windowtext; } .MsoChpDefault { mso-style-type: export-only; font-family: "Calibri", sans-serif; } WordSection1 { size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; } div.WordSection1 { page: WordSection1; } /* List Definitions */ @list l0 { mso-list-id: 1561476882; mso-list-type: hybrid; mso-list-template-ids: -343380202 -1048276170 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693; } @list l0:level1 { mso-level-start-at: 0; mso-level-number-format: bullet; mso-level-text: -; mso-level-tab-stop: none; mso-level-number-position: left; text-indent: -18.0pt; font-family: "Calibri", sans-serif; mso-fareast-font-family: Calibri; } @list l0:level2 { mso-level-number-format: bullet; mso-level-text: o; mso-level-tab-stop: none; mso-level-number-position: left; text-indent: -18.0pt; font-family: "Courier New"; } @list l0:level3 { mso-level-number-format: bullet; mso-level-text: ; mso-level-tab-stop: none; mso-level-number-position: left; text-indent: -18.0pt; font-family: Wingdings; } @list l0:level4 { mso-level-number-format: bullet; mso-level-text: ; mso-level-tab-stop: none; mso-level-number-position: left; text-indent: -18.0pt; font-family: Symbol; } @list l0:level5 { mso-level-number-format: bullet; mso-level-text: o; mso-level-tab-stop: none; mso-level-number-position: left; text-indent: -18.0pt; font-family: "Courier New"; } @list l0:level6 { mso-level-number-format: bullet; mso-level-text: ; mso-level-tab-stop: none; mso-level-number-position: left; text-indent: -18.0pt; font-family: Wingdings; } @list l0:level7 { mso-level-number-format: bullet; mso-level-text: ; mso-level-tab-stop: none; mso-level-number-position: left; text-indent: -18.0pt; font-family: Symbol; } @list l0:level8 { mso-level-number-format: bullet; mso-level-text: o; mso-level-tab-stop: none; mso-level-number-position: left; text-indent: -18.0pt; font-family: "Courier New"; } @list l0:level9 { mso-level-number-format: bullet; mso-level-text: ; mso-level-tab-stop: none; mso-level-number-position: left; text-indent: -18.0pt; font-family: Wingdings; } ol { margin-bottom: 0cm; } ul { margin-bottom: 0cm; } --></style> </head> <body lang="en-IL" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"> <div class="WordSection1"> <ul style="margin-top:0cm" type="disc"> <li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">X<o:p></o:p></span></li> <li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">X<o:p></o:p></span></li> <li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">X<o:p></o:p></span></li> <li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">Xx<o:p></o:p></span></li> <li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">X<o:p></o:p></span></li> <li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">X<o:p></o:p></span></li> </ul> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> </div> </body> </html> But when I request an email body without select: `https://graph.microsoft.com/v1.0/users/[USER]/messages/[MID]` I receive it different: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="Generator" content="Microsoft Word 15 (filtered medium)"> <style> <!-- @font-face { font-family: Wingdings } @font-face { font-family: "Cambria Math" } @font-face { font-family: Calibri } p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm; font-size: 11.0pt; font-family: "Calibri", sans-serif } p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph { margin-top: 0cm; margin-right: 0cm; margin-bottom: 0cm; margin-left: 36.0pt; font-size: 11.0pt; font-family: "Calibri", sans-serif } span.EmailStyle17 { font-family: "Calibri", sans-serif; color: windowtext } .MsoChpDefault { font-family: "Calibri", sans-serif } WordSection1 { margin: 72.0pt 72.0pt 72.0pt 72.0pt } div.WordSection1 { } ol { margin-bottom: 0cm } ul { margin-bottom: 0cm } --> </style> </head> <body lang="en-IL" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"> <div class="WordSection1"> <ul type="disc" style="margin-top:0cm"> <li class="MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">X</span></li> <li class="MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">X</span></li> <li class="MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">X</span></li> <li class="MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">Xx</span></li> <li class="MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">X</span></li> <li class="MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">X</span></li> </ul> <p class="MsoNormal"><span lang="EN-US"> </span></p> <p class="MsoNormal"><span lang="EN-US"> </span></p> <p class="MsoNormal"><span lang="EN-US"> </span></p></div> </body> </html> There are missing "mso-list:l0 level1 lfo1" styles. When we add some custom content to an email body and update with it an original email (by GraphAPI POST request) it converts dashes list to the bullets list.929Views0likes0CommentsSMTP connector for emails with Korean charset
We have SMTP MTA server connected to the customer's Online Exchange Server which relays emails to our BE server. The customer Exchange Server has `utf8` encoding set. The customer receives emails in Korean correct when they are not relayed through our SMTP (as MSG files). When emails are relayed to our SMTP server we receive the relevant EML file with `euc-kr` encoding, the EML itself has diamonds and when opening it with Outlook Client it contains gibberish. All strings also become twice long. Why there is a difference between Exchange Server and SMTP connection? Can MSG and EML files have different encodings? I can send an original MSG file with an EML file received by SMTP server per request to a support personnel email.809Views0likes2CommentsAdd notification message to an email item
I would like to add a notification message to an existing email item, like it is done by the office-js SDK: Office.context.mailbox.item.notificationMessages.addAsync Is it possible to do by the Graph API with client_credentials authentication?990Views0likes0Comments
Recent Blog Articles
No content to show