Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How can I create a filter for an exact set of characters?

  • 3 답장
  • 1 이 문제를 만남
  • 26 보기
  • 최종 답변자: Zenos

more options

Hello! I am setting up a filter to catch messages with GG in the subject. Sometimes this will be at the beginning of the subject (no space at the front) and other times it will be somewhere in the middle. The problem I'm having is that this filter catches any word with "gg" in it, like "logged" or "baggage" (one of my customers has baggage in their name, but their messages should not be caught by this filter). How can I make this work? Thank you for your time!

Hello! I am setting up a filter to catch messages with GG in the subject. Sometimes this will be at the beginning of the subject (no space at the front) and other times it will be somewhere in the middle. The problem I'm having is that this filter catches any word with "gg" in it, like "logged" or "baggage" (one of my customers has baggage in their name, but their messages should not be caught by this filter). How can I make this work? Thank you for your time!

모든 댓글 (3)

more options

I would do this: Tools > Message filters make sure 'Filters for' is for the correct account click on 'New'

give Filter a suitable name Apply filter when: Select: Manually run' Select: 'Getting new mail'

If you want your Junk filters to run first to rmove potential Junk and stop your filter filtering possible junk: Select: Filter after Junk classification'

If you want to run this filter to include potential Junk and/or move the emails before Junk thinks it is junk: Select: 'Filter before Junk Classification'

If setting one condition or you need all conditions to be true: Select; 'Match all of the following'

If setting more than one condition, but any of those conditions can be true: Select; 'Match any of the following'


So if trying one condition - Match all of the following option 'Subject' and 'contains' and type: GG then set the Action eg: 'Move Message to' and select the folder on the account click on OK.

This should only filter messages with GG anywhere in the Subject, but if those messages also have GG in both subject and content then they will still be filtered because it was in the Subject.

more options

Thank you Toad-Hall for taking the time to respond to my question. But you have only explained (very clearly) how to set up an ordinary filter. I know how to do that, but my problem is more complicated. I need to find the "exactly this" condition. In my actual case, I want to filter for GG, as though it were a word with no other letters. When I set up a filter for GG, I also get words which have those letters within them, like "logged" and "baggage". Is there a way to filter for spaces, as in "(space)GG(space)"?

Thanks again for your time.

more options

I think FiltaQuilla might be useful. It adds so-called Regular Expressions to the filter system, where you could use a construction like:

"subject regex" "matches" "/\bgg\b/i"

\b means a word boundary gg is your two letters \b is the trailing word boundary

/ and /i mean ignore the case, so it'll find gg, GG, Gg and gG.

There lots of ways of doing this. You could have

[ ]GG[ ]

where it would require a space (explicitly; nothing else!) before and after, and capital letters. \b is usually superior as it matches at the beginning and end of the line, and recognizes regular punctuation in addition to spaces.