티스토리 뷰

import win32com.client

def searchFolder(folders):
   for f in folders:
      print(“%s, %s, %s“ % (f.FolderPath, f.Name, f.Folders.Count))
      if f.Folders.Count > 0:
         searchFolder(f.Folders)

outlook = win32com.client.Dispatch(“Outlook.Applicatiob“).GetNamespace(“MAPI“)
inbox = outlook.GetDefaultFolder(6)

searchFolder(inbox.Folders)

출처: manshei.tistory.com/132?category=799921


내가 찾고 있었던 방법이라서 기록!

'공부하는 것 > 파이썬' 카테고리의 다른 글

숫자를 한글로 읽기 num2words  (1) 2023.01.17
댓글
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2025/10   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31