Waldo Bastian
ce39174336
Automatic charset selection.
...
svn path=/trunk/kdenetwork/kmail/; revision=121196
25 years ago
Waldo Bastian
6bda214b0e
- /** Convert all non-ascii characters to question marks */
...
- static const QCString toUsAscii(const QString& _str);
+ /** Convert all non-ascii characters to question marks
+ * If ok is non-null, *ok will be set to true if all characters
+ * where ascii, *ok will be set to false otherwise */
+ static const QCString toUsAscii(const QString& _str, bool *ok=0);
svn path=/trunk/kdenetwork/kmail/; revision=120665
25 years ago
Michael Haeckel
805bbf776c
Don't eat a space, if when decoding RFC2047 headers, and there are more
...
encoded words.
svn path=/trunk/kdenetwork/kmail/; revision=119578
25 years ago
Waldo Bastian
d6a82974f7
Use KCharsets::codecForName() instead of QTextCodec::codecForName()
...
svn path=/trunk/kdenetwork/kmail/; revision=119063
25 years ago
Michael Haeckel
8db155785a
Use the names we get from QTextCodec::mimeName() for the encoding lists.
...
svn path=/trunk/kdenetwork/kmail/; revision=118727
25 years ago
Dirk Mueller
6797558d5d
356 includes less
...
svn path=/trunk/kdenetwork/kmail/; revision=117339
25 years ago
Michael Haeckel
57ab16c6db
Fix possible memory corruption.
...
svn path=/trunk/kdenetwork/kmail/; revision=116054
25 years ago
Michael Haeckel
7806157e15
- Convert between little and big endian to keep compatible with the old index
...
format until a better solution is found.
- Regenerate the .sorted files, there we don't need to play the same game.
svn path=/trunk/kdenetwork/kmail/; revision=112812
25 years ago
Marc Mutz
f1c66804b2
Qt3 compile fixes. The last problem is in kmcomposewin.cpp
...
svn path=/trunk/kdenetwork/kmail/; revision=112567
25 years ago
Michael Haeckel
9f205d3940
Fix the space encoding issue a better way.
...
svn path=/trunk/kdenetwork/kmail/; revision=110141
25 years ago
Michael Haeckel
4bfd62691b
Don't eat the space between two words, that both contain non-ascii characters.
...
svn path=/trunk/kdenetwork/kmail/; revision=110092
25 years ago
Kurt Granroth
0b28159da9
Massive commit to include native maildir-style mailboxes support in
...
KMail. To test, create a Child Folder and select "maildir" as the
mailbox type.
svn path=/trunk/kdenetwork/kmail/; revision=109511
25 years ago
Marc Mutz
f08bcebf07
Fix bug no. 30036. (already present "_" was not encoded in rfc2047 headers,
...
leading to "_"->" " subst's later.
svn path=/trunk/kdenetwork/kmail/; revision=108785
25 years ago
Michael Haeckel
12324018f9
Unfold headers that don't contain non-ascii characters correctely.
...
svn path=/trunk/kdenetwork/kmail/; revision=108234
25 years ago
Marc Mutz
16c12592d8
Correct handling of folded headers.
...
svn path=/trunk/kdenetwork/kmail/; revision=105106
25 years ago
Michael Haeckel
6dcf0406bd
Don't encode the e-mail address in a way the server can't read it, when the
...
space is missing after the next comma.
svn path=/trunk/kdenetwork/kmail/; revision=104717
25 years ago
Marc Mutz
609666b14e
Fix an RFC822 violation that was part of the source of the reply-to-all bug.
...
svn path=/trunk/kdenetwork/kmail/; revision=104541
25 years ago
Daniel Naber
c0ea6cb0e7
When skipping the "Re:" etc, skip the colon, too. Fixes sorting by subject.
...
Okay'ed by Michael.
svn path=/trunk/kdenetwork/kmail/; revision=103316
25 years ago
Michael Haeckel
d3f7ddebee
Don't use separete lines in headers, that contain only blanks.
...
Not that this wouldn't be legal, but it doesn't look nice.
- if (!result.isEmpty() && !(result.right(2) == "\n ") &&
- result.length() - result.findRev("\n ") + encLength + 2 > maxLen)
+ int lastNewLine = result.findRev("\n ");
+ if (!result.mid(lastNewLine).stripWhiteSpace().isEmpty()
+ && result.length() - lastNewLine + encLength + 2 > maxLen)
svn path=/trunk/kdenetwork/kmail/; revision=102541
25 years ago
Michael Haeckel
ba08a83bc8
ASCII_CAST cleanup for kmmsgbase.cpp and kmacctlocal.cpp.
...
svn path=/trunk/kdenetwork/kmail/; revision=102473
25 years ago
Stephan Kulow
fad19ec9f2
converting the remaining qDebug calls to kdDebug(5006)
...
svn path=/trunk/kdenetwork/kmail/; revision=102083
25 years ago
Marc Mutz
20ed595a46
Add #undef QT_NO_{ASCII_CAST,COMPAT}, resp. to the tops of .cpp files that
...
need them, in preparation of the remove of -UQT_NO_* from Makefile.am.
svn path=/trunk/kdenetwork/kmail/; revision=101548
25 years ago
Michael Haeckel
c580d6066c
Patch from Don Sanders <sanders@kde.org> and Sam Magnuson <sam@trolltech.com>
...
Heavy speedup for huge folders.
svn path=/trunk/kdenetwork/kmail/; revision=98218
25 years ago
Stephan Kulow
29021bdb05
.copy on a Qt string is a noop since quite some Qt versions
...
svn path=/trunk/kdenetwork/kmail/; revision=96404
25 years ago
Michael Haeckel
e95d67e14b
Remove obsolete workarounds.
...
svn path=/trunk/kdenetwork/kmail/; revision=95867
25 years ago
Stephan Kulow
1100e40a3d
here too
...
- return ctime(&mDate);
+ return KMHeaders::fancyDate(mDate);
svn path=/trunk/kdenetwork/kmail/; revision=92915
25 years ago
Stephan Kulow
fec2831df5
removing "const QString" in return values and parameters. It only confuses compilers,
...
using const QString& in parameters and QString in return values
svn path=/trunk/kdenetwork/kmail/; revision=92546
25 years ago
Michael Haeckel
7799cf34b9
Flagging messages work now also in IMAP folders.
...
svn path=/trunk/kdenetwork/kmail/; revision=90730
25 years ago
Michael Haeckel
ba89200a66
Rewrite KMMsgBase::encodeRFC2047String to handle multibyte encodigs, e. g.
...
Japanese correctely. It now also uses automatically base64, if more than 16%
of the character are non-us-ascii.
Also a few minor other bugs should be gone.
svn path=/trunk/kdenetwork/kmail/; revision=84624
25 years ago
Michael Haeckel
1634aed8a9
Don't add a space when decoding a header that is broken into several lines.
...
svn path=/trunk/kdenetwork/kmail/; revision=84347
25 years ago
Michael Haeckel
fec89fe67a
Remove the rest of the KRN code and the welcome message.
...
svn path=/trunk/kdenetwork/kmail/; revision=84071
25 years ago
Michael Haeckel
4b092ea3e3
Fix for Japanese:
...
Support for shift_jis (QT only knows the name sjis)
Better support for iso-2022-jp. This format uses the ESC character to show
that the following 7bit text is encoded. These ESC characters made a few
problems throughout KMail's code.
Based on patch by toyohiro@ksmplus.com .
svn path=/trunk/kdenetwork/kmail/; revision=80981
25 years ago
Michael Haeckel
ae30f169cc
Support for some broken RFC2047 headers.
...
svn path=/trunk/kdenetwork/kmail/; revision=76119
26 years ago
Antonio Larrosa Jimenez
e1d8883b01
I think it's better not to mark messages as dirty when they're not really
...
dirty. This way, index files are only written when they should, and not
everytime you leave a folder (as was happening before this patch).
svn path=/trunk/kdenetwork/kmail/; revision=75997
26 years ago
Michael Haeckel
b9dde97d16
Support for broken 8-bit unencoded headers.
...
svn path=/trunk/kdenetwork/kmail/; revision=75805
26 years ago
Michael Haeckel
6e5fedecb2
Correct support for windows-125x.
...
Some people seem to like this encoding.
svn path=/trunk/kdenetwork/kmail/; revision=73905
26 years ago
Michael Haeckel
7406eb0230
This time a charset fix for latin users :-)
...
Kill all non 7-bit characters when us-ascii is selected.
QTextCodec::codecForName("us-ascii")->name() returns "ISO 8859-1" for some
reason :-(
svn path=/trunk/kdenetwork/kmail/; revision=73530
26 years ago
Michael Haeckel
30abaf3784
Non-latin characters in attachment file names Part II
...
Decoding should now work also.
svn path=/trunk/kdenetwork/kmail/; revision=72672
26 years ago
Michael Haeckel
9cadd9def9
Support for non latin filenames as attachment Part I
...
Composing encodes them now correctely.
svn path=/trunk/kdenetwork/kmail/; revision=72656
26 years ago
Michael Haeckel
e7ba72e043
Workaround for QTextCodec bug. For some encodings a \0 is inserted at the end
...
of the QString which caused the headers to be cut.
svn path=/trunk/kdenetwork/kmail/; revision=71297
26 years ago
Michael Haeckel
10063becc7
Fix for Bug#15260: kmail header To: unbalanced ''' -encoding-error.
...
svn path=/trunk/kdenetwork/kmail/; revision=71070
26 years ago
Michael Haeckel
b563b69f1b
Mayor improvements for non latin support in headers.
...
- The headers are now decoded with the charset(s) specified it them and not
with the charset of the message.
- KMMsgBase::decodeRFC2047String now returns the string in unicode which
is compatible with encodeRFC2047String and makes some things easier.
- Also the address headers and all other headers are decoded, not only the
subject.
- The headers in the header list are displayed correctely.
- Editing mail in the outbox no longer corrupts non latin subjects.
- Reply and forward also keep non latin subjects.
- Indexfile version upgrade. Old indexes are converted.
svn path=/trunk/kdenetwork/kmail/; revision=71050
26 years ago
Michael Haeckel
e566928e3a
Rename decodeRFC1522String to decodeRFC2047String in order to prevent some
...
confusion.
svn path=/trunk/kdenetwork/kmail/; revision=69880
26 years ago
Michael Haeckel
f85649944d
encodeRFC2047String now puts the real charset name into the headers, not
...
always iso-8859-1 as before.
svn path=/trunk/kdenetwork/kmail/; revision=69845
26 years ago
Jacek Stolarczyk
77c7385080
Fix for truncating headers in non-latin encoding. It's a conversion from char* to QCString to avoid latin1() call. It should not change any behaviour for latin1 users. Jacek Stolarczyk. Has benn posted for testing on kmail@kde.org for more than a week. No objections there.
...
svn path=/trunk/kdenetwork/kmail/; revision=67938
26 years ago
Waldo Bastian
dae746a353
RFC 2231 encoding.
...
Patch by Michael Haeckel <Michael@Haeckel.Net>
svn path=/trunk/kdenetwork/kmail/; revision=61929
26 years ago
Waldo Bastian
a4fbfa5070
For some reason mimelib can't decode base64 encoded strings with less than 16
...
encoded characters. That are 12 decoded ones. Therefore some headers are
currently not displayed correctely.
Patch by Michael Haeckel <Michael@Haeckel.Net>
svn path=/trunk/kdenetwork/kmail/; revision=61853
26 years ago
Don Sanders
309d442c96
Remainder of the Tru64 patch, fixes up some C++ errors that I'm surprosed
...
were let through before.
svn path=/trunk/kdenetwork/kmail/; revision=61297
26 years ago
Don Sanders
d14e8b3ced
Remove trigraph.
...
Harri guided me.
svn path=/trunk/kdenetwork/kmail/; revision=60944
26 years ago
Daniel Naber
ff6f076593
Michael's fix for a special character escape (for his RFC fix)
...
svn path=/trunk/kdenetwork/kmail/; revision=60715
26 years ago