Example where APPEND doesn't work #14

Open
lx wants to merge 1 commit 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.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u append_test:lx-append_test
git checkout lx-append_test

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout main
git merge --no-ff lx-append_test
git checkout lx-append_test
git rebase main
git checkout main
git merge --ff-only lx-append_test
git checkout lx-append_test
git rebase main
git checkout main
git merge --no-ff lx-append_test
git checkout main
git merge --squash lx-append_test
git checkout main
git merge --ff-only lx-append_test
git checkout main
git merge lx-append_test
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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.