Suppose headers charset from content-type header if headers not
properly encoded. If content-type charset is "us-ascii", use "utf-8"
instead. Write maildir and mbox indexes in right encoding.
BUGS:98079
svn path=/branches/KDE/3.5/kdepim/; revision=614058
during IMAP sync, every message would be marked as 'dirty' due to setStatus() calls,
even when the status didn't change, and at the end of the folder this resulted in
the index entry for every message being rewritten.
+ improved a kdWarning in acljobs.
svn path=/branches/kdepim/proko2/kdepim/; revision=487869
when simply opening mail folders) : don't look for the serial numbers
of messages that haven't been inserted into a folder yet, it can't find one,
and it's slow every time. Note that assign() is only called on construction
(or soon after), never on totally-unrelated instances.
svn path=/trunk/kdepim/; revision=361937
You don't need getMsg anymore for the UID and LOD can check the size without loading the header.
I updated the online imap folder but dimap should also use the new code.
svn path=/trunk/kdepim/; revision=288206
- Fix the order in which we apply stripEmailAddr and decodeRFC2047.
- Remove some duplicated usages of stripEmailAddr by using fromStrip(), toStrip() and ccStrip().
svn path=/trunk/kdepim/; revision=246092
computed of the subject stripped of whitespace, since subjects are written
to the index stripped of whitespace and therefor hash to different values,
when taken from there, if that is not taken into account.
svn path=/trunk/kdepim/; revision=240609
- When reading the legacy status field, set all messages that are not new
or unread as read, so they don't end up having unknown status if the user
unsets the only flag they have, for example important.
svn path=/trunk/kdepim/; revision=236048
1) Remove the limitation that a message can have only one status at a time.
2) Implement watch/ignore thread via message status flags.
ad 1:
- Message status is now kept as a bitfield, which means a message can now be
for example replied and forwarded as well as important at the same time.
- To keep the index format backward compatible and make the transition
painless, I've added a new index entry and added code to transfer the old
into the new format. That means that upgrading users should not notice
anything.
- I've tried to keep as much behavior as possible unchanged with regard to
what flag disables what other flag etc. There are two groups of flags:
read/unread/new/old influence each other, which means a message cannot be
new and read at the same time, for example, while the second group, namely
important, sent, queued, replied, and forwarded are toggled individually.
- Toggling a thread sets the messages status to the inverse of that of the
parent, which means that if you have a thread with some mails marked as
important and some not, the status is set according to that of the parent.
- Status is now kept when moving mails between folders in the same imap
account as well as between imap accounts.
ad 2:
- Watch and ignore are mutually exclusive, which means ignoring a thread
unsets its watched flag and the other way around.
- When sorting by status watched threads are at the top, ignored at the
bottom.
- Watch and ignore propagate via threading, which means that if a message
is threaded below a watched one, it becomes watched. Same for ignore.
- Moving a single mail out of a watched thread results in a new watched
thread of size 1 :)
- Similarly watch and ignore are possible on individual mail (threads
to be).
- Watching a thread does not currently mark new mails as important, nor
does ignoring delete new mails in the thread. These are possible
extensions, though, if we think them sensible.
svn path=/trunk/kdepim/; revision=235595
This is a set of changes that is well test by myself and others.
The following bug fixes amongst others are included:
Compilation fix: the certificate dialog now compiles
Mjr bugfix: Prevent mail loss when kmail crashes while editing a
drafts message
Mjr bugfix: Fix erratic folder changing when clicking on the folder
tree
Mjr bugfix: Prevent mail loss when applying filters
The follow features have been implemented:
* KMail is now a KPart and can be embedded in the Kontact/Kaplan
container applications along with other KDE PIM applications.
* Remove duplicates function for removing duplicate messages in
a folder.
* Messages can be dragged and dropped on a composer window to
add those messages as attachments.
* Deletion in threaded mode is improved, child messages will no
longer be scattered when a parent is deleted.
* Multiple messages can now be selected in the search dialog.
* New context menu in the search dialog with Move, Copy, Reply
etc. actions for operating on selected messages.
* Search criteria in the search dialog now supports more types
of rules and a variable number of rules.
* Faster searching of large messsages.
* 'Search Folders' which are a KMail folder that stores a search
expression and is dynamically updated (also known as virtual
folders).
* The separate window for reading mail has a context menu with
Reply, Copy etc. actions for operating on the message
displayed.
* The separate window for reading mail has a tool bar.
* Startup of KMail is faster.
* Switching between folders is faster.
* The contents of all composer windows are saved to disk on
composer window creation and then periodically saved to
prevent mail loss in the result of a system crash.
* The state of KMail folders is saved to disk periodically to
prevent status information loss in the result of a system
crash.
Note after start KMail switching to folders for the first time will
slow as the format of the .sorted file has changed.
Enjoy!
svn path=/trunk/kdenetwork/kmail/; revision=195825
Please note that this port includes a bug fix which should be ported back to make_it_cool. I've sent the bug fix to the mailing list.
svn path=/trunk/kdenetwork/kmail/; revision=184866
I wrote the code but I could never figure out what was going on.
Basically, every now and then, the "From" field would go blank
(Unknown) and would stay blank until I clicked on the message.
The problem was here:
kmmsginfo.cpp
- XMARK_SET=0x100, FROM_SET=0x200, FILE_SET=0x300,
+ XMARK_SET=0x100, FROM_SET=0x200, FILE_SET=0x400,
I must have been mostly asleep with I set FILE_SET to 0x300.
Obviously, 0x300 can't work since 0x300 & 0x200 is not 0!
So I'm embarrassed but at least it's fixed :-/
Now only one remaining *known* maildir bug
svn path=/trunk/kdenetwork/kmail/; revision=117633
many different huge folders that amount faster. Folder switching is 10% faster
with that.
Most time is still spent in QString::fromUtf8().
svn path=/trunk/kdenetwork/kmail/; revision=87274
<quote>
kmail crashes when compacting folders
This happens because in KMMsgBase::asIndexString(void) , the call to xmark()
returns 0 when used in str.sprintf(...)
This happens because in KMFolder::unGetMsg, the call *msgInfo = *((KMMessage*)mb)
does not initialize this, because in
KMMsgInfo& KMMsgInfo::operator=(const KMMessage& msg)
mXMark is not initialized.
Adding
mXMark = msg.xmark();
to this operator fixes the problem for me.
</quote>
Explanation makes sense and the patch looks ok.
svn path=/trunk/kdenetwork/kmail/; revision=72197
- 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
Use MD5 digests Base 64 encoded for replyId and msgId
Fixed a few errors in threading code.
pre-strip 'From' and 'To' fields in index.
svn path=/trunk/kdenetwork/kmail/; revision=49855
so stupid ?) and had to put one file first in Makefile.am since it #defines
protected public for an include :-)
svn path=/trunk/kdenetwork/kmail/; revision=49096
Some of this code is absolute crap, but it shouldn't be too hard to make something respectable out of it. I've got to check it in before I go away for a few days.
svn path=/trunk/kdenetwork/kmail/; revision=45771
Compaction works again.
Old messages on pop server are marked unread. (But something weird is going on there).
Index files should be more robust but I have made a non backwards compatible change to the file format.
Hmm is that all, well the index file problem was bloody hard to reproduce. Blaa blaa
Hey it's Saturday night time to take a break.
svn path=/trunk/kdenetwork/kmail/; revision=43137
- fixed size on folder dialog
- Show receivers works for sent&queued messages
- Add an extra \n to previous message when appending new one to
mailbox => against rewriting last char in previous message =>
against corrupting attachment in previus message.
*** Index version number changed; compact your mailboxes before
installing kmail, or you'll see ghost messages.
svn path=/trunk/kdenetwork/kmail/; revision=16403
"long folder list" and "short folder list". Option
setable in settings->appearance.
* New feature: the "From" column now contains the
receiver for the folders outbox and sent-mail. Column
"Sender" automatically switches it's title to "Receiver"
for these folders.
* Incorporated new documentation.
svn path=/trunk/kdenetwork/kmail/; revision=15828
but this bug is in Beta3 ...
* some memory leaks closed
* improved decoding of encoded header fields
* column widths of msg list and sorting order now persistent per folder
* warning when no account was created and check-mail is pressed
* sender: changed conversion of '.'->' .' to '.'->'..' as in RFCxy
and removed conversion of 'From'->'>From' (due to same RFC)
svn path=/trunk/kdenetwork/kmail/; revision=5027