[dev] add an --help option

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8665 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] rewrite calls to Sympa::Mail functions, for sake of readability:
- wrap long lines
- separate function call from function result check


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8666 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] handle options first, as there is no use loading configuration to output usage instructions

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8667 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] use File::Temp instead of manually handling temporary files

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8668 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[-dev] no more tempdir option

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8669 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] better name for function, using <verb>_<noun> pattern

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8670 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] switch to a named parameters interface

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8671 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] do not compute commmand twice

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8672 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] do not compute commmand twice

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8673 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] switch to named parameter interface for private functions too

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8674 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] simplification, no interest in handling messages created from a file differently

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8675 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] create result data structure only when needed

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8676 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] drop useless variable

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8677 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] use lexical filehandles

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8678 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] always use explicit iterators

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8679 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] reduce conditional block usage by switching to next loop iteration

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8680 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] no need to use a temporary file here, the certificate can be parsed directly

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8681 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] temporary file cleanup is managed by File::Temp

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8682 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] reduce conditional block usage by immediate function exit

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8683 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
[dev] explicit method calls

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-cleanup@8684 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce