Summary: | Rewriring To: Subject: and Content-Type: headers with filters to fix character coding. | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | Lex V. Ross <lross> |
Component: | filtering | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | CC: | jerome |
Priority: | NOR | ||
Version: | 1.5 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Lex V. Ross
2003-07-28 06:17:26 UTC
You know that the senders should fix their mail clients on their ends, right? You're trying to fix invalid mail messages (that violate standards). For instance, if I had received one of those through my ISP, it would no longer be fixable because they make the fine gesture of replacing all invalid characters with X. I'd have received: From: XXXXXX <jprst@yahoo.com> Subject: Re: XXXXXXXX! One could say that you're trying to fix the horn because the car brakes aren't working. Now, guessing character coding... that's why there are standards. RFC 2046 says that the character coding is specified in the Content-Type header, so there's no guessing. And if I remember correctly, it also says that the coding is US-ASCII if there's no further information. RFC 2047 specifies how to code the From, To and Subject fields of the message itself, again specifying character coding. Unescaped sequences are invalid (RFC 2047 and RFC 2822 probably). But having a rewrite filter that replaces all instances of something could be useful. If it's integrated into the MIME tree handler, one could add nifty things like "if there's a text/html part" or, like in your case, "text/plain; charset=us-ascii" *** Bug 61822 has been marked as a duplicate of this bug. *** shortening summary. I don't even understand the wish For more complex operations on messages you better use the Pipe Through filter action. You can filter your messages e.g. by a Perl script an do whatever you want. As always, have a look at the KMail handbook (Filters section) before starting. |