Suljettu

Need to extract gmail email MessageID

The following block of code is extracting the unique gmail email id by looking at the elements. I need someone who can read this code and tell me how I can read the message id manually

Most likely the code you want to focus is this one

var mail_id = $(this).parents(".gs .gE").parent().find(".ii .a3s[class*=m]").attr("class").split(" ")[2].slice(1);

Here is the complete block of code

$(".ext_download").remove();

if ($(".gH .gK").length > 0 && $(".ext_download").length < $(".gH .gK").length) {

$(".gs .gE").parent().find(".ii .a3s[class*=m]").each(function () {

var div_el = $('<div />', { 'class': 'ext_download', 'title': 'File email to WorkSite' });

var msg_id = $(this).attr("class").split(" ")[2].slice(1);

mail_status[msg_id] = !mail_status[msg_id] ? { type: '' } : mail_status[msg_id];

var span_el = $('<span />', { 'class': mail_status[msg_id]['type'] });

[login to view URL](span_el);

[login to view URL]('File');

[login to view URL]('click', function (e) {

var mail_id = $(this).parents(".gs .gE").parent().find(".ii .a3s[class*=m]").attr("class").split(" ")[2].slice(1);

var mail_content = originalContentUrl + "?ui=2&ik=" + ik_value + "&view=om&th=" + mail_id;

pushMessage(mail_id, function (response) {

mail_status[mail_id] = {};

switch ([login to view URL]) {

case 2: mail_status[mail_id] = { 'type': 'success', 'msg': 'Success' }; break;

case 1: mail_status[mail_id] = { 'type': 'waiting', 'msg': 'Waiting' }; break;

case 0: mail_status[mail_id] = { 'type': 'error', 'msg': 'Error' }; break;

}

isMailsDownloaded = true;

if ([login to view URL]) {

var file_name = "MacroAgility_" + [login to view URL] + "_" + mail_id;

mail_content = originalContentUrl + '?view=att&th=' + mail_id + '&attid=0&disp=comp&safe=1&zw';

downloadURL(mail_content, file_name, false, function () {

// [login to view URL](arguments);

}, 'eml_download');

}

}, true, [login to view URL]);

[login to view URL]();

[login to view URL]();

[login to view URL]();

return false;

});

$(this).parent().parent().find(".gH .gK").each(function () {

if ($(this).find('.ext_download').length == 0) {

$(this).append(div_el);

}

});

})

}

Taidot: CSS3, Java, jQuery / Prototype

Näytä lisää: need gmail addresses follow format, need gmail pva, extract gmail email addresses, gmail api read email, gmail api userid, gmail message id format, gmail api get attachment, gmail api get headers, gmail api message body, gmail api message id, gmail api list messages, need gmail account creator captcha reader ocr, need gmail accounts bulk unique, need gmail accounts getafreelancer, need extract yellowpages data email, need gmail account use tube, need gmail accounts hippy100, need gmail account youtube, need gmail provider, need gmail account creator

Tietoa työnantajasta:
( 7 arvostelua ) Vaughan, Canada

Projektin tunnus: #15922509

2 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

rohitagarberg

Hi there, My name is Manish. I would like to get messageId from this code. please get in touch to discuss more.

$25 CAD 1 päivässä
(81 arvostelua)
5.8
jahurul1

Hello sir, I am a well known web developer. I can read the code and tell you what you want. I hope you will contact me. Thanks

$20 CAD 1 päivässä
(0 arvostelua)
0.0