Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Let the mail transport be chosen instead of hardcoded

Đang mở
#116 0 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
18/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
go
Lĩnh vực
backend

Hướng nghiên cứu

Start in buildMailSender in cmd/alphone/mail.go (around line 33), which calls smtp.New unconditionally, then read how wireFieldProviders and wireCredentialProviders in cmd/alphone/run.go collect from plugins. The sdk's MailSenderConsumer is the existing plugin-facing type, and the issue says no reverse seam exists yet. Done would mean transport selection comes from configuration and a provider seam exists, but the issue does not define the seam's shape or name a test, so agree on the design with maintainers first.

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

Mô tả

Only one mail transport can ever run, because the composition root names it directly. A second transport is unreachable wherever its code lives.

Current state: buildMailSender in cmd/alphone/mail.go:33 calls smtp.New unconditionally, and the only choice is whether an SMTP host is set. Settings are read once from the environment at boot. The sdk declares MailSenderConsumer, which hands a sender down to plugins, and no seam pointing the other way, although wireFieldProviders and wireCredentialProviders in cmd/alphone/run.go already collect from plugins that way.

Proposal: pick the transport from configuration first, and add the missing provider seam. A selector in the settings screen follows once settings move to a table.

Trigger: before a second transport ships.

Ngôn ngữ chính
Go
Star
287
Fork
64
Merge trung bình
13 giờ 19 phút
Pull request đã merge (30 ngày)
62

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 gopherium/AlphOne

Tất cả issue của gopherium/AlphOne

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.