LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2016, 06:59 AM   #1
ka3ak
LQ Newbie
 
Registered: Mar 2016
Location: Moscow, Russia
Distribution: Kubuntu
Posts: 2

Rep: Reputation: Disabled
KMail doesn't apply a filter with euro sign


I'm trying to create a filter on subject for incoming German emails

My regex looks so: \b([Bb]erufsunfähig.*|€)\b

(\b is word delimiter)

But it doesn't work for emails containing an euro sign in their subjects. First I thought that it should have something to do with unicode. But this part of regex \b[Bb]erufsunfähig.* work (contains a-umlaut), so unicode cannot be the cause of the problem.

Last edited by ka3ak; 03-21-2016 at 07:01 AM.
 
Old 03-21-2016, 09:56 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
ISO-8859-1 (Latin 1) did not include the euro, but does include other common unicode characters. It was added in the replacement ISO-8859-15 (Latin 9). Most likely the mail is using the old encoding; lots of software does. Check the headers for the character encoding. Here's one in my inbox:

Code:
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Note character set encoding is windows-1252, which is Latin-1 with the addition of the euro and a few other characters.
 
Old 03-21-2016, 10:19 AM   #3
ka3ak
LQ Newbie
 
Registered: Mar 2016
Location: Moscow, Russia
Distribution: Kubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
What I've seen in the email source is:

Quote:
...
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

All-Net & Surf 1 GB
Volle Power beim Surfen!
==================================================================

Lieber Herr ...
The subject of the email is:
Quote:
Ihre Handy-Flat für dauerhaft 6,99 € mtl.!
Of course I can create multiple filters as a workaround but it would still be interesting how to insert the euro sign into an existing regular expression with lots of logical ORs (|)

I have tried it with and with \u20AC with no luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sign in password doesn't work nonnox15 Linux - General 3 06-18-2015 08:46 PM
KMail: change items in category filter knilux Linux - Software 0 05-01-2012 05:47 AM
No euro-sign in RHEL 5 hunnemad Linux - Newbie 2 05-10-2008 04:03 PM
Kde Menu Editor Doesn´t Apply Changes!! Electronkz Linux - Software 18 11-07-2004 10:42 AM
Big prob ! Special characters (like euro sign) needed + samba koencalliauw Arch 0 08-27-2003 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration