Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package letters.0.4.0 #27266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joseferben
Copy link
Contributor

letters.0.4.0

Client library for sending emails over SMTP
Simple to use SMTP client implementation for OCaml



🐫 Pull-request generated by opam-publish v2.1.0

@mseri
Copy link
Member

mseri commented Jan 15, 2025

Can you check what lower bound is incorrect leading to the build failures?

# File "lib/sendmail_handler.ml", lines 63-99, characters 2-28:
# 63 | ..Lwt_unix.gethostbyname (Domain_name.to_string hostname)
# 64 |   >>= fun res ->
# 65 |   if Array.length res.Lwt_unix.h_addr_list = 0
# 66 |   then Lwt.fail_with (Fmt.str "%a can not be resolved" Domain_name.pp hostname)
# 67 |   else (
# ...
# 96 |         recipients
# 97 |         mail_stream
# 98 |     in
# 99 |     Lwt_scheduler.prj fiber)
# Error: This expression has type
#          "(unit, Sendmail_with_starttls.error) result Lwt.t"
#        but an expression was expected of type
#          "(unit,
#           [> `Protocol of [> `Invalid_login_challenge of string ] ] as 'a)
#          Lwt_result.t" = "(unit, 'a) result Lwt.t"
#        Type
#          "Sendmail_with_starttls.error" =
#            "[ `Authentication_failed
#            | `Authentication_rejected
#            | `Authentication_required
#            | `Encryption_required
#            | `Protocol of
#                [ `Protocol of Sendmail_with_starttls.Value.error
#                | `Tls_alert of Tls.Packet.alert_type
#                | `Tls_closed
#                | `Tls_failure of Tls.Engine.failure ]
#            | `STARTTLS_unavailable
#            | `Tls of
#                [ `Protocol of Sendmail_with_starttls.Value.error
#                | `Tls_alert of Tls.Packet.alert_type
#                | `Tls_closed
#                | `Tls_failure of Tls.Engine.failure ]
#            | `Unsupported_mechanism
#            | `Weak_mechanism ]"
#        is not compatible with type
#          "[> `Protocol of [> `Invalid_login_challenge of string ] ]"
#        The first variant type does not allow tag(s) "`Invalid_login_challenge"

and

# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.letters.objs/byte -I /home/opam/.opam/4.14/lib/ca-certs -I /home/opam/.opam/4.14/lib/colombe -I /home/opam/.opam/4.14/lib/colombe/emile -I /home/opam/.opam/4.14/lib/containers -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/emile -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt/unix -I /home/opam/.opam/4.14/lib/mrmime -I /home/opam/.opam/4.14/lib/ptime/clock/os -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/sendmail -I /home/opam/.opam/4.14/lib/sendmail/starttls -I /home/opam/.opam/4.14/lib/tls -I /home/opam/.opam/4.14/lib/tls-lwt -I /home/opam/.opam/4.14/lib/x509 -intf-suffix .ml -no-alias-deps -open Letters__ -o lib/.letters.objs/byte/letters.cmo -c -impl lib/letters.ml)
# File "lib/letters.ml", line 81, characters 39-48:
# 81 |   | Some { Colombe.Path.domain; _ } -> Ok domain
#                                             ^^^^^^^^^
# Error: This expression has type ('a, 'b) result
#        but an expression was expected of type
#          ('c, [> Rresult.R.msg ]) Result.result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants