Bug 336971 - Archiving Agent using a local directory instead of external HD as configured
Summary: Archiving Agent using a local directory instead of external HD as configured
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: misc (show other bugs)
Version: 4.11.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-02 13:33 UTC by Kurt Kanduth
Modified: 2014-07-17 12:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.14


Attachments
attachment-8651-0.html (3.57 KB, text/html)
2014-07-02 14:59 UTC, Kurt Kanduth
Details
attachment-8651-1.dat (1 bytes, multipart/alternative)
2014-07-02 14:59 UTC, Kurt Kanduth
Details
signatur.png (40.59 KB, image/png)
2014-07-02 14:59 UTC, Kurt Kanduth
Details
attachment-28756-0.html (2.98 KB, text/html)
2014-07-16 08:00 UTC, Kurt Kanduth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Kanduth 2014-07-02 13:33:42 UTC
I am using Kontact and want my e-mails to be backed up regularly. Using Extras -> Automatic Archive setup (the English menu might be different, I use the German one...) I configured as follows:
Directory: Local Directory/Sent items ---> /var/run/media/username/Intenso (=external HD)/LINUX_BU/KMAIL/Sent
Directory: Local Directory/Inbox ---> /var/run/media/username/Intenso (=external HD)/LINUX_BU/KMAIL/Inbox
The agent is to run daily, 5 min. after start up.
It actually does run, however, the archive ends up not on the external HD but on /home/user name instead.
If my memory serves me right, it did archive to the external HD as configured for the very first time, but ever after it started perfectly, but uses the home directory instead of the external hard drive.
I provided screenshots here:
http://k2.members.cablelink.at/kmail/

Reproducible: Didn't try




I don't know if this is the right place to address it, but a "dream come true-scenario" would be to have the option to automatically backup ALL the data from Kontact: E-mails sent and received, addresses, calender entries, and notes!
In the old days, using Windows, I knew that I only had to backup the "Outlook" folder and that was it.
Comment 1 Laurent Montel 2014-07-02 14:10:55 UTC
It's an normal mount ?
It's not a network access ?
Comment 2 Kurt Kanduth 2014-07-02 14:59:19 UTC
Created attachment 87515 [details]
attachment-8651-0.html

I'd call it a normal mount.  Its a USB drive and I do not have any restrictions as a user.

Am Mittwoch, 2. Juli 2014, 14:10:55 schrieben Sie:
> https://bugs.kde.org/show_bug.cgi?id=336971
> 
> Laurent Montel <montel@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |montel@kde.org
> 
> --- Comment #1 from Laurent Montel <montel@kde.org> ---
> It's an normal mount ?
> It's not a network access ?
> 
> 



www.selbst-wenn.de
Comment 3 Kurt Kanduth 2014-07-02 14:59:21 UTC
Created attachment 87516 [details]
attachment-8651-1.dat
Comment 4 Kurt Kanduth 2014-07-02 14:59:21 UTC
Created attachment 87517 [details]
signatur.png
Comment 5 Kurt Kanduth 2014-07-04 09:47:25 UTC
One more thing I just found out:
I boot my pc and the first thing I do is to "open" the esternal HD, in my case INTENO. That happens before the automatic KMail job starts. Then in works. Seems as if the job cannot initiate the HD by itself.

Regards,
Kurt


Am Mittwoch, 2. Juli 2014, 16:59:17 schrieben Sie:


I'd call it a normal mount.  Its a USB drive and I do not have any restrictions as a user.

Am Mittwoch, 2. Juli 2014, 14:10:55 schrieben Sie:
> https://bugs.kde.org/show_bug.cgi?id=336971
> 
> Laurent Montel <montel@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |montel@kde.org
> 
> --- Comment #1 from Laurent Montel <montel@kde.org> ---
> It's an normal mount ?
> It's not a network access ?
> 
>
Comment 6 Laurent Montel 2014-07-16 07:11:34 UTC
(In reply to Kurt Kanduth from comment #5)
> One more thing I just found out:
> I boot my pc and the first thing I do is to "open" the esternal HD, in my

What do you mean with "I do is to "open" the esternal HD" ?
Comment 7 Kurt Kanduth 2014-07-16 08:00:45 UTC
Created attachment 87753 [details]
attachment-28756-0.html

Am Mittwoch, 16. Juli 2014, 07:11:34 schrieben Sie:
> https://bugs.kde.org/show_bug.cgi?id=336971
> 
> --- Comment #6 from Laurent Montel <montel@kde.org> ---
> (In reply to Kurt Kanduth from comment #5)
> > One more thing I just found out:
> > I boot my pc and the first thing I do is to "open" the esternal HD, in my
> 
> What do you mean with "I do is to "open" the esternal HD" ?
> 
> 
Booting Linux, a small message appears in the right bottom corner of the screen telling that an external device was detected - which in my case is the HD I want to backup my mails - and offers three options of which one is to open it via Dolphin. I do that, the backup works perfectly fine as configured. If the message is ignored, however, it seems as is the HD is not even acticated by the OS hence the mail archive writes in the /home directory.
Comment 8 Laurent Montel 2014-07-16 08:55:41 UTC
Ok it mounts your HD
So kmail will not do it.
It's a manual action.
So we can't do it.
Perhaps I can inform you that path doesn't exist.
But I can't mount your HD
Comment 9 Laurent Montel 2014-07-17 12:04:31 UTC
Git commit 8c19aa7573182f468a4006c1972f668c8f8940df by Montel Laurent.
Committed on 17/07/2014 at 12:04.
Pushed by mlaurent into branch 'KDE/4.14'.

Fix Bug 336971 - Archiving Agent using a local directory instead of external HD as configured

FIXED-IN: 4.14

M  +4    -0    agents/archivemailagent/akonadi_archivemail_agent.notifyrc
M  +16   -1    agents/archivemailagent/archivejob.cpp
M  +8    -5    agents/archivemailagent/archivemailinfo.cpp
M  +3    -3    agents/archivemailagent/archivemailinfo.h
M  +11   -9    agents/archivemailagent/archivemailmanager.cpp

http://commits.kde.org/kdepim/8c19aa7573182f468a4006c1972f668c8f8940df
Comment 10 Laurent Montel 2014-07-17 12:06:02 UTC
I added a message when we can't create archive.
It doesn't create it in local it postpone it now.