---
name: "Sendpage::Queue"
section: "3pm"
platform: "linux"
package: "sendpage-common"
version: "1.0.3-1.1"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/Sendpage::Queue"
---

# Sendpage::Queue(3pm)

implements a simple directory-based file queue

## NAME

Queue.pm - implements a simple directory-based file queue

## SYNOPSIS

```
    $queue=Sendpage::Queue->new($dir);
    while ($queue->ready()) {
        $filename=$queue->file();
        $fh=$queue->getReadyFile();
        if ($can_remove_file) {
                $queue->fileToss();
        }
        else {
                $queue->fileDone();
        }
    }
    # open a new queue file
    $fh=$queue->getNewFile();
    # ... do things to the file handle here
    # release the file
    $queue->doneNewFile();
```

## DESCRIPTION

This is a module for use in [**sendpage**(1)](/sendpage/1.md).

## BUGS

Need to write more docs.

## AUTHOR

Kees Cook \<kees@outflux.net\>

## SEE ALSO

[**perl**(1)](/perl/1.md), [**sendpage**(1)](/sendpage/1.md), **Sendpage::KeesConf**(3), **Sendpage::KeesLog**(3), **Sendpage::Modem**(3), **Sendpage::PagingCentral**(3), **Sendpage::PageQueue**(3), **Sendpage::Page**(3), **Sendpage::Recipient**(3)

## COPYRIGHT

Copyright 2000 Kees Cook.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
