预定/报价
COMP30023
COMP30023
yet2024-09-03 14:36:42

The aim of this project is to familiarize you with socket programming. Your task is to write a simple email client

that downloads and parses email from a standards-compliant IMAP server.

Writing network code relies on conformance to standards, and so part of this project is to look up the relevant

standards (Requests for Comments, RFCs). You may also refer to online tutorials; if you do, then please mention

them in the comments of your code.

Your email client must be written in C or, if you get prior permission, in Rust. Submissions that do not compile

and run on a cloud VM may receive zero marks.

Blue text in this document is hyperlinked to resource material.

2 Project Details

Your task is to design and code a simple email client.

2.1 Program execution / command line arguments

The program should be be launched using the command:

fetchmail

-u <username> -p <password> [-f <folder>] [-n <messageNum>] [-t]

<command> <server_name>

Where <command> may be one of: retrieve, parse, mime, or list.

The options beginning with “-” can occur in any order, including between and/or after the 2 positional arguments.