Is there a way to post a raw RFC 5322 message to the create message endpoint?
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 30/100
Línea de trabajo
Comience con el punto de entrada Messages().Post del SDK y compare su parámetro model.Messageable con el endpoint documentado /users/{id | userPrincipalName}/mailFolders/{id}/messages. Compruebe si la ruta de solicitud puede representar contenido RFC 5322 codificado en base64 con text/plain; se considerará terminado cuando se haya establecido la compatibilidad del SDK o se haya documentado la ruta de solicitud que falta.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I have an RFC 5322-formatted message, and I'm trying to POST it to the /users/{id | userPrincipalName}/mailFolders/{id}/messages endpoint.
Per the docs for that API, that is possible when POSTing a request to that endpoint with a content type of text/plain. Specifically, this note in the "Request headers" section for Content-Type (emphasis mine):
Use
application/jsonfor a JSON object andtext/plainfor MIME content.
Combined with this additional note in the "Request body" section:
When specifying the body in MIME format, provide the MIME content with the applicable Internet message headers ("To", "CC", "BCC", "Subject"), all encoded in base64 format in the request body.
I can't find a way to do this with the SDK. Am I missing something, or does the SDK not support this?
I'm able to get as far as this:
client.
Users().
ByUserId(userID).
MailFolders().
ByMailFolderId("inbox").
Messages().
Post(
ctx,
// This doesn't compile as it isn't `model.Messageable`.
// How do I send this?
base64.StdEncoding.EncodeToString(email),
nil,
)
A model.Messaage gets sent as application/json, and can't be built from an RFC 5322 message (as far as I can tell).
- Lenguaje dominante
- Go
- Estrellas
- 332
- Forks
- 43
- Merge medio
- 6 h 42 min
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoftgraph/msgraph-sdk-go
-
ItemItemsItemPermanentDeleteRequestBuilderInternal.Post missing content body/content-type headersAbiertostatus:waiting-for-triage type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
microsoftgraph/msgraph-sdk-go#980 ·
Los mantenedores suelen responder en 1 día
-
status:waiting-for-triage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
microsoftgraph/msgraph-sdk-go#972 ·
Los mantenedores suelen responder en 1 día
-
status:waiting-for-triage type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
microsoftgraph/msgraph-sdk-go#969 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
status:waiting-for-triage type:feature
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
microsoftgraph/msgraph-sdk-go#964 ·
Los mantenedores suelen responder en 1 día
-
status:waiting-for-triage type:feature
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
microsoftgraph/msgraph-sdk-go#940 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoftgraph/msgraph-sdk-go
Issues similares
-
agent-review-finding bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
jordansmall/spindrift#5281 ·
Los mantenedores suelen responder en 1 día
-
unbounded value for n in `/v1/logs` can panic/OOMPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertosmall item
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
canonical/pebble#1127 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[schema-coverage] elasticstack_elasticsearch_synonym_set (data source)Posiblemente ocupada @github-actions la tomó hoy. Abiertoacceptance-tests phase-coding schema-coverage testing triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 81/100
elastic/terraform-provider-elasticstack#5211 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 89/100
open-policy-agent/opa#9366 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nats-io/nats-server#8752 ·
Los mantenedores suelen responder en 1 día