Example where APPEND doesn't work #1

Closed
lx wants to merge 1 commit from append_test into main
Owner

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-08-30 14:58:50 +00:00
lx closed this pull request 2022-09-19 08:05:08 +00:00
Author
Owner

(was not in the right repo)

(was not in the right repo)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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: lx/boitalettres#1
No description provided.