Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
alternc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
domainepublic
alternc
Commits
ae478ba0
Commit
ae478ba0
authored
Feb 08, 2013
by
Axel ROGER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug qui empechait la suppression des mails
parent
974507a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/update_mails.sh
src/update_mails.sh
+2
-2
No files found.
src/update_mails.sh
View file @
ae478ba0
...
...
@@ -56,9 +56,9 @@ mysql_query "SELECT id, address_id, quote(replace(path,'!','\\!')) FROM mailbox
# If dir and rm ok, DELETE
# Other case, do nothing
if
[
-d
"
${
path
//\
'/}" ] ; then
$ionice rm -rf "$
path
" && mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='
DELETING
';"
$ionice rm -rf "$
{path//\'
/
}
"
&&
mysql_query
"DELETE FROM mailbox WHERE id=
$id
AND mail_action='DELETING';"
# Do the rm again in case of newly added file during delete. Should not be usefull
test -d "$
path" && $ionice rm -rf "$path
"
test
-d
"
$
{
path
//\
'/}" && $ionice rm -rf "${path//\'
/
}
"
else
mysql_query
"DELETE FROM mailbox WHERE id=
$id
AND mail_action='DELETING';"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment