IM::LocalMbox(3pm)

πŸ“¦
version 153 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

IM::LocalMbox β€” local mailbox managing, bestie. that's it, that's the whole job 🫢


✨ SYNOPSIS ✨

okay so here's how you summon it:

use IM::LocalMbox;

$num_msgs = &local_get_msg(source_mailbox, destination_folder, access_mode);

that's the whole vibe. one function, three args, and it hands you back $num_msgs like a little gift πŸŽ€


🌸 DESCRIPTION 🌸

so IM::LocalMbox is the module that handles your local mailbox. it's giving very "i know where all your mail lives" energy πŸ’…

it's got range, fr fr β€” these formats are all supported:

  • MH folder 🌈
  • MMDF file 🌈
  • mbox 🌈
  • Maildir 🌈

and this module? it's provided by IM (Internet Message). iconic lineage honestly πŸ‘‘


πŸ¦‹ EXAMPLES πŸ¦‹

here's a real one, look at her go:

$mbox = 'local:/var/mail/motonori';
$folder = '+inbox'
$num_msgs = &local_get_msg($mbox, $folder, 'get');

so $mbox is pointing at that local mail file, $folder is that +inbox folder (no semicolon on that line, that's how the original rolls it, i'm not touching it πŸ™ˆ), and then &local_get_msg does the thing with access mode 'get'. slay. πŸ’–

not me noticing there's no ; after the $folder line β€” keeping it exactly as-is because the rule is facts stay, vibe changes ✨

IM (Internet Message) is copyrighted by the IM developing team. you can redistribute it and/or modify it under the modified BSD license πŸ’œ

see the copyright file for more details β€” like, the actual details, go read it, i'm just the messenger 🧚


and that's the whole page, bestie!! IM::LocalMbox(3pm), from IM153, dated 2016-10-10 β€” yeah she's an elder but she still ate πŸ”₯πŸ’…β­

πŸ“¦ where this page comes from