Title: wp-mail.php bug
Last modified: August 18, 2016

---

# wp-mail.php bug

 *  [jamix](https://wordpress.org/support/users/jamix/)
 * (@jamix)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wp-mailphp-bug/)
 * Hey WP developers,
 * There’s a bug in current wp-mail.php which prevents it from correctly processing
   e-mails with subjects in quoted-printable encoding. In lines 53-55, we have this:
 * if (!preg_match(‘#\=\?(.+)\?Q\?(.+)\?\=#i’, $subject)) {
    $subject = wp_iso_descrambler(
   $subject); }
 * First of all, the regex check is incorrect – it should be
 * // No exclamation mark.
    if (preg_match(‘#\=\?(.+)\?Q\?(.+)\?\=#i’, $subject)){
   $subject = wp_iso_descrambler($subject); }
 * Even more, however, – this regex check is unnecessary here, since it’s done (
   correctly) in wp_iso_descrambler () anyway. So these three lines have to simply
   be replaced with:
 * $subject = wp_iso_descrambler($subject);
 * I’ve found this bug while experimenting with the blogging via e-mail feature.
   After the fix, everything works beautifully.
 * Thanks for the great product!

Viewing 1 replies (of 1 total)

 *  [skippy](https://wordpress.org/support/users/skippy/)
 * (@skippy)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wp-mailphp-bug/#post-235375)
 * Can you please open a ticket at [the bug tracker](http://trac.wordpress.org/)?
   Please also include a patch, if possible. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘wp-mail.php bug’ is closed to new replies.

## Tags

 * [e-mail](https://wordpress.org/support/topic-tag/e-mail/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 1 reply
 * 2 participants
 * Last reply from: [skippy](https://wordpress.org/support/users/skippy/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/wp-mailphp-bug/#post-235375)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
