LR_PROCESSMAIL.IN(1)

πŸ“¦ version 2.1.1, in arch rolling

πŸ’Œ 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 πŸ‘‘


⭐ 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 (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