| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,10 @@ | |||
| 7 | 7 | # account credentials | |
| 8 | 8 | username = "youremailaddress@provider.com" | |
| 9 | 9 | password = "yourpassword" | |
| 10 | + # use your email provider's IMAP server, you can look for your provider's IMAP server on Google | ||
| 11 | + # or check this page: https://www.systoolsgroup.com/imap/ | ||
| 12 | + # for office 365, it's this: | ||
| 13 | + imap_server = "outlook.office365.com" | ||
| 10 | 14 | ||
| 11 | 15 | ||
| 12 | 16 | def clean(text): | |
@@ -17,7 +21,7 @@ def clean(text): | |||
| 17 | 21 | N = 3 | |
| 18 | 22 | ||
| 19 | 23 | # create an IMAP4 class with SSL, use your email provider's IMAP server | |
| 20 | - imap = imaplib.IMAP4_SSL("imap.gmail.com") | ||
| 24 | + imap = imaplib.IMAP4_SSL(imap_server) | ||
| 21 | 25 | # authenticate | |
| 22 | 26 | imap.login(username, password) | |
| 23 | 27 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments