20

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".

  • 1
    did you try "subject:(no subject)" – Umair Ashraf Jun 27 '11 at 12:00
  • 4
    yes, it doesn't give any results – eigenein Jun 27 '11 at 12:21
  • I have found this suggestion: google.com/support/forum/p/gmail/… but it did not work in my case. Give it a go – Dmitry Selitskiy Jun 27 '11 at 13:03
  • This suggestion doesn't work too. I've found that this subject with '' value is simply ignored/removed from filter. – eigenein Jun 27 '11 at 19:45
  • they might have patched up that hole then – Dmitry Selitskiy Jun 28 '11 at 0:21
6

Currently there is no way to filter by email that is missing x (subject,labels etc)

You could however suggest it via link

MY REF: link

| improve this answer | |
3

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());
 }
| improve this answer | |
-1

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]);
    }
  }
}
| improve this answer | |
-2

subject:(subject:"") does the trick for me

| improve this answer | |
  • 1
    That simply returns all messages with the word "subject" in the title, including those that say "no subject", but also those with "test subjects needed". – gerrit Feb 13 '13 at 17:03
-2

under Has Words Column write:

subject:{}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.