MultipartSigned

A multipart/signed MIME part.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new MIME multipart/signed object.

Members

Functions

self
MultipartSigned self()

Returns this, for use in with statements.

verify
gmime.signature_list.SignatureList verify(gmime.types.VerifyFlags flags)

Attempts to verify the signed MIME part contained within the multipart/signed object mps.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
MultipartSignedGidBuilder builder()

Get builder for gmime.multipart_signed.MultipartSigned

sign
gmime.multipart_signed.MultipartSigned sign(gmime.crypto_context.CryptoContext ctx, gmime.object.ObjectWrap entity, string userid)

Attempts to sign the content MIME part with userid's private key using the ctx signing context. If successful, a new multipart/signed object is returned.

Inherited Members

From Multipart

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Multipart self()

Returns this, for use in with statements.

builder
MultipartGidBuilder builder()

Get builder for gmime.multipart.Multipart

newWithSubtype
gmime.multipart.Multipart newWithSubtype(string subtype)

Creates a new MIME multipart object with a content-type of multipart/subtype.

add
void add(gmime.object.ObjectWrap part)

Appends a mime part to multipart.

clear
void clear()

Removes all subparts from multipart.

contains
bool contains(gmime.object.ObjectWrap part)

Checks if part is contained within multipart.

foreach_
void foreach_(gmime.types.ObjectForeachFunc callback)

Recursively calls callback on each of multipart's subparts.

getBoundary
string getBoundary()

Gets the boundary on the multipart. If the internal boundary is null, then an auto-generated boundary will be set on the multipart and returned.

getCount
int getCount()

Gets the number of parts contained within multipart.

getEpilogue
string getEpilogue()

Gets the epilogue on the multipart.

getPart
gmime.object.ObjectWrap getPart(int index)

Gets the part at the specified index within the multipart.

getPrologue
string getPrologue()

Gets the prologue on the multipart.

getSubpartFromContentId
gmime.object.ObjectWrap getSubpartFromContentId(string contentId)

Gets the mime part with the content-id content_id from the multipart multipart.

indexOf
int indexOf(gmime.object.ObjectWrap part)

Gets the 0-based index of part within multipart.

insert
void insert(int index, gmime.object.ObjectWrap part)

Inserts part into multipart at the specified index.

remove
bool remove(gmime.object.ObjectWrap part)

Removes the specified part from multipart.

removeAt
gmime.object.ObjectWrap removeAt(int index)

Removes the part at the specified index from multipart.

replace
gmime.object.ObjectWrap replace(int index, gmime.object.ObjectWrap replacement)

Replaces the part at the specified index within multipart with replacement.

setBoundary
void setBoundary(string boundary)

Sets boundary as the boundary on the multipart. If boundary is null, then a boundary will be auto-generated for you.

setEpilogue
void setEpilogue(string epilogue)

Sets the epilogue on the multipart.

setPrologue
void setPrologue(string prologue)

Sets the prologue on the multipart.