---
name: "Sendpage::PageQueue"
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::PageQueue"
---

# Sendpage::PageQueue(3pm)

extends the Queue module, adding the Page module smarts

## NAME

PageQueue.pm - extends the Queue module, adding the Page module smarts

## SYNOPSIS

```
    $pqueue=Sendpage::PageQueue($config);
    # read waiting pages
    while ($fh=$pqueue->getPage($db)) {
        # build up $page
        @stuff=$pqueue->pullPageFromFile($db,$fh);
        $page=Sendpage::Page->new(@stuff);
        # do something to change $page
        # write changes back to queue
        $pqueue->writePage($page);
        $pqueue->fileDone();
    }
    # add a new page
    $fh=$pqueue->addPage($page);
```

## DESCRIPTION

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

## BUGS

Obviously, needs 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::Page**(3), **Sendpage::Recipient**(3), **Sendpage::Queue**(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.
