---
name: "IM::Imap"
section: "3pm"
platform: "linux"
package: "im"
version: "1:153-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/IM::Imap"
---

# IM::Imap(3pm)

IMAP handler

## NAME

IM::Imap - IMAP handler

## SYNOPSIS

```
 use IM::Imap;
 imap_open(auth, host, user, pass)
     return value:
          0: success
         -1: failure
```

Other subroutines: imap\_select imap\_head imap\_get imap\_put imap\_delete imap\_get\_msg imap\_spec imap\_range2set imap\_folder\_regname imap\_scan\_folder  imap\_open\_folders imap\_close\_folders imap\_get\_handle imap\_get\_message imap\_put\_message imap\_put\_file imap\_refile imap\_delete\_message

## DESCRIPTION

The *IM::Imap* module handles IMAP.

This modules is provided by IM (Internet Message).

## EXAMPLES

```
  my($rc, $HANDLE) = imap_open($auth, $host, $user, $pass);
  if ($rc < 0) {
      exit 1;
  }
  imap_close($HANDLE);
```

## COPYRIGHT

IM (Internet Message) is copyrighted by IM developing team. You can redistribute it and/or modify it under the modified BSD license.  See the copyright file for more details.
