Is there any workaround or way to filter or search for messages that have no subject line?
I can see there is no way to filter messages when some field is "missing".
Is there any workaround or way to filter or search for messages that have no subject line?
I can see there is no way to filter messages when some field is "missing".
You can consider writing a Google Script that will extract all emails with blank attachments. The script will be something like this:
var thread = GmailApp.getInboxThreads(0,1)[0];
var message = thread.getMessages()[0];
if (message.getSubject() == "") {
Logger.log(message.getID());
}
I tried to do this through the Google Script, but it can only process letters from the Inbox folder. And most likely there is a limit of 500 letters.
function findNoSubject() {
var labelName = "nosubject";
var label = GmailApp.createLabel(labelName);
var threads = GmailApp.getInboxThreads();
for (var i = 0; i < threads.length; i++) {
var message = threads[i].getMessages()[0];
if (message.getSubject() == "") {
label.addToThread(threads[i]);
}
}
}
subject:(subject:"") does the trick for me