Bug 53464 - Crash on broken Mail dir sym-link
Summary: Crash on broken Mail dir sym-link
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-27 03:30 UTC by Martin Ellis
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ellis 2003-01-27 03:30:41 UTC
Version:           3.1.0 (using KDE KDE 3.0.99)
Installed from:    Unlisted Binary Package
OS:          Linux

On my system, Mail is a sym-link to a directory elsewhere (actually within a Samba mount on another machine).

KMail will crash unhelpfully on startup when said mount is not actually mounted, and hence sym-link is broken.

Expected behaviour (for me) would be to inform user that mail dir is inaccessible, rather than try to create a new Mail dir in the empty mount point.

Yeah, pedantic, sorry.  It's a stupid set up, and isn't _that_ big a deal :o)
Comment 1 christian.schrader 2003-01-30 02:06:50 UTC
This seems to bee a problem with KMessageBox. 
In kmkernel.cpp in KMKernel::initFolders there are checks like 
 
  if (the_inboxFolder->canAccess() != 0) { 
      KMessageBox::sorry(0, i18n("You do not have read/write permission to your inbox folder.") 
); 
      exit(1); 
  } 
         
These messageboxes lead to the crashes. kmail crashes also if you do a 
chmod 000 on any mailbox of outbox, sent-mail, trash, drafts, inbox or 
~/Mail. 
 
If you comment out these five KMessageBox lines kmail doesnt crash but 
also doesnt start. And that's another problem! 
I have ~/Mail on a cfs on my laptop so it is only available if I really 
need it. But I have some IMAP accounts in kmail which I can't use 
without creating a dummy ~/Mail dir or mounting the cfs. 
 
regards, 
Christian 
 
Comment 2 Ingo Klöcker 2003-02-01 18:33:57 UTC
Subject: Re:  Crash on broken Mail dir sym-link

Thanks for the analysis of the crash. I will fix it. But I can't fix the 
problem that KMail doesn't start since, even if you only want to use 
IMAP, KMail currently needs at least the outbox folder unless you don't 
want to send any messages.

Comment 3 Ingo Klöcker 2003-02-01 21:49:18 UTC
Subject: Re:  New: Crash on broken Mail dir sym-link

Thanks for your bug report. This bug has been fixed for KDE 3.1.1.

Comment 4 Leon Atkins 2004-07-11 12:59:47 UTC
I have a similar setup where I sym-link my mail folder to my network server, but I am finding that Kmail over writes my email with "no subject" and "Unknown" and doesn't send mail I get "Could noot move mail to sent-items, diskspace full or check permissions). I have over 4gb on that drive and I have checked permissions on the server and can read/write to the dir.