All notes are not visible in iclud web interface
Hello,
Very good job. I was on the way to write mine when I found this one. Here's a little patch to make it work with the icloud web interface.
--- inotes.py.ori 2014-09-22 15:49:58.463795034 +0200 +++ inotes.py 2014-09-22 16:10:42.642891204 +0200 @@ -16,10 +16,11 @@ import time from optparse import OptionParser from HTMLParser import HTMLParser +import uuid
global debug global configFile -configFile = '~/inotes.conf' +configFile = 'inotes.conf'
class MLStripper(HTMLParser): def init(self): @@ -133,7 +134,7 @@ body += line
now = time.strftime('%a, %d %b %Y %H:%M:%S %z')
-
note = "Date: %s\nFrom: %[email protected]\nX-Uniform-Type-Identifier: com.apple.mail-note\nContent-Type: text/html;\nSubject: %s\n\n%s" % (now, username, subject, body) -
note = "Date: %s\nFrom: %[email protected]\nX-Uniform-Type-Identifier: com.apple.mail-note\nX-Universally-Unique-Identifier: %s\nContent-Type: text/html;\nSubject: %s\n\n%s" % (now, username, str(uuid.uuid4()), subject, body) c.append('Notes', '', imaplib.Time2Internaldate(time.time()), str(note)) finally:
I have not much time now, but I'm going ta add the ability to choose the server (Google, iCloud or any other). In fact I use my own imap server. I'm french, so utf-8 is important for me.
I will send other patches too.
Thanks for the sharing
Regards