|
|
|
@ -185,19 +185,18 @@ class MailRoom(Bureau):
|
|
|
|
|
|
|
|
|
|
msg = self._make_msg_object(imap_id, resp)
|
|
|
|
|
|
|
|
|
|
# TODO: switch this to inline svgs
|
|
|
|
|
# make action barcodes
|
|
|
|
|
msg.un_bc = os.path.join("/tmp", "POun." + shortcode + ".png")
|
|
|
|
|
msg.un_bc = os.path.join("/tmp", "POun." + shortcode + ".svg")
|
|
|
|
|
kode256.image("POun." + shortcode).save(msg.un_bc)
|
|
|
|
|
msg.d_bc = os.path.join("/tmp", "POd." + shortcode + ".png")
|
|
|
|
|
msg.d_bc = os.path.join("/tmp", "POd." + shortcode + ".svg")
|
|
|
|
|
kode256.image("POd." + shortcode).save(msg.d_bc)
|
|
|
|
|
msg.sp_bc = os.path.join("/tmp", "POsp." + shortcode + ".png")
|
|
|
|
|
msg.sp_bc = os.path.join("/tmp", "POsp." + shortcode + ".svg")
|
|
|
|
|
kode256.image("POsp." + shortcode).save(msg.sp_bc)
|
|
|
|
|
msg.re_bc = os.path.join("/tmp", "POre." + shortcode + ".png")
|
|
|
|
|
msg.re_bc = os.path.join("/tmp", "POre." + shortcode + ".svg")
|
|
|
|
|
kode256.image("POre." + shortcode).save(msg.re_bc)
|
|
|
|
|
msg.rea_bc = os.path.join("/tmp", "POrea." + shortcode + ".png")
|
|
|
|
|
msg.rea_bc = os.path.join("/tmp", "POrea." + shortcode + ".svg")
|
|
|
|
|
kode256.image("POrea." + shortcode).save(msg.rea_bc)
|
|
|
|
|
msg.r_bc = os.path.join("/tmp", "POr." + shortcode + ".png")
|
|
|
|
|
msg.r_bc = os.path.join("/tmp", "POr." + shortcode + ".svg")
|
|
|
|
|
kode256.image("POr." + shortcode).save(msg.r_bc)
|
|
|
|
|
|
|
|
|
|
self.print_full("email.html", msg=msg, shortcode=shortcode)
|
|
|
|
|