local conf_num = tonumber(mf:read(7))
msg.date = mf:read(8)
msg.time = mf:read(5)
- msg.to = string.lower(string.gsub(mf:read(25), " ", ""))
+ msg.to = string.lower(string.gsub(mf:read(25), " *$", ""))
mf:read(25) -- take user name from provided user name instead
msg.from = string.lower(string.sub(user_name, 1, 25))
- msg.subject = string.gsub(mf:read(25), " ", "")
+ msg.subject = string.gsub(mf:read(25), " *$", "")
mf:read(12) -- Password (unused)
msg.replyto = tonumber(mf:read(8))
append_new_msg(conf_num, msg)
print("Processed message for conference " .. qb.conferences[conf_num+1] .. ".")
-
- -- print("Message{")
- -- for k,v in pairs(msg) do
- -- print("\t" .. k .. "=\'" .. v .. "',")
- -- end
- -- print("}")
end
--- Commands ---