Removed obsolete files, added ChangeLog, fixed problem in kfileio, composer, and startup code

svn path=/trunk/kdenetwork/kmail/; revision=5275
wilder-work
Stefan Taferner 28 years ago
parent bab4d13284
commit 9d95da801d
  1. 17
      BUGS
  2. 10
      ChangeLog
  3. 10
      INSTALL
  4. 3
      kfileio.cpp
  5. 32
      kmcomposewin.cpp
  6. 2
      main.cpp

17
BUGS

@ -1,17 +0,0 @@
- KMComposer cannot set the subject. Seems to be a problem in kmmessage.cpp
cause KMMessage::setSubject(const char *aStr) gets the subject string
without any problem but does use it correctly.
- Pop does not append downloaded msgs to according folder
- Set your pop passwd manually in kmacctpop.cpp
- Config stuff missing. Copy this kmailrc to your ~/.kde/config/
- Saving of octet-streams does not work ( something goes wrong decoding)
- mimemagic stuff does not look at the extension yet only scans file content.
Result is that some files are not recognized correctly
- Attaching bodyParts is not yet possible. Something must be wrong with
addBodyPart() or I am just too stupid.
- In first KMail start:
Configure (Settings) goes fine until I set the POP3 account. After
pressing OK I get a window with:
QGArray::at: Absolute index 0 out of range
And KMail crashes with seg. fault.
- Add selectable character encodings (ISO-8859-x, ...

@ -0,0 +1,10 @@
Sat Feb 14 10:03:09 1998 Stefan Taferner <stefan@idefix.home.org>
* Startup: when recovering dead letters the auto signature was
appended twice. Fixed now.
* Composer: fixed broken inserting of files.
* kFileToString(): fixed handling of files with zero length.
Initial version: 0.5.7

@ -1,10 +0,0 @@
make -f Makefile.cvs
./configure
make
copy the approriate pics to either $KDEDIR/lib/pics or
$KDEDIR/lib/pics/toolbar
You need to have IconPath set correctly in your .kderc
[KDE Setup]
IconPath=/usr/local/kde/lib/pics:/usr/local/kde/lib/pics/toolbar

@ -60,6 +60,7 @@ QString kFileToString(const char* aFileName, bool aEnsureNL, bool aVerbose)
"to the file:\n%s"), aFileName);
return 0;
}
if (len <= 0) return 0;
if (!file.open(IO_Raw|IO_ReadOnly))
{
@ -77,7 +78,7 @@ QString kFileToString(const char* aFileName, bool aEnsureNL, bool aVerbose)
return 0;
}
result.resize(len+1 + (int)aEnsureNL);
result.resize(len + (int)aEnsureNL);
readLen = file.readBlock(result.data(), len);
if (aEnsureNL && result[len-1]!='\n')
{

@ -1040,35 +1040,21 @@ void KMComposeWin::slotAttachFile()
//-----------------------------------------------------------------------------
void KMComposeWin::slotInsertFile()
{
// Create File Dialog and return selected file
QString fileName;
QString strCopy;
char temp[256];
QString fileName, str;
int col, line;
QFileDialog fdlg(".","*",this,NULL,TRUE);
fdlg.setCaption(i18n("Attach File"));
QFileDialog fdlg(".", "*", this, NULL, TRUE);
fdlg.setCaption(i18n("Include File"));
if (!fdlg.exec()) return;
fileName = fdlg.selectedFile();
if(fileName.isEmpty()) return;
cout << fileName << endl;
QFile *f = new QFile(fileName);
if(!f->open(IO_ReadOnly))
return;
fileName = fdlg.selectedFile();
if (fileName.isEmpty()) return;
f->at(0);
while(!f->atEnd()) {
f->readLine(temp,255);
strCopy.append(temp);
}
str = kFileToString(fileName, TRUE, TRUE);
if (str.isEmpty()) return;
mEditor->getCursorPosition(&line,&col);
mEditor->insertAt(strCopy, line ,col);
f->close();
mEditor->getCursorPosition(&line, &col);
mEditor->insertAt(str, line, col);
}

@ -192,7 +192,7 @@ static void recoverDeadLetters(void)
if (msg)
{
win = new KMComposeWin;
win->setMsg(msg);
win->setMsg(msg, FALSE);
win->show();
}
}

Loading…
Cancel
Save