hey reply / hey draft send report success but the message stays in Drafts (send-as address)

Đang mở
#544 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
49/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Start by tracing the hey reply and hey draft send command paths described in the report, including how each decides a send succeeded. Compare their reported success with the observed thread and Drafts state for a send-as address. Done means the message is delivered and leaves Drafts, or the command reports failure rather than success when it remains a draft.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

With hey-cli 1.7.0 (Linux), replying in a thread whose latest entry was sent from a send-as address reports success, but nothing is delivered: the message stays in Drafts and never appears in the thread. Running hey draft send on that draft also reports success and has the same result. Because both commands exit ok, an agent or script assumes the email went out.

Steps to reproduce

  1. Pick a thread whose latest entry you sent from a send-as address (not the primary @hey.com identity).
  2. Check the envelope:
    hey reply <thread-id> --replace-recipients --to [email protected] --cc [email protected] --dry-run
    
    This resolves correctly: "from": {"email_address": "<send-as address>"}, with the right To and CC.
  3. Send it:
    hey reply <thread-id> --replace-recipients --to [email protected] --cc [email protected] -m "..."
    
    Output: {"ok": true, ..., "summary": "Reply sent"}
  4. hey thread read <thread-id> --json: the entry count is unchanged, even after several minutes.
  5. hey draft list --json: the reply is there as a draft (subject Re: ..., from = the send-as address, correct To/CC and body).
  6. hey draft send <draft-id>: {"ok": true, "data": {"id": <draft-id>}, "summary": "Draft sent"}
  7. Polling for about 2 more minutes: the thread still has the same number of entries, and the draft is still in hey draft list.

Expected

Either the reply is delivered (it shows up in the thread and leaves Drafts), or the command exits non-zero with the server's reason. A success summary should only be reported once the message has actually left Drafts.

Actual

Both commands report success while the message stays an unsent draft. Sending from the HEY web app is the workaround.

Notes

  • Related but different: #483 (send-as used the wrong identity, closed), #520 (502 after a send, outcome unknown), #477 (idempotency for reruns). Here there's no error at all, just a false success.
  • A post-send check would help agents: after reply / draft send, confirm the draft is gone or the thread grew, and report something like "delivered": false otherwise.
  • I didn't retry beyond that, to avoid sending a duplicate to the recipient.
Ngôn ngữ chính
Go
Star
420
Fork
54
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
43

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của basecamp/hey-cli

Tất cả issue của basecamp/hey-cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.