evolution deletes spamd socket file when creating new temp files

Bug #1014763 reported by Marc Deslauriers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evolution
Fix Released
Medium
evolution (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After a while, evolution stops using spamassassin for junk mail detection.

Here is what happens:

1- Evolution creates spamd socket and pid file in ~/.cache/evolution/tmp with
2- When creating a new temporary directory to open an email attachment, evolution notices that the socket and pid file are more than 2 hours old, and deletes them, breaking spamassassin integration

See TEMP_EXPIRE in e-util/e-mktemp.c.

The problem is that it's using st.st_atime, but that's no longer getting updated on Ubuntu and/or with ext4.

This is my directory before opening an attachment:
mdeslaur@mdlinux:~/.cache/evolution/tmp$ ls -al
total 24
drwxr-xr-x 5 mdeslaur mdeslaur 4096 Jun 18 12:49 .
drwx------ 6 mdeslaur mdeslaur 4096 Apr 10 2011 ..
drwx------ 2 mdeslaur mdeslaur 4096 Jun 18 12:49 evolution-mdeslaur-PlMVtk
drwx------ 2 mdeslaur mdeslaur 4096 Jun 18 10:40 evolution-mdeslaur-VMPrqC
drwx------ 2 mdeslaur mdeslaur 4096 Jun 18 11:14 evolution-mdeslaur-wrcl0C
-rw-rw-r-- 1 mdeslaur mdeslaur 5 Jun 18 11:13 spamd-pid-file-Y2CYFW
srw-rw-rw- 1 mdeslaur mdeslaur 0 Jun 18 11:13 spamd-socket-path-UZCYFW

This is after opening an attachment at 13:43:
mdeslaur@mdlinux:~/.cache/evolution/tmp$ ls -al
total 16
drwxr-xr-x 4 mdeslaur mdeslaur 4096 Jun 18 13:43 .
drwx------ 6 mdeslaur mdeslaur 4096 Apr 10 2011 ..
drwx------ 2 mdeslaur mdeslaur 4096 Jun 18 12:49 evolution-mdeslaur-PlMVtk
drwx------ 2 mdeslaur mdeslaur 4096 Jun 18 13:43 evolution-mdeslaur-ws2Jh2

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: evolution 3.2.3-0ubuntu6
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu9
Architecture: amd64
Date: Mon Jun 18 13:44:41 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110302)
SourcePackage: evolution
UpgradeStatus: Upgraded to precise on 2012-01-03 (166 days ago)

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :
Changed in evolution:
importance: Unknown → Medium
status: Unknown → New
Changed in evolution:
status: New → Fix Released
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

This was fixed a long time ago. Closing.

Changed in evolution (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.