Skip to content

Commit 5665e14

Browse files
committed
README.md: additional updates
1 parent a18615e commit 5665e14

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

projects/Store_emails_in_csv/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,20 @@ for extracting text from HTML messages.
1717
You will need to have a file `credentials.txt`
1818
with your IMAP server account name and password on separate lines.
1919

20-
This generates `mails.csv` in the current directory.
20+
Gmail - and many other IMAP providers -
21+
requires you to create a separate "application password"
22+
to allow this code to run, so probably do that first.
23+
Then put that password in `credentials.txt`.
24+
25+
Then simply run
2126

2227
```
2328
python store_emails.py
2429
```
2530

26-
The generate CSV file contains the following fields for each message:
31+
This generates `mails.csv` in the current directory.
32+
33+
The generated CSV file contains the following fields for each message:
2734

2835
* Date
2936
* From (Sender)
@@ -48,6 +55,8 @@ arrived since the previous poll.
4855
It might be useful to be able to specify which messages to fetch,
4956
instead of have it fetch everything every time.
5057

58+
The exception handling is not a good example of how to do this properly.
59+
5160

5261
## Author Name
5362

0 commit comments

Comments
 (0)