38 local id = day .. "-" .. hmac_sha256(username.."@"..day.."+"..offset, data, true):sub(-16); |
38 local id = day .. "-" .. hmac_sha256(username.."@"..day.."+"..offset, data, true):sub(-16); |
39 ok, err = dm.list_append(username.."@"..day, module.host, self.store, { id = id, when = dt.datetime(when), with = with, offset = offset, length = #data }); |
39 ok, err = dm.list_append(username.."@"..day, module.host, self.store, { id = id, when = dt.datetime(when), with = with, offset = offset, length = #data }); |
41 -- means the message is at the beginnig of the file, so it's a new day |
41 -- means the message is at the beginnig of the file, so it's a new day |
43 dm.list_append(username, module.host, self.store, day); |
43 ok, err = dm.list_append(username, module.host, self.store, day); |