Support Forum

Problem with foreign characters in post by email

22 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Ha! No – sorry. I shouldn’t laugh. It is one of those silly things that you don’t think of…

If the post content is totally empty then new posts are rejected. This makes total sense of course. With PBE and IMAP, an attachment is NOT held and returned as a part of the content of the email. So in your case it just saw an empty email and stopped processing.

I will open a bug ticket and get this fixed up.

TF Tyge Fogh
Tyge Fogh
Member

I got exactly the same problem with translation of Danish characters:

Translation: æ, ø, å, Æ, Ø og Å ???

tranlates to

Translation: =E6, =F8, =E5, =C6, =D8 og =C5=A0 ???

Same problem posting by email or new subject by email.

The plugin Subscriptions Works correctly. But that is the other way round…

It seems you havent solved the problem yet. At least not by updating the plugin.

Please provide a solution since the plugin is virtually unusable for me as it is now.

And please dont ask for any hardcore code or something. I am a user, not a programmer.

PS I made a danish translation for the languagefile for Post By Mail. Not working. I probably just have to wait for approvement? (I think i found the right folder for the .mo )

MP Mr Papa
Mr Papa
Member

there is a new version of the post by email plugin ready to go, but we cannot release it since WP continues to slip delivery of 3.6  unfortunately the post by email plugin needs our new version 5.3 for a couple of additions and our core changes were mandated by wp 3.6 changes… viscous circle, but we are caught up in wp  3.6 release issues (a couple months late now)..

I will have to let Andy (pbe author) address whether he thinks the changes to PBE plugin address your issue or not…

YS Yellow Swordfish
Yellow Swordfish
Member

If it interests you I can probably suggest a small edit to the current code to see if that helps with the character issue. We can do that without supplying the whole next version prematurely.

YS Yellow Swordfish
Yellow Swordfish
Member

The file from within the plugin that you need is: /post-by-email/library/sp-email-post-imap.php

The function you need is: sp_process_inbox_imap()

Trawl down the code until you find this line of code:

if(empty($content) && $maybeNew) $content = $rawContent;

and then place the following line of code immediately after it:

$content = trim(utf8_encode(quoted_printable_decode($content)));

and let’s see if that helps with your issue.

MP Mr Papa
Mr Papa
Member

np. glad we could help.  That is one of several changes in the next version of PBE…