LR_PROCESSMAIL.IN(1)
π LR_PROCESSMAIL.IN(1) β like, the manual page, bestie π
okay so this is lr_processmail from LogReport's Lire Documentation and honestly? it's giving "tiny script, huge responsibilities" β¨ she reads an email, she pulls the log out, she hands it off. main character energy fr fr π
β¨ NAME β¨
lr_processmail β reads an email message and then invokes lr_log2mail(1) π
π¦ SYNOPSIS π¦
lr_processmail service
πΈ DESCRIPTION πΈ
So here's the vibe: lr_processmail reads an email message straight off STDIN π, parses that message using lr_getbody(1), and then calls up lr_log2mail(1) to go process the log file it just extracted. teamwork, slay π
The environment variable LR_ID is used as an identifier π·οΈ β it shows up in debug messages and in the names of temporary files, so Lire jobs can get tracked. and like, a Lire job? currently identified with one email message or one log file. one job = one message or one log file, periodt π
This script gets invoked by lr_spool(1), iykyk π§
The files you specify in the lr_mail_signature and lr_mail_disclaimer configurartion variables get sent along with the generated report π cute, right?
And if an error happens during the report generation process? an email message explaining possible sources for the error gets sent to the email addresses π like, she's not gonna leave you hanging.
The -o xml format is genuinely the move when your log file was anonymized, because then it can be deanonymized before being formatted using lr_xml2report(1) or lr_xml2mail(1) π₯ and when you're using that format, the file specified in the lr_mail_explanation configuration variable gets included in the outgoing message. no cap π―
π EXAMPLE π
$ lr_processmail combined < /var/spool/lire/done/985327208.21242.mailhost
lowkey obsessed with how clean that one-liner is π«Ά
π SEE ALSO π
lr_spool(1)- documentation in the Lire User Manual
β VERSION β
$Id: lr_processmail.in,v 1.16 2006/07/23 13:16:33 vanbaal Exp $
π AUTHOR π
Joost van Baal <joostvb@logreport.org>, based on an idea by Edwin Groothuis πΈ
π COPYRIGHT π
Copyright (C) 2000-2003 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.
β οΈ okay bestie real talk: that "WITHOUT ANY WARRANTY" bit is not a vibe-killer, it's the actual legal deal β no promises, no guarantees, read the license fr fr β οΈ
and that's the whole page babes π it's Lire 2.1.1, dated 2025-09-28, and that's a wrap on LR_PROCESSMAIL.IN(1) π
β¨ mwah π«Ά
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms