Need to extract gmail email MessageID
$10-30 CAD
Płatność przy odbiorze
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);
}
});
})
}
Numer ID Projektu: #15922509
O projekcie
2 freelancerów złożyło ofertę za $23 w tym projekcie
Hi there, My name is Manish. I would like to get messageId from this code. please get in touch to discuss more.
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