fix(rodex): sent mail loses the last character of title and body

Open Beginner friendly
#4,456 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@baphomello is already working on this.

Since Nov 25, 2026.

  • #4457 by @baphomello — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
perl
Domain
backend

Research direction

The send path is in src/Network/Send/kRO/RagexeRE_2016_07_06c.pm, where rodex_send_mail builds the packet without the terminating NUL, and the generic version is in src/Network/Send.pm. Compare the length fields in both with the rAthena clif.cpp reference from the issue, then check the RODEX packet tests if any exist. Done when the title and body arrive intact, confirmed by sending LabTitle/LabBody and reading back the mail table.

Written by the indexing model from the issue text.

Description

Openkore version git

OpenKore master fb31a9cb7

XKore Mode

XKore 0

RO Server Name

Local rAthena, using the kRO_RagexeRE_2021_11_03 server type

Link to RO server

rAthena, running locally

Result

Every RODEX mail sent by OpenKore loses the last character of its title and body. The rodex_send_mail of RagexeRE_2016_07_06c, used by kRO RagexeRE 2016-07-06c and later and by laRO, sends them without the terminating NUL (RagexeRE_2016_07_06c.pm). rAthena copies title_len - 1 characters (clif.cpp). The client counts the NUL in both lengths (RODecomp), and so does the generic Network::Send::rodex_send_mail (Send.pm).

Relevant Log Output

Sent with rodex settitle / rodex setbody, stored in the mail table:

title 'LabTitle'                  body 'LabBody' -> 'LabTitl'                 'LabBod'
title 'Abcd'                      body 'x'       -> 'Abc'                     ''
title 'ABCDEFGHIJKLMNOPQRSTUVWX'                 -> 'ABCDEFGHIJKLMNOPQRSTUVW'
Expected Result

The title and body as written.

How to Reproduce
  1. rodex open, then rodex write <name>.
  2. rodex settitle LabTitle, rodex setbody LabBody, rodex send.
  3. The receiver gets LabTitl / LabBod.
Dominant language
Perl
Stars
1.5k
Forks
1.2k
Avg merge
12h 24m
Merged PRs (30d)
144

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenKore/openkore

All issues in OpenKore/openkore

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.