Cleanup files

This commit is contained in:
Daniel Demus
2020-01-20 01:48:06 +01:00
parent 3969d987bd
commit 61dcc7bdce
5 changed files with 17 additions and 242 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ typeset -i "MAX_AGE=${max_age:-90}"
function examine
{
local subdir=$1
if [[ -n "$subdir" -a "$subdir" == "${subdir%/}" ]]; then
if [[ -n "$subdir" && "$subdir" == "${subdir%/}" ]]; then
subdir="$subdir/"
fi
if [[ ! -d ./${subdir}cur ]]; then
-134
View File
@@ -1,134 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="FlexmarkProjectSettings">
<FlexmarkHtmlSettings flexmarkSpecExampleRendering="0" flexmarkSpecExampleRenderHtml="false">
<flexmarkSectionLanguages>
<option name="1" value="Markdown" />
<option name="2" value="HTML" />
<option name="3" value="flexmark-ast:1" />
</flexmarkSectionLanguages>
</FlexmarkHtmlSettings>
</component>
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
</profile>
<version value="1.0" />
</component>
<component name="MarkdownEnhProjectSettings">
<AnnotatorSettings targetHasSpaces="true" linkCaseMismatch="true" wikiCaseMismatch="true" wikiLinkHasDashes="true" notUnderWikiHome="true" targetNotWikiPageExt="true" notUnderSourceWikiHome="true" targetNameHasAnchor="true" targetPathHasAnchor="true" wikiLinkHasSlash="true" wikiLinkHasSubdir="true" wikiLinkHasOnlyAnchor="true" linkTargetsWikiHasExt="true" linkTargetsWikiHasBadExt="true" notUnderSameRepo="true" targetNotUnderVcs="false" linkNeedsExt="true" linkHasBadExt="true" linkTargetNeedsExt="true" linkTargetHasBadExt="true" wikiLinkNotInWiki="true" imageTargetNotInRaw="true" repoRelativeAcrossVcsRoots="true" multipleWikiTargetsMatch="true" unresolvedLinkReference="true" linkIsIgnored="true" anchorIsIgnored="true" anchorIsUnresolved="true" anchorLineReferenceIsUnresolved="true" anchorLineReferenceFormat="true" anchorHasDuplicates="true" abbreviationDuplicates="true" abbreviationNotUsed="true" attributeIdDuplicateDefinition="true" attributeIdNotUsed="true" footnoteDuplicateDefinition="true" footnoteUnresolved="true" footnoteDuplicates="true" footnoteNotUsed="true" macroDuplicateDefinition="true" macroUnresolved="true" macroDuplicates="true" macroNotUsed="true" referenceDuplicateDefinition="true" referenceUnresolved="true" referenceDuplicates="true" referenceNotUsed="true" referenceUnresolvedNumericId="true" enumRefDuplicateDefinition="true" enumRefUnresolved="true" enumRefDuplicates="true" enumRefNotUsed="true" enumRefLinkUnresolved="true" enumRefLinkDuplicates="true" simTocUpdateNeeded="true" simTocTitleSpaceNeeded="true" />
<HtmlExportSettings updateOnSave="false" parentDir="" targetDir="" cssDir="css" scriptDir="js" plainHtml="false" imageDir="" copyLinkedImages="false" imagePathType="0" targetPathType="2" targetExt="" useTargetExt="false" noCssNoScripts="false" useElementStyleAttribute="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" linkFormatType="HTTP_ABSOLUTE" />
<LinkMapSettings>
<textMaps />
</LinkMapSettings>
</component>
<component name="MarkdownNavigatorHistory">
<PasteImageHistory checkeredTransparentBackground="false" filename="image" directory="" onPasteImageTargetRef="3" onPasteLinkText="0" onPasteImageElement="1" onPasteLinkElement="1" onPasteReferenceElement="2" cornerRadius="20" borderColor="0" transparentColor="16777215" borderWidth="1" trimTop="0" trimBottom="0" trimLeft="0" trimRight="0" transparent="false" roundCorners="false" showPreview="true" bordered="false" scaled="false" cropped="false" hideInapplicableOperations="false" preserveLinkFormat="false" scale="50" scalingInterpolation="1" transparentTolerance="0" saveAsDefaultOnOK="false" linkFormat="0" addHighlights="false" showHighlightCoordinates="true" showHighlights="false" mouseSelectionAddsHighlight="false" outerFilled="false" outerFillColor="0" outerFillTransparent="true" outerFillAlpha="30">
<highlightList />
<directories />
<filenames />
</PasteImageHistory>
<CopyImageHistory checkeredTransparentBackground="false" filename="image" directory="" onPasteImageTargetRef="3" onPasteLinkText="0" onPasteImageElement="1" onPasteLinkElement="1" onPasteReferenceElement="2" cornerRadius="20" borderColor="0" transparentColor="16777215" borderWidth="1" trimTop="0" trimBottom="0" trimLeft="0" trimRight="0" transparent="false" roundCorners="false" showPreview="true" bordered="false" scaled="false" cropped="false" hideInapplicableOperations="false" preserveLinkFormat="false" scale="50" scalingInterpolation="1" transparentTolerance="0" saveAsDefaultOnOK="false" linkFormat="0" addHighlights="false" showHighlightCoordinates="true" showHighlights="false" mouseSelectionAddsHighlight="false" outerFilled="false" outerFillColor="0" outerFillTransparent="true" outerFillAlpha="30">
<highlightList />
<directories />
<filenames />
</CopyImageHistory>
<PasteLinkHistory onPasteImageTargetRef="3" onPasteTargetRef="1" onPasteLinkText="0" onPasteImageElement="1" onPasteLinkElement="1" onPasteWikiElement="2" onPasteReferenceElement="2" hideInapplicableOperations="false" preserveLinkFormat="false" useHeadingForLinkText="false" linkFormat="0" saveAsDefaultOnOK="false" />
<TableToJsonHistory>
<entries />
</TableToJsonHistory>
<TableSortHistory>
<entries />
</TableSortHistory>
</component>
<component name="MarkdownProjectSettings">
<PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.5" maxImageWidth="0" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true" lastLayoutSetsDefault="false">
<PanelProvider>
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
</PanelProvider>
</PreviewSettings>
<ParserSettings gitHubSyntaxChange="false" correctedInvalidSettings="false" emojiShortcuts="1" emojiImages="0">
<PegdownExtensions>
<option name="ANCHORLINKS" value="true" />
<option name="ATXHEADERSPACE" value="true" />
<option name="AUTOLINKS" value="true" />
<option name="FENCED_CODE_BLOCKS" value="true" />
<option name="INTELLIJ_DUMMY_IDENTIFIER" value="true" />
<option name="RELAXEDHRULES" value="true" />
<option name="STRIKETHROUGH" value="true" />
<option name="TABLES" value="true" />
<option name="TASKLISTITEMS" value="true" />
<option name="WIKILINKS" value="true" />
</PegdownExtensions>
<ParserOptions>
<option name="COMMONMARK_LISTS" value="true" />
<option name="EMOJI_SHORTCUTS" value="true" />
<option name="GFM_TABLE_RENDERING" value="true" />
<option name="GITHUB_WIKI_LINKS" value="true" />
<option name="PRODUCTION_SPEC_PARSER" value="true" />
<option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
</ParserOptions>
</ParserSettings>
<HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" addPageHeader="true" imageUriSerials="false" addDocTypeHtml="true" noParaTags="false" plantUmlConversion="0">
<GeneratorProvider>
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
</GeneratorProvider>
<headerTop />
<headerBottom />
<bodyTop />
<bodyBottom />
</HtmlSettings>
<CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssUriSerial="true" isCssTextEnabled="false" isDynamicPageWidth="true">
<StylesheetProvider>
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
</StylesheetProvider>
<ScriptProviders />
<cssText />
<cssUriHistory />
</CssSettings>
</component>
<component name="ProjectInspectionProfilesVisibleTreeState">
<entry key="Project Default">
<profile-state>
<expanded-state>
<State />
<State>
<id>CodeNarc - Ruleset rulesets/imports.xml</id>
</State>
<State>
<id>CodeNarc - Ruleset rulesets/unused.xml</id>
</State>
<State>
<id>Data flowGroovy</id>
</State>
<State>
<id>Declaration redundancyGroovy</id>
</State>
<State>
<id>Error handlingGroovy</id>
</State>
<State>
<id>GSPGrailsGroovy</id>
</State>
<State>
<id>GrailsGroovy</id>
</State>
<State>
<id>Groovy</id>
</State>
</expanded-state>
<selected-state>
<State>
<id>YAML</id>
</State>
</selected-state>
</profile-state>
</entry>
</component>
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
-92
View File
@@ -1,92 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="0a6d7486-f55c-4a52-904a-439d06f3a6c4" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/sa-train.spec" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/sa-bayes-learn.sh" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/sa-train-user.sh" beforeDir="false" afterPath="$PROJECT_DIR$/sa-train-user.sh" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="DefaultGradleProjectSettings">
<option name="isMigrated" value="true" />
</component>
<component name="FavoritesManager">
<favorites_list name="CodeIris Favorites" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="MacroExpansionManager">
<option name="directoryName" value="BbcYWgga" />
</component>
<component name="ProjectId" id="1WabYRDJQgW4A9lUzNZnnrtr3Ni" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showExcludedFiles" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../scratch" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="project.structure.last.edited" value="Modules" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.0" />
<property name="settings.editor.selected.configurable" value="Errors" />
</component>
<component name="RunManager">
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType">
<module name="" />
<option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -ea" />
<option name="PROGRAM_PARAMETERS" value="" />
<alternative-path path="IDEA jdk" alternative-path-enabled="true" />
<predefined_log_file enabled="true" id="idea.log" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
<component name="ServiceViewManager">
<option name="viewStates">
<list>
<serviceView>
<treeState>
<expand />
<select />
</treeState>
</serviceView>
</list>
</option>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="0a6d7486-f55c-4a52-904a-439d06f3a6c4" name="Default Changelist" comment="" />
<created>1579390699450</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1579390699450</updated>
<workItem from="1579390703726" duration="736000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="WindowStateProjectService">
<state x="1415" y="676" width="1000" height="837" key="#Project_Structure" timestamp="1579390727933">
<screen x="0" y="32" width="3840" height="2128" />
</state>
<state x="1415" y="676" width="1000" height="837" key="#Project_Structure/0.32.3840.2128@0.32.3840.2128" timestamp="1579390727933" />
</component>
</project>
+1 -1
View File
@@ -6,7 +6,7 @@ fi
if [ -r /etc/sa-train.conf ]; then
while read -r name value; do
if [[ ! "$name" =~ "$\w*#" ]]; then
if [[ -n "$name" && ! "$name" =~ "$\w*#" ]]; then
typeset "$name=$value"
fi
done < /etc/sa-train.conf
+15 -14
View File
@@ -3,13 +3,12 @@ Version: 1.0.0
Release: 1%{?dist}
Summary: Run sa-learn on all mailbox folders for users that are members of the certain group.
License: GPL-v3
URL: https://github.com/danieldemus/sa-train
Source0: https://github.com/danieldemus/sa-train/archive/master.zip
BuildRequires:
Requires:
Requires: sudo coreutils findutils spamassassin
BuildArch: noarch
%description
A bash script and systemd setup that run sa-learn on all mailbox folders for users that
@@ -28,12 +27,14 @@ All the specific names can be configured.
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir} \
%{buildroot}%{_sysconfdir}/ \
%{buildroot}%{_unitdir} \
%{buildroot}%{_pkgdocdir}
%{buildroot}%{_sysconfdir}/ \
%{buildroot}%{_unitdir} \
%{buildroot}%{_pkgdocdir} \
%{buildroot}%{_sysusersdir}
cd sa-train-master
install sa-train.sh %{buildroot}%{_bindir}/sa-train.sh
install sa-train-user.sh %{buildroot}%{_bindir}/sa-train-user.sh
@@ -42,15 +43,15 @@ install -m644 README.md %{buildroot}%{_pkgdocdir}
#Config file
install sa-train.conf %{buildroot}%{_sysconfdir}/sa-train.conf
# Systemd
install -m644 sa-train.service %{buildroot}%{_unitdir}/%{name}.service
install -m644 sa-train.timer %{buildroot}%{_unitdir}/%{name}.timer
install -m644 sa-train.target %{buildroot}%{_unitdir}/%{name}.target
#install systemd sysuser file
install -Dpm 644 sa-train-user.conf %{buildroot}%{_sysusersdir}/%{name}.conf
install -Dpm 644 sa-train-group.conf %{buildroot}%{_sysusersdir}/
%post
%systemd_post sa-learn.timer
@@ -66,13 +67,13 @@ install -Dpm 644 sa-train-user.conf %{buildroot}%{_sysusersdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/sa-train.conf
%defattr(-,root,root,-)
%{_sysusersdir}/sa-train.conf
%{_sysusersdir}/sa-train-group.conf
%{_bindir}/sa-train.sh
%{_bindir}/sa-train-user.sh
%{_unitdir}/sa-train.service
%{_unitdir}/sa-train.target
%{_unitdir}/sa-train.timer
%changelog
* Sat Jan 18 2020 Daniel Demus <dde@nine.dk>
- Initial release