Some fixes for the attachment icon. Dedicated to the fearless Cebit fighter Michael Brade ;-)

svn path=/trunk/kdepim/; revision=299019
wilder-work
Carsten Burghardt 22 years ago
parent 53ae1568b4
commit 4ab90edd9f
  1. 1
      kmacctexppop.cpp
  2. 2
      kmacctlocal.cpp
  3. 5
      kmcommands.cpp
  4. 2
      kmfolderimap.cpp

@ -352,6 +352,7 @@ void KMAcctExpPop::slotMsgRetrieved(KIO::Job*, const QString & infoMsg)
{
if (infoMsg != "message complete") return;
KMMessage *msg = new KMMessage;
msg->setComplete(true);
// Make sure to use LF as line ending to make the processing easier
// when piping through external programs
uint newSize = KMFolder::crlf2lf( curMsgData.data(), curMsgData.size() );

@ -177,6 +177,8 @@ void KMAcctLocal::processNewMail(bool)
msg->headerField("X-Status").latin1());
msg->setEncryptionStateChar( msg->headerField( "X-KMail-EncryptionState" ).at(0) );
msg->setSignatureStateChar( msg->headerField( "X-KMail-SignatureState" ).at(0));
msg->setComplete(true);
msg->updateAttachmentState();
addedOk = processNewMsg(msg);

@ -1481,9 +1481,12 @@ void KMCopyCommand::execute()
list.append(msg);
} else {
newMsg = new KMMessage;
newMsg->setComplete(msg->isComplete());
// make sure the attachment state is only calculated when it's complete
if (!newMsg->isComplete())
newMsg->setReadyToShow(false);
newMsg->fromString(msg->asString());
newMsg->setStatus(msg->status());
newMsg->setComplete(msg->isComplete());
if (srcFolder && !newMsg->isComplete())
{

@ -1026,6 +1026,8 @@ void KMFolderImap::slotGetMessagesData(KIO::Job * job, const QByteArray & data)
while (pos >= 0)
{
KMMessage *msg = new KMMessage;
msg->setComplete(false);
msg->setReadyToShow(false);
msg->fromString((*it).cdata.mid(16, pos - 16));
flags = msg->headerField("X-Flags").toInt();
ulong uid = msg->UID();

Loading…
Cancel
Save