* Inquiry Regarding Sending Patches to DPDK @ 2024-08-12 7:52 王颢 2024-08-12 14:55 ` Stephen Hemminger 0 siblings, 1 reply; 5+ messages in thread From: 王颢 @ 2024-08-12 7:52 UTC (permalink / raw) To: dev [-- Attachment #1: Type: text/plain, Size: 681 bytes --] Dear all, I hope this message finds you well. I would like to seek your advice on an issue I've encountered. Our company has recently enabled two-factor authentication (2FA) for our email accounts. The IT department has suggested that I abandon using the "git send-email" method, as configured through git config, to send patches to DPDK. Instead, they have recommended using "Exchange anonymous send mail." However, I believe this approach might not be feasible. I wanted to confirm this with you and see if you could provide any guidance on the matter. I look forward to your response. Thank you very much for your time and assistance. Best regards, Howard Wang [-- Attachment #2: Type: text/html, Size: 3530 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inquiry Regarding Sending Patches to DPDK 2024-08-12 7:52 Inquiry Regarding Sending Patches to DPDK 王颢 @ 2024-08-12 14:55 ` Stephen Hemminger 2024-08-14 9:51 ` 答复: " 王颢 0 siblings, 1 reply; 5+ messages in thread From: Stephen Hemminger @ 2024-08-12 14:55 UTC (permalink / raw) To: 王颢; +Cc: dev On Mon, 12 Aug 2024 07:52:39 +0000 王颢 <howard_wang@realsil.com.cn> wrote: > Dear all, > > I hope this message finds you well. > > I would like to seek your advice on an issue I've encountered. Our company has recently enabled two-factor authentication (2FA) for our email accounts. The IT department has suggested that I abandon using the "git send-email" method, as configured through git config, to send patches to DPDK. Instead, they have recommended using "Exchange anonymous send mail." However, I believe this approach might not be feasible. > > I wanted to confirm this with you and see if you could provide any guidance on the matter. I look forward to your response. > > Thank you very much for your time and assistance. > > Best regards, > Howard Wang There are two issues here: Using git send-email is not required. You can generate patch files and put them in your email. BUT Microsoft Exchange does not preserve text formatting in messages. Any patches sent that way are usually corrupted. At Microsoft, we ended up using a special server (not Exchange) to send Linux and DPDK patches. Or using non-corporate accounts. ^ permalink raw reply [flat|nested] 5+ messages in thread
* 答复: Inquiry Regarding Sending Patches to DPDK 2024-08-12 14:55 ` Stephen Hemminger @ 2024-08-14 9:51 ` 王颢 2024-08-14 10:14 ` Morten Brørup 0 siblings, 1 reply; 5+ messages in thread From: 王颢 @ 2024-08-14 9:51 UTC (permalink / raw) To: Stephen Hemminger; +Cc: dev Dear Stephen, Now I have a better understanding of the anonymous sending suggested by the company's IT department. Since the second-factor authentication for the email account is Microsoft's Okta, which seems not straightforward to configure with an account and password, they have enabled anonymous sending for me. Here's how it works approximately: When I send emails, I don't need to input an account or password. Instead, I just need to configure the server and port number, and I can send emails. Attached below is the script I've written. However, it seems there are some issues, and perhaps I need to conduct further research. test result: https://mails.dpdk.org/archives/dev/2024-August/299466.html python: #!/usr/bin/env python3 import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders smtp_server = 'smtpsrv.realsil.com.cn' smtp_port = 25 from_addr = 'howard_wang@realsil.com.cn' to_addr = 'dev@dpdk.org' msg = MIMEMultipart() msg['From'] = from_addr msg['To'] = to_addr #msg['Subject'] = 'test anonymous send mail' filename = '0001-net-r8169-add-PMD-driver-skeleton.patch' with open(filename, 'rb') as attachment: part = MIMEBase('application', 'octet-stream') part.set_payload(attachment.read()) encoders.encode_base64(part) part.add_header('Content-Disposition', f"attachment; filename= {filename}") msg.attach(part) try: server = smtplib.SMTP(smtp_server, smtp_port) server.sendmail(from_addr, [to_addr], msg.as_string()) server.quit() print('Mail sent successfully!') except Exception as e: print(f'Failed to send mail: {e}') Thanks! Howard Wang -----邮件原件----- 发件人: Stephen Hemminger <stephen@networkplumber.org> 发送时间: 2024年8月12日 22:56 收件人: 王颢 <howard_wang@realsil.com.cn> 抄送: dev@dpdk.org 主题: Re: Inquiry Regarding Sending Patches to DPDK External mail. On Mon, 12 Aug 2024 07:52:39 +0000 王颢 <howard_wang@realsil.com.cn> wrote: > Dear all, > > I hope this message finds you well. > > I would like to seek your advice on an issue I've encountered. Our company has recently enabled two-factor authentication (2FA) for our email accounts. The IT department has suggested that I abandon using the "git send-email" method, as configured through git config, to send patches to DPDK. Instead, they have recommended using "Exchange anonymous send mail." However, I believe this approach might not be feasible. > > I wanted to confirm this with you and see if you could provide any guidance on the matter. I look forward to your response. > > Thank you very much for your time and assistance. > > Best regards, > Howard Wang There are two issues here: Using git send-email is not required. You can generate patch files and put them in your email. BUT Microsoft Exchange does not preserve text formatting in messages. Any patches sent that way are usually corrupted. At Microsoft, we ended up using a special server (not Exchange) to send Linux and DPDK patches. Or using non-corporate accounts. ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Inquiry Regarding Sending Patches to DPDK 2024-08-14 9:51 ` 答复: " 王颢 @ 2024-08-14 10:14 ` Morten Brørup 2024-08-15 7:55 ` 答复: " 王颢 0 siblings, 1 reply; 5+ messages in thread From: Morten Brørup @ 2024-08-14 10:14 UTC (permalink / raw) To: 王颢, Stephen Hemminger; +Cc: dev Howard, I'm using.gitconfig to configure my git send-email options. Try this in your .gitconfig: [user] name = Howard Wang email = howard_wang@realsil.com.cn [sendemail] from = Howard Wang <howard_wang@realsil.com.cn> envelopeSender = howard_wang@realsil.com.cn smtpServer = smtpsrv.realsil.com.cn Med venlig hilsen / Kind regards, -Morten Brørup > -----Original Message----- > From: 王颢 [mailto:howard_wang@realsil.com.cn] > Sent: Wednesday, 14 August 2024 11.52 > To: Stephen Hemminger > Cc: dev@dpdk.org > Subject: 答复: Inquiry Regarding Sending Patches to DPDK > > Dear Stephen, > > Now I have a better understanding of the anonymous sending suggested by the > company's IT department. Since the second-factor authentication for the email > account is Microsoft's Okta, which seems not straightforward to configure with > an account and password, they have enabled anonymous sending for me. Here's > how it works approximately: When I send emails, I don't need to input an > account or password. Instead, I just need to configure the server and port > number, and I can send emails. Attached below is the script I've written. > However, it seems there are some issues, and perhaps I need to conduct further > research. > > test result: https://mails.dpdk.org/archives/dev/2024-August/299466.html > python: > #!/usr/bin/env python3 > import smtplib > from email.mime.multipart import MIMEMultipart > from email.mime.text import MIMEText > from email.mime.base import MIMEBase > from email import encoders > > smtp_server = 'smtpsrv.realsil.com.cn' > smtp_port = 25 > > from_addr = 'howard_wang@realsil.com.cn' > to_addr = 'dev@dpdk.org' > > msg = MIMEMultipart() > msg['From'] = from_addr > msg['To'] = to_addr > #msg['Subject'] = 'test anonymous send mail' > > filename = '0001-net-r8169-add-PMD-driver-skeleton.patch' > with open(filename, 'rb') as attachment: > part = MIMEBase('application', 'octet-stream') > part.set_payload(attachment.read()) > encoders.encode_base64(part) > part.add_header('Content-Disposition', f"attachment; filename= > {filename}") > msg.attach(part) > > try: > server = smtplib.SMTP(smtp_server, smtp_port) > server.sendmail(from_addr, [to_addr], msg.as_string()) > server.quit() > print('Mail sent successfully!') > except Exception as e: > print(f'Failed to send mail: {e}') > > Thanks! > Howard Wang > > -----邮件原件----- > 发件人: Stephen Hemminger <stephen@networkplumber.org> > 发送时间: 2024年8月12日 22:56 > 收件人: 王颢 <howard_wang@realsil.com.cn> > 抄送: dev@dpdk.org > 主题: Re: Inquiry Regarding Sending Patches to DPDK > > > External mail. > > > > On Mon, 12 Aug 2024 07:52:39 +0000 > 王颢 <howard_wang@realsil.com.cn> wrote: > > > Dear all, > > > > I hope this message finds you well. > > > > I would like to seek your advice on an issue I've encountered. Our company > has recently enabled two-factor authentication (2FA) for our email accounts. > The IT department has suggested that I abandon using the "git send-email" > method, as configured through git config, to send patches to DPDK. Instead, > they have recommended using "Exchange anonymous send mail." However, I believe > this approach might not be feasible. > > > > I wanted to confirm this with you and see if you could provide any guidance > on the matter. I look forward to your response. > > > > Thank you very much for your time and assistance. > > > > Best regards, > > Howard Wang > > There are two issues here: > Using git send-email is not required. You can generate patch files and put > them in your email. > BUT Microsoft Exchange does not preserve text formatting in messages. Any > patches sent that way are usually corrupted. > > At Microsoft, we ended up using a special server (not Exchange) to send Linux > and DPDK patches. Or using non-corporate accounts. ^ permalink raw reply [flat|nested] 5+ messages in thread
* 答复: Inquiry Regarding Sending Patches to DPDK 2024-08-14 10:14 ` Morten Brørup @ 2024-08-15 7:55 ` 王颢 0 siblings, 0 replies; 5+ messages in thread From: 王颢 @ 2024-08-15 7:55 UTC (permalink / raw) To: Morten Brørup, Stephen Hemminger; +Cc: dev Dear Morten, I have successfully resolved this problem. Prior to the tests, I overlooked the necessity of disabling smtpencryption. However, upon modifying my .gitconfig file as demonstrated below, everything now functions flawlessly. If IT allows anonymous email sending, then the 2FA problem will be solved. [user] name = howard_wang email = howard_wang@realsil.com.cn [core] editor = vim [sendemail] smtpserverport=25 smtpserver=smtpsrv.realsil.com.cn smtpdomain = 172.29.32.27 Thanks! Howard Wang -----邮件原件----- 发件人: Morten Brørup <mb@smartsharesystems.com> 发送时间: 2024年8月14日 18:15 收件人: 王颢 <howard_wang@realsil.com.cn>; Stephen Hemminger <stephen@networkplumber.org> 抄送: dev@dpdk.org 主题: RE: Inquiry Regarding Sending Patches to DPDK External mail. Howard, I'm using.gitconfig to configure my git send-email options. Try this in your .gitconfig: [user] name = Howard Wang email = howard_wang@realsil.com.cn [sendemail] from = Howard Wang <howard_wang@realsil.com.cn> envelopeSender = howard_wang@realsil.com.cn smtpServer = smtpsrv.realsil.com.cn Med venlig hilsen / Kind regards, -Morten Brørup > -----Original Message----- > From: 王颢 [mailto:howard_wang@realsil.com.cn] > Sent: Wednesday, 14 August 2024 11.52 > To: Stephen Hemminger > Cc: dev@dpdk.org > Subject: 答复: Inquiry Regarding Sending Patches to DPDK > > Dear Stephen, > > Now I have a better understanding of the anonymous sending suggested > by the company's IT department. Since the second-factor authentication > for the email account is Microsoft's Okta, which seems not > straightforward to configure with an account and password, they have > enabled anonymous sending for me. Here's how it works approximately: > When I send emails, I don't need to input an account or password. > Instead, I just need to configure the server and port number, and I can send emails. Attached below is the script I've written. > However, it seems there are some issues, and perhaps I need to conduct > further research. > > test result: > https://mails.dpdk.org/archives/dev/2024-August/299466.html > python: > #!/usr/bin/env python3 > import smtplib > from email.mime.multipart import MIMEMultipart from email.mime.text > import MIMEText from email.mime.base import MIMEBase from email import > encoders > > smtp_server = 'smtpsrv.realsil.com.cn' > smtp_port = 25 > > from_addr = 'howard_wang@realsil.com.cn' > to_addr = 'dev@dpdk.org' > > msg = MIMEMultipart() > msg['From'] = from_addr > msg['To'] = to_addr > #msg['Subject'] = 'test anonymous send mail' > > filename = '0001-net-r8169-add-PMD-driver-skeleton.patch' > with open(filename, 'rb') as attachment: > part = MIMEBase('application', 'octet-stream') > part.set_payload(attachment.read()) > encoders.encode_base64(part) > part.add_header('Content-Disposition', f"attachment; filename= > {filename}") > msg.attach(part) > > try: > server = smtplib.SMTP(smtp_server, smtp_port) > server.sendmail(from_addr, [to_addr], msg.as_string()) > server.quit() > print('Mail sent successfully!') > except Exception as e: > print(f'Failed to send mail: {e}') > > Thanks! > Howard Wang > > -----邮件原件----- > 发件人: Stephen Hemminger <stephen@networkplumber.org> > 发送时间: 2024年8月12日 22:56 > 收件人: 王颢 <howard_wang@realsil.com.cn> > 抄送: dev@dpdk.org > 主题: Re: Inquiry Regarding Sending Patches to DPDK > > > External mail. > > > > On Mon, 12 Aug 2024 07:52:39 +0000 > 王颢 <howard_wang@realsil.com.cn> wrote: > > > Dear all, > > > > I hope this message finds you well. > > > > I would like to seek your advice on an issue I've encountered. Our > > company > has recently enabled two-factor authentication (2FA) for our email accounts. > The IT department has suggested that I abandon using the "git send-email" > method, as configured through git config, to send patches to DPDK. > Instead, they have recommended using "Exchange anonymous send mail." > However, I believe this approach might not be feasible. > > > > I wanted to confirm this with you and see if you could provide any > > guidance > on the matter. I look forward to your response. > > > > Thank you very much for your time and assistance. > > > > Best regards, > > Howard Wang > > There are two issues here: > Using git send-email is not required. You can generate patch files and > put them in your email. > BUT Microsoft Exchange does not preserve text formatting in messages. > Any patches sent that way are usually corrupted. > > At Microsoft, we ended up using a special server (not Exchange) to > send Linux and DPDK patches. Or using non-corporate accounts. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-08-15 7:55 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-08-12 7:52 Inquiry Regarding Sending Patches to DPDK 王颢 2024-08-12 14:55 ` Stephen Hemminger 2024-08-14 9:51 ` 答复: " 王颢 2024-08-14 10:14 ` Morten Brørup 2024-08-15 7:55 ` 答复: " 王颢
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).