Example where APPEND doesn't work #14

Open
lx wants to merge 1 commits from lx/boitalettres:append_test into main
First-time contributor

This PR contains code to demonstrate issue #13.

I've completed the example/simple.rs server to send different response to different commands.

I also created scripts/test_imap.sh and completed scripts/test_imap.py with different examples of using the APPEND command:

  • scripts/test_imap.py uses Python's IMAPlib .append() method, which uses the continuation-style IMAP APPEND
  • scripts/test_imap.sh directly writes the IMAP APPEND in the non-continuation-style using netcat

As expected, the IMAPlib version just hangs indefinitely: Python waits for the server to send a continuation response, which is unimplemented.

However, unexpectedly, the netcat version doesn't work either. The connection is closed by the server, and a message like the following is produced in the logs:

2022-08-30T14:57:57.533960Z DEBUG boitalettres::server::conn: Connecting error: underlying transport failed to produce a request
This PR contains code to demonstrate issue #13. I've completed the `example/simple.rs` server to send different response to different commands. I also created `scripts/test_imap.sh` and completed `scripts/test_imap.py` with different examples of using the APPEND command: - `scripts/test_imap.py` uses Python's IMAPlib `.append()` method, which uses the continuation-style IMAP APPEND - `scripts/test_imap.sh` directly writes the IMAP APPEND in the non-continuation-style using netcat As expected, the IMAPlib version just hangs indefinitely: Python waits for the server to send a continuation response, which is unimplemented. However, unexpectedly, the netcat version doesn't work either. The connection is closed by the server, and a message like the following is produced in the logs: ``` 2022-08-30T14:57:57.533960Z DEBUG boitalettres::server::conn: Connecting error: underlying transport failed to produce a request ```
lx added 1 commit 2022-09-19 08:05:03 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b lx-append_test main
git pull append_test

Step 2:

Merge the changes and update on Forgejo.
git checkout main
git merge --no-ff lx-append_test
git push origin main
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: KokaKiwi/boitalettres#14
No description provided.