---
name: "CiderWebmail::Part"
section: "3pm"
platform: "linux"
package: "ciderwebmail"
version: "1.05+20240702-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CiderWebmail::Part"
---

# CiderWebmail::Part(3pm)

### main\_body\_part()

Returns the main body part for using when forwarding/replying the message.

### body()

returns the body of the part unless body({ raw =\> 1}) is specified converting the body to utf-8 will be attempted

### \_decode\_body()

attempt a best-effort `$charset` to utf-8 conversion

### part\_id()

returns the part\_id of the part

### body\_id()

returns the body\_id of the part or undef

### guess\_recipient()

Tries to guess the recipient address used to deliver this message to this mailbox. Used for suggesting a From address on reply/forward.

### handler()

returns a CiderWebmail::Part::FooBar object for the specified part

### icon() {

returns the name of a icon representing the content type fo the part

### render()

render a CiderWebmail::Part. just a stub - override in CiderWebmail::Part::FooBar

### cid()

returns the Content-ID of the part

### content\_type()

returns the content type of the CiderWebmail::Part

### name()

returns the name of the part or "(attachment\|part) content/type"

### file\_name()

returns a best-guess file\_name if one was supplied or undef

### is\_attachment()

returns true if the body disposition indicates it is an attachment

### bodydisp()

returnes the body disposition hash (if it exists) or undef

### attachment()

returns true if the bodydisp indicates it is a attachment

### bodyparms()

returnes the bodyparms hash (if it exists) or undef

### uri\_download

returns an http url to access the part

### uri\_render

returns an http url to render the part

### is\_root\_part

returns true if this part is the root part (RFC822 message)
