---
name: "Debbugs::CGI::Bugreport"
section: "3pm"
platform: "linux"
package: "libdebbugs-perl"
version: "2.6.4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Debbugs::CGI::Bugreport"
---

# Debbugs::CGI::Bugreport(3pm)

## NAME

Debbugs::CGI::Bugreport -- specific routines for the bugreport cgi script

## SYNOPSIS

## DESCRIPTION

## BUGS

None known.

### display\_entity

```
     display_entity(entity      => $entity,
                    bug_num     => $ref,
                    outer       => 1,
                    msg_num     => $msg_num,
                    attachments => \@attachments,
                    output      => \$output);
```

- entity -- MIME::Parser entity

  - bug\_num -- Bug number

  - outer -- Whether this is the outer entity; defaults to 1

  - msg\_num -- message number in the log

  - attachments -- arrayref of attachments

  - output -- scalar reference for output

  ### handle\_email\_message

```
     handle_email_message($record->{text},
                          ref        => $bug_number,
                          msg_num => $msg_number,
                         );
```

Returns a decoded e-mail message and displays entities/attachments as appropriate.

### handle\_record

```
     push @log, handle_record($record,$ref,$msg_num);
```

Deals with a record in a bug log as returned by Debbugs::Log::read\_log\_records; returns the log information that should be output to the browser.
