esi-issues icon indicating copy to clipboard operation
esi-issues copied to clipboard

Create Mail endpoint is missing minimum and maximum lengths

Open cvweiss opened this issue 4 months ago • 3 comments

Bug

https://esi.evetech.net/characters/{character_id}/mail

The documentation at https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdMail does not include maximum length for the subject and body field. The values should be 150 characters for subject and 8000 characters for body.

Minimum length is also missing, presumed to be >= 1.

For reference, recipients does have limitations >= 1 items and <= 50 items documented.

cvweiss avatar Aug 11 '25 21:08 cvweiss

Issue can be transferred to esi-issues, as it relates to ESI docs, which are out of scope for this repo, as weird as it sounds given the name of this repo for third party development docs. @steven-noorbergen

Nohus avatar Aug 11 '25 21:08 Nohus

This was a bug in the conversion from Swagger to OpenAPI, and is now corrected.

However, your values do not match with the one in the specs. Subject should be <= 1000 chars, and body <= 10000 chars. So I will have to check what are actually the correct values :)

ccp-pinky avatar Sep 01 '25 15:09 ccp-pinky

@ccp-pinky

ESI enforces a limit of max 10000 characters, but this does not seem to match in-game, where the limit is 8000. Trying to send a mail with 9999 characters results in the following:

Image

The window opens successfully, but the body is cut at 8597 characters (and the game UI shows it as being over the 8000 limit).

Also, it seems the in-game window is counting characters in some non-standard way. For example, when you send this string:

<url=opportunity:freelance_projects:563055f7-fd34-469e-a3b7-4ffd5e05056e>Mine some ore</url>

It is 93 characters long, but in-game it results in 181 characters being counted:

Image

Nohus avatar Nov 29 '25 15:11 Nohus