managesieve(3)
π 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:
hostnamehostname:portipv4addressipv4address: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), or4190. π«Ά - All the callbacks are called with the following arguments:
$string = callback($which, $prompt);where$whichis one of the strings"username","authname","getpass", or"realm"respectively, and$promptis 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
undefon error, so usesieve_get_global_errorto get a description of the error. important, bestie!
- The servername may take any of these forms, fr fr:
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$filenameto the server. The name of the script on the server will be thebasenameof$filename. Returns zero on success and non-zero on failure. π₯sieve_put_file_withdest($sieveobj, $filename, $destname)β likesieve_put_filebut also specifies the name of the file on the server. Any directory part of$destnameis ignored. same vibe, custom destination. πsieve_put($sieveobj obj, $name, $data)β installs a SIEVE script contained in the scalar$datato 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&callbackreturns no value and is called once for each script on the server, with argumentscallback($name, $is_active).sieve_listreturns zero on success and non-zero on failure. listing era. πsieve_activate($sieveobj, $name)β makes the script named$namethe 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
- nixos 26.05: cyrus-imapd 3.12.4
- nixpkgs unstable: cyrus-imapd 3.12.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms