managesieve(3)

πŸ“¦ version 3.12.4, in nixos 26.05, nixpkgs unstable

πŸ’– NAME β€” managesieve(3) πŸ’–

okay bestie, you're on the managesieve(3) page from User Contributed Perl Documentation, and the module is Cyrus::SIEVE::managesieve β€” a Perl client for the SIEVE protocol. slay. πŸ’…

✨ SYNOPSIS ✨

use Cyrus::SIEVE::managesieve;

πŸ¦‹ DESCRIPTION πŸ¦‹

This is a Perl module that gives you a client for the SIEVE protocol. It supports SASL authentication and communication encryption, using the Cyrus SASL infrastructure. iconic, honestly. ✨

It provides the following functions. πŸ‘‘

  • sieve_get_handle($servername, &username_cb, &authname_cb, &password_cb, &realm_cb) β€” creates and returns a new Sieve object you can use for communicating with the SIEVE server. The server is connected to and a login sequence is performed, using some combination of the given callbacks to fetch from the calling program any data needed for authentication. main character energy.
    • The servername may take any of these forms, fr fr:
      • hostname
      • hostname:port
      • ipv4address
      • ipv4address:port
      • [ipv6address]
      • [ipv6address]:port
    • If not explicitly specified in the servername, the port defaults to the port named "sieve" in the client machine's service database (for example the "/etc/services" files), or 4190. 🫢
    • All the callbacks are called with the following arguments: $string = callback($which, $prompt); where $which is one of the strings "username", "authname", "getpass", or "realm" respectively, and $prompt is a human-readable English language prompt string for the user's benefit. Each callback should return a string containing the required information. πŸ’–
    • The function will return undef on error, so use sieve_get_global_error to get a description of the error. important, bestie!
  • sieve_get_error($sieveobj) β€” returns a human-readable English language string describing the last error encountered on the object $sieveobj. oof, error lore. πŸ’”
  • sieve_get_global_error() β€” returns a human-readable English language string describing the last error encountered while creating a Sieve object. global error check, no cap. ⚠️
  • sieve_logout($sieveobj) β€” logs out from the SIEVE server.
after this, $sieveobj will become unusable. do not touch it after logout, bestie. πŸ’€
  • sieve_put_file($sieveobj, $filename) β€” installs a SIEVE script contained in a local file named by $filename to the server. The name of the script on the server will be the basename of $filename. Returns zero on success and non-zero on failure. πŸ“₯
  • sieve_put_file_withdest($sieveobj, $filename, $destname) β€” like sieve_put_file but also specifies the name of the file on the server. Any directory part of $destname is ignored. same vibe, custom destination. πŸŽ€
  • sieve_put($sieveobj obj, $name, $data) β€” installs a SIEVE script contained in the scalar $data to the server, with the script name $name. Returns zero on success and non-zero on failure. 🧚
  • sieve_delete($sieveobj obj, $name) β€” removes a SIEVE script from the server. Returns zero on success and non-zero on failure. πŸ—‘οΈ
  • sieve_list($sieveobj obj, &callback) β€” lists existing SIEVE scripts on the server. The &callback returns no value and is called once for each script on the server, with arguments callback($name, $is_active). sieve_list returns zero on success and non-zero on failure. listing era. πŸ“‹
  • sieve_activate($sieveobj, $name) β€” makes the script named $name the active script on the server. Only one script is active at a time; activating a script de-activates any others. Returns zero on success and non-zero on failure. one active script at a time, periodt. πŸ‘‘
  • sieve_get($sieveobj, $name, $output) β€” retrieves the SIEVE script named <$name> from the server, and stores it in the scalar $output. Returns zero on success and non-zero on failure. grab that script. πŸ“

πŸŽ€ AUTHOR πŸŽ€

Big shoutout to T. Martin, tmartin@andrew.cmu.edu. πŸ’–

🌈 SEE ALSO 🌈

RFC5804, A Protocol for Remotely Managing Sieve Scripts. go read it, iykyk. πŸ“–βœ¨

okay that's the whole vibe β€” this was managesieve(3) from perl v5.42.3, dated 1980-01-01. bye bestie 🫢✨

πŸ“¦ where this page comes from