Browse Source

UTF encoding set to main script.

klaute 4 years ago
parent
commit
7321e5009f
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      mail2wordpresspost.py

+ 2
- 1
mail2wordpresspost.py View File

@@ -1,4 +1,5 @@
1 1
 #!/usr/bin/env python
2
+# -*- coding: utf-8 -*-
2 3
 
3 4
 ################################################################################
4 5
 # Author:  klaute - Kai Lauterbach - me@klaute.de - @kailauterbach
@@ -232,7 +233,7 @@ def main():
232 233
         email_sub = decode_mime_words(msg['subject'])
233 234
 
234 235
         # create post
235
-        print "Post title: " + email_sub
236
+        #print "Post title: " + email_sub
236 237
         wpCreatePost(email_sub, descr, images)
237 238
 
238 239
         # move processed file to done folder

Loading…
Cancel
Save