MIME-Fast
view release on metacpan or search on metacpan
Fast/Hash.xs view on Meta::CPAN
void
hash_FETCH(obj, key)
MIME::Fast::Hash::Header obj
const char * key
PREINIT:
MIME__Fast__Message msg;
GList *gret = NULL, *item;
AV * retav;
I32 gimme = GIMME_V;
PPCODE:
msg = obj->objptr;
/* THE HACK - FETCH method would get value indirectly from NEXTKEY */
if (obj->keyindex != -1 && obj->fetchvalue != NULL) {
XPUSHs(sv_2mortal(newSVpv(obj->fetchvalue,0)));
obj->fetchvalue == NULL;
XSRETURN(1);
}
obj->fetchvalue = NULL;
Fast/Hash.xs view on Meta::CPAN
char * value = NULL;
MIME__Fast__Message msg;
I32 gimme = GIMME_V;
gint i, j, found;
local_GMimeHeader * header;
struct raw_header *h;
INIT:
if (ix == 1) {
obj->keyindex = -1;
}
PPCODE:
msg = obj->objptr;
++obj->keyindex;
if (gmime_debug)
warn("hash_NEXTKEY");
i = obj->keyindex;
header = GMIME_OBJECT(msg)->headers;
h = header->headers;
j = 0;
found = 0;
Fast/Message.xs view on Meta::CPAN
# returns scalar string or array (date, gmt_offset)
#
void
g_mime_message_get_date(message)
MIME::Fast::Message message
PREINIT:
time_t date;
int gmt_offset;
I32 gimme = GIMME_V;
char * str;
PPCODE:
if (gimme == G_SCALAR) {
str = g_mime_message_get_date_string(message);
if (str) {
XPUSHs(sv_2mortal(newSVpv(str,0)));
g_free (str);
}
} else if (gimme == G_ARRAY) {
g_mime_message_get_date(message, &date, &gmt_offset);
XPUSHs(sv_2mortal(newSVnv(date)));
XPUSHs(sv_2mortal(newSViv(gmt_offset)));
Fast/MessageDelivery.xs view on Meta::CPAN
# returns scalar string or array (date, gmt_offset)
#
void
g_mime_message_delivery_get_arrival_date(delivery)
MIME::Fast::MessageDelivery delivery
PREINIT:
time_t date;
int gmt_offset;
I32 gimme = GIMME_V;
char * str;
PPCODE:
if (gimme == G_SCALAR) {
str = g_mime_message_delivery_get_arrival_date_string(delivery);
if (str) {
XPUSHs(sv_2mortal(newSVpv(str,0)));
g_free (str);
}
} else if (gimme == G_ARRAY) {
g_mime_message_delivery_get_arrival_date(delivery, &date, &gmt_offset);
XPUSHs(sv_2mortal(newSVnv(date)));
XPUSHs(sv_2mortal(newSViv(gmt_offset)));
Fast/MessageDelivery.xs view on Meta::CPAN
#
void
g_mime_message_delivery_get_rcpt_last_attempt_date(delivery, rcpt_index)
MIME::Fast::MessageDelivery delivery
int rcpt_index
PREINIT:
time_t date;
int gmt_offset;
I32 gimme = GIMME_V;
char * str;
PPCODE:
if (gimme == G_SCALAR) {
str = g_mime_message_delivery_get_rcpt_last_attempt_date_string(delivery, rcpt_index);
if (str) {
XPUSHs(sv_2mortal(newSVpv(str,0)));
g_free (str);
}
} else if (gimme == G_ARRAY) {
g_mime_message_delivery_get_rcpt_last_attempt_date(delivery, rcpt_index, &date, &gmt_offset);
XPUSHs(sv_2mortal(newSVnv(date)));
XPUSHs(sv_2mortal(newSViv(gmt_offset)));
Fast/MessageDelivery.xs view on Meta::CPAN
#
void
g_mime_message_delivery_get_rcpt_will_retry_until(delivery, rcpt_index)
MIME::Fast::MessageDelivery delivery
int rcpt_index
PREINIT:
time_t date;
int gmt_offset;
I32 gimme = GIMME_V;
char * str;
PPCODE:
if (gimme == G_SCALAR) {
str = g_mime_message_delivery_get_rcpt_will_retry_until_string(delivery, rcpt_index);
if (str) {
XPUSHs(sv_2mortal(newSVpv(str,0)));
g_free (str);
}
} else if (gimme == G_ARRAY) {
g_mime_message_delivery_get_rcpt_will_retry_until(delivery, rcpt_index, &date, &gmt_offset);
XPUSHs(sv_2mortal(newSVnv(date)));
XPUSHs(sv_2mortal(newSViv(gmt_offset)));
Fast/MessageDelivery.xs view on Meta::CPAN
const char * name
void
g_mime_message_delivery_status_to_string(status)
const char * status
PREINIT:
const char * class_code;
const char * class_detail;
PPCODE:
class_detail = g_mime_message_delivery_status_to_string(status, &class_code);
XPUSHs(sv_2mortal(newSVpv(class_code, 0)));
XPUSHs(sv_2mortal(newSVpv(class_detail, 0)));
Fast/MultiPart.xs view on Meta::CPAN
void
children(mime_multipart, ...)
MIME::Fast::MultiPart mime_multipart
ALIAS:
MIME::Fast::MultiPart::parts = 1
PREINIT:
GList * child;
IV partnum = -1;
I32 gimme = GIMME_V;
gint count = 0;
PPCODE:
if (items == 2) {
partnum = SvIV(ST(1));
}
if (GMIME_IS_MULTIPART (mime_multipart)) {
for (child = GMIME_MULTIPART (mime_multipart)->subparts; child && child->data; child = child->next, ++count) {
SV * part;
if (gmime_debug)
warn(" ** children 0x%x\n", child->data);
if (items == 1 && gimme == G_SCALAR)
continue;
( run in 1.445 second using v1.01-cache-2.11-cpan-5511b514fd6 )