1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
|
= Mailbox Classes
== class TMail::MhMailbox
j
MH Υܥåä륯饹
e
The class to handle MH mailboxes.
.
=== Class Methods
: new(dirname) -> TMail::MhMailbox
dirname: String
j
MhMailbox ֥Ȥޤ
dirname MH ܥåȤƻȤǥ쥯ȥ̾Ǥ
Ǥ˺ߤǤʤФޤ
e
creates new MhMailbox object.
DIRNAME must be valid MH mailbox directory.
.
=== Instance Methods
: each_port {|port| .... }
: each {|port| .... }
port: TMail::FilePort
j
ܥåΥФƸŤ뤫֤˷֤ޤ
e
iterates for each mail in the mailbox,
in assendant order (older mail first).
.
: reverse_each_port {|port| .... }
: reverse_each {|port| .... }
port: TMail::FilePort
j
ǥ쥯ȥΥФƿ뤫֤˷֤ޤ
e
iterates for each mail in the mailbox,
in descendant order (newer mail first).
.
: last_atime -> Time
: last_atime=(time)
time: Time
j
Ǹ each_new_port/each_port/reverse_each_port ƤӽФ֡
e
The time which last each_new_port/each_port/reverse_each_port is called.
.
: each_new_port(time = last_atime()) {|port| .... }
time: Time
port: TMail::FilePort
j
ΤߤФƤ꤫ޤ
time Ϳ줿ȤϤλʹߤ˹줿Ȥߤʤޤ
Ϳʤä each_mail, reverse_each_mail, each_new_port θ
줿Ȥߤʤޤ
e
iterates for each mails in mailbox, which are newer than TIME.
.
: new_port -> TMail::FilePort
j
бե
б TMail::Port ֥Ȥ֤
e
creates a new file in the mailbox and returns its port.
.
: close
j
ʤˤ⤷ޤ
e
does nothing.
.
== class TMail::UNIXMbox
j
UNIX mbox 饹ߤμǤϡ MH Ѵ
Ū close ƤӽФ GC Υߥǥե˽ᤷޤ
e
The class to handle UNIX mbox.
Current implementation creates temporary MH mbox.
.
=== Class Methods
: new(filename) -> TMail::UNIXMbox
filename: String
j
TMail::UNIXMbox ֥Ȥޤ
filename UNIX mbox ե̾Ǥ
e
creates new TMail::UNIMbox object.
FILENAME must be valid UNIX mbox file name.
.
=== Instance Methods
: each_port {|port| .... }
: each {|port| .... }
port: TMail::FilePort
j
ܥåΥФƸŤ뤫֤˷֤ޤ
e
iterates for each mail in the mailbox,
in assendant order (older mail first).
.
: reverse_each_port {|port| ... }
: reverse_each {|port| ... }
port: TMail::FilePort
j
ǥ쥯ȥΥФƿ뤫֤˷֤ޤ
e
iterates for each mail in the mailbox,
in descendant order (newer mail first).
.
: each_new_port(time = @last_loaded_time) {|port| .... }
time: Time
port: TMail::FilePort
j
ΤߤФƤ꤫ޤ
time Ϳ줿ȤϤλʹߤ˹줿Ȥߤʤޤ
Ϳʤä each_mail, reverse_each_mail, each_new_port θ
줿Ȥߤʤޤ
e
iterates for each mails in mailbox, which are newer than TIME.
@last_loaded_time is updated when each_new_port/each_port is
called.
.
: new_port -> TMail::FilePort
j
бե
б TMail::Port ֥Ȥ֤
e
creates a new file in the mailbox and returns its port.
.
: close
j
Ū˥ܥåᤷޤʸ塢Υ֥Ȥ
ФƥåɤƤӽФ㳰ˤʤޤ
e
forces an UNIXMbox to write back mails to real mbox file.
Once this method is called, any method calls causes to raise
IOError exception.
.
== class TMail::Maildir
j
qmail Ѥܥå maildir ä륯饹
e
The class to handle "maildir" mailbox.
.
=== Class Methods
: new(dirname) -> TMail::Maildir
dirname: String
j
TMail::Maildir ֥Ȥޤ
dirname maildir ܥåȤƻȤǥ쥯ȥ̾Ǥ
ǥ쥯ȥϤǤ˺ߤǤʤФޤ
e
creates new TMail::Maildir object.
DIRNAME must be valid maildir.
.
=== Instance Methods
: each_port {|port| .... }
: each {|port| .... }
port: TMail::FilePort
j
ܥåΥФƸŤ뤫֤˷֤ޤ
e
iterates for each mail in the mailbox,
in assendant order (older mail first).
.
: reverse_each_port {|port| .... }
: reverse_each {|port| .... }
port: TMail::FilePort
j
ǥ쥯ȥΥФƿ뤫֤˷֤ޤ
e
iterates for each mail in the mailbox,
in descendant order (newer mail first).
.
: each_new_port {|port| .... }
port: TMail::FilePort
j
MAILDIR/new ΥФơcur ˰ưΤ˷֤ޤ
e
iterates for each mails in MAILDIR/new.
.
: new_port -> TMail::FilePort
j
бե
б Port ֥Ȥ֤
e
creates a new file in the mailbox and returns its port.
.
|