잡동사니

반응형

질문


exchangelib와 함께 전송 된 이메일의 메시지 ID를 가져와야합니다. 그것을 얻는 방법에 대한 문서를 찾을 수 없습니다.

item = account.inbox.filter(message_id__in=[message_id]).only( 'subject', 
                                                                'id',
                                                                                                                                'message_id',
                                                                                                                                                                                                'sender',
                                                                                                                                                                                                                                                                'cc_recipients',
                                                                                                                                                                                                                                                                                                                                'to_recipients',
                                                                                                                                                                                                                                                                                                                                                                                                'references')[0]
                                                                                                                                                                                                                                                                                                                                                                                                item.reply(subject='Re: '+ item.subject,
                                                                                                                                                                                                                                                                                                                                                                                                            to_recipients=[item.sender.email_address],
                                                                                                                                                                                                                                                                                                                                                                                                                        body='I agree',)

item.references 참조를 얻는 경우 결과 없음


답변1


보낸 메시지는 같은 Exchange 서버에있는받는 사람에게 보내거나 명시 적으로 저장하도록 선택하지 않는 한 Exchange 서버에 저장되지 않습니다. 보낸 폴더

메시지 ID를 받으려면 전송 된 메시지를 보유해야합니다. 그런 다음 해당 항목의 message_id 에 액세스 할 수 있습니다.


 

 

 

 

출처 : https://stackoverflow.com/questions/59201430/how-to-get-message-id-of-email-reply-exchangelib

반응형

이 글을 공유합시다

facebook twitter googleplus kakaoTalk kakaostory naver band