popper 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bf4501b5c03655837fa6f91f609315df3577a21
4
- data.tar.gz: cc12464e2003de2852826154f3c978f692421e00
3
+ metadata.gz: 4046c6a869c83db64c170e8047830e1aa196ee95
4
+ data.tar.gz: 0487e61ee5edd2306b97bfd348e42d5f413be8a9
5
5
  SHA512:
6
- metadata.gz: eb915ab4ce61eb8bc11353c848639fa953d41ce85608830696505dee7ebced3602325ee88b3dc2ac5ba1d35e82562b70241582d3cbeb2e9261875a44aaa97e9d
7
- data.tar.gz: 61a374239c807012c5ff25c137e7237d590cb47f7e63cb9e746af2a5d5f82ac5d56edb8f982f70def8135c9ea3599fdbad23704cd6028de0ff7d307c0e73fdc7
6
+ metadata.gz: f65ed4b78ff0abe203ab68f9d921415b628853d5e78a5b0ccbb5ad70815c3cb7e223938942187fde1bd831ec6e78de52d83c4fc8de82c1c41067436433885a1d
7
+ data.tar.gz: a690f6169e5a4b08f65e064765bb0bc41d05789bbe821c8b34686d38a182994769b9e9d70a725adf634c9c8d679267580ad653ce53274d14faf7dd73e4b1c819
data/README.md CHANGED
@@ -29,7 +29,7 @@ systmd service config: https://github.com/pyama86/popper/tree/master/init_script
29
29
 
30
30
  # configure(toml)
31
31
  ## ~/popper/popper.conf
32
- ```
32
+ ```toml
33
33
  include = ["/etc/popper/*.conf"]
34
34
  interval = 60 # fetch interbal default:60
35
35
 
@@ -52,6 +52,7 @@ user = "example@example.com"
52
52
  password = "password"
53
53
  port = 110(default)
54
54
  ssl = false
55
+ delete_after = false
55
56
 
56
57
  # <user_name>.default.condition
57
58
  [example.default.condition]
@@ -1,7 +1,7 @@
1
1
  module Popper::Action
2
2
  class ExecCmd < Base
3
3
  def self.task(mail, params={})
4
- system(@action_config.cmd, mail.subject, mail.utf_body)
4
+ system(@action_config.cmd, mail.subject, mail.utf_body, mail.from.join(";"), mail.to.join(";"))
5
5
  params
6
6
  end
7
7
 
@@ -29,6 +29,7 @@ module Popper
29
29
  process_uidl_list(conn).each do |m|
30
30
  begin
31
31
  done_uidls << check_and_action(m)
32
+ m.delete if config.login.respond_to?(:delete_after) && config.login.delete_after
32
33
  rescue Net::POPError => e
33
34
  self.complete_list += done_uidls
34
35
  Popper.log.warn "pop err write uidl"
@@ -1,3 +1,3 @@
1
1
  module Popper
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-21 00:00:00.000000000 Z
11
+ date: 2016-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor