1Mail::Box::Net(3)     User Contributed Perl Documentation    Mail::Box::Net(3)
2
3
4

NAME

6       Mail::Box::Net - handle folders which are stored remote.
7

INHERITANCE

9        Mail::Box::Net
10          is a Mail::Box
11          is a Mail::Reporter
12
13        Mail::Box::Net is extended by
14          Mail::Box::IMAP4
15          Mail::Box::POP3
16

SYNOPSIS

18        # Do not instantiate this object directly
19

DESCRIPTION

21       At the moment, this object is extended by
22
23       ·   Mail::Box::POP3
24
25           Implements the POP3 protocol.
26
27       ·   Mail::Box::IMAP4
28
29           Implements the IMAP4 protocol.  UNDER DEVELOPMENT
30

OVERLOADED

32       overload: ""
33           See "OVERLOADED" in Mail::Box
34
35       overload: @{}
36           See "OVERLOADED" in Mail::Box
37
38       overload: cmp
39           See "OVERLOADED" in Mail::Box
40

METHODS

42   Constructors
43       Mail::Box::Net->new(OPTIONS)
44            -Option           --Defined in     --Default
45             access             Mail::Box        'r'
46             body_delayed_type  Mail::Box        Mail::Message::Body::Delayed
47             body_type          Mail::Box        Mail::Message::Body::Lines
48             coerce_options     Mail::Box        []
49             create             Mail::Box        <false>
50             extract            Mail::Box        10240
51             field_type         Mail::Box        undef
52             fix_headers        Mail::Box        <false>
53             folder             Mail::Box        '/'
54             folderdir          Mail::Box        <not used>
55             head_delayed_type  Mail::Box        Mail::Message::Head::Delayed
56             head_type          Mail::Box        Mail::Message::Head::Complete
57             keep_dups          Mail::Box        <false>
58             lock_file          Mail::Box        undef
59             lock_timeout       Mail::Box        1 hour
60             lock_type          Mail::Box        'NONE'
61             lock_wait          Mail::Box        10 seconds
62             locker             Mail::Box        undef
63             log                Mail::Reporter   'WARNINGS'
64             manager            Mail::Box        undef
65             message_type       Mail::Box        Mail::Box::Message
66             multipart_type     Mail::Box        Mail::Message::Body::Multipart
67             password                            undef
68             remove_when_empty  Mail::Box        <false>
69             save_on_exit       Mail::Box        <true>
70             server_name                         undef
71             server_port                         undef
72             trace              Mail::Reporter   'WARNINGS'
73             trusted            Mail::Box        <false>
74             username                            undef
75
76           access => MODE
77           body_delayed_type => CLASS
78           body_type => CLASS|CODE
79           coerce_options => ARRAY
80           create => BOOLEAN
81           extract => INTEGER | CODE | METHOD | 'LAZY'|'ALWAYS'
82           field_type => CLASS
83           fix_headers => BOOLEAN
84           folder => FOLDERNAME
85           folderdir => DIRECTORY
86           head_delayed_type => CLASS
87           head_type => CLASS
88           keep_dups => BOOLEAN
89           lock_file => FILENAME
90           lock_timeout => SECONDS
91           lock_type => CLASS|STRING|ARRAY
92           lock_wait => SECONDS
93           locker => OBJECT
94           log => LEVEL
95           manager => MANAGER
96           message_type => CLASS
97           multipart_type => CLASS
98           password => STRING
99             The password which is required to contact the remote server.
100
101           remove_when_empty => BOOLEAN
102           save_on_exit => BOOLEAN
103           server_name => HOSTNAME
104             The name of the host which contains the remote mail server.
105
106           server_port => INTEGER
107             Port number in use by the server application.
108
109           trace => LEVEL
110           trusted => BOOLEAN
111           username => STRING
112             The username which is to be used for the remote server.
113
114   The folder
115       $obj->addMessage(MESSAGE, OPTIONS)
116           See "The folder" in Mail::Box
117
118       $obj->addMessages(MESSAGE [, MESSAGE, ...])
119           See "The folder" in Mail::Box
120
121       Mail::Box::Net->appendMessages(OPTIONS)
122           See "The folder" in Mail::Box
123
124       $obj->close(OPTIONS)
125           See "The folder" in Mail::Box
126
127       $obj->copyTo(FOLDER, OPTIONS)
128           See "The folder" in Mail::Box
129
130       $obj->delete(OPTIONS)
131           See "The folder" in Mail::Box
132
133       $obj->folderdir([DIRECTORY])
134           Not applicatable for folders on a remote server, so will always
135           return the "undef".
136
137       $obj->name
138           See "The folder" in Mail::Box
139
140       $obj->organization
141           See "The folder" in Mail::Box
142
143       $obj->size
144           See "The folder" in Mail::Box
145
146       $obj->type
147           See "The folder" in Mail::Box
148
149       $obj->update(OPTIONS)
150           See "The folder" in Mail::Box
151
152       $obj->url
153           See "The folder" in Mail::Box
154
155   Folder flags
156       $obj->access
157           See "Folder flags" in Mail::Box
158
159       $obj->isModified
160           See "Folder flags" in Mail::Box
161
162       $obj->modified([BOOLEAN])
163           See "Folder flags" in Mail::Box
164
165       $obj->writable
166           See "Folder flags" in Mail::Box
167
168   The messages
169       $obj->current([NUMBER|MESSAGE|MESSAGE-ID])
170           See "The messages" in Mail::Box
171
172       $obj->find(MESSAGE-ID)
173           See "The messages" in Mail::Box
174
175       $obj->findFirstLabeled(LABEL, [BOOLEAN, [ARRAY-OF-MSGS]])
176           See "The messages" in Mail::Box
177
178       $obj->message(INDEX [,MESSAGE])
179           See "The messages" in Mail::Box
180
181       $obj->messageId(MESSAGE-ID [,MESSAGE])
182           See "The messages" in Mail::Box
183
184       $obj->messageIds
185           See "The messages" in Mail::Box
186
187       $obj->messages(['ALL',RANGE,'ACTIVE','DELETED',LABEL,!LABEL,FILTER])
188           See "The messages" in Mail::Box
189
190       $obj->nrMessages(OPTIONS)
191           See "The messages" in Mail::Box
192
193       $obj->scanForMessages(MESSAGE, MESSAGE-IDS, TIMESPAN, WINDOW)
194           See "The messages" in Mail::Box
195
196   Sub-folders
197       $obj->listSubFolders(OPTIONS)
198           Mail::Box::Net->listSubFolders(OPTIONS)
199
200           See "Sub-folders" in Mail::Box
201
202       $obj->nameOfSubFolder(SUBNAME, [PARENTNAME])
203           Mail::Box::Net->nameOfSubFolder(SUBNAME, [PARENTNAME])
204
205           See "Sub-folders" in Mail::Box
206
207       $obj->openRelatedFolder(OPTIONS)
208           See "Sub-folders" in Mail::Box
209
210       $obj->openSubFolder(SUBNAME, OPTIONS)
211           See "Sub-folders" in Mail::Box
212
213       $obj->topFolderWithMessages
214           Mail::Box::Net->topFolderWithMessages
215
216           See "Sub-folders" in Mail::Box
217
218   Internals
219       $obj->coerce(MESSAGE, OPTIONS)
220           See "Internals" in Mail::Box
221
222       $obj->create(FOLDER, OPTIONS)
223           Mail::Box::Net->create(FOLDER, OPTIONS)
224
225           Create a new folder on the remote server.
226
227            -Option   --Defined in--Default
228             folderdir  Mail::Box   <not used>
229
230           folderdir => DIRECTORY
231       $obj->determineBodyType(MESSAGE, HEAD)
232           See "Internals" in Mail::Box
233
234       Mail::Box::Net->foundIn([FOLDERNAME], OPTIONS)
235           See "Internals" in Mail::Box
236
237       $obj->lineSeparator([STRING|'CR'|'LF'|'CRLF'])
238           See "Internals" in Mail::Box
239
240       $obj->locker
241           See "Internals" in Mail::Box
242
243       $obj->read(OPTIONS)
244           See "Internals" in Mail::Box
245
246       $obj->readMessages(OPTIONS)
247           See "Internals" in Mail::Box
248
249       $obj->storeMessage(MESSAGE)
250           See "Internals" in Mail::Box
251
252       $obj->toBeThreaded(MESSAGES)
253           See "Internals" in Mail::Box
254
255       $obj->toBeUnthreaded(MESSAGES)
256           See "Internals" in Mail::Box
257
258       $obj->updateMessages(OPTIONS)
259           See "Internals" in Mail::Box
260
261       $obj->write(OPTIONS)
262           See "Internals" in Mail::Box
263
264       $obj->writeMessages(OPTIONS)
265           See "Internals" in Mail::Box
266
267   Other methods
268       $obj->timespan2seconds(TIME)
269           Mail::Box::Net->timespan2seconds(TIME)
270
271           See "Other methods" in Mail::Box
272
273   Error handling
274       $obj->AUTOLOAD
275           See "Error handling" in Mail::Reporter
276
277       $obj->addReport(OBJECT)
278           See "Error handling" in Mail::Reporter
279
280       $obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK])
281           Mail::Box::Net->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL,
282           CALLBACK])
283
284           See "Error handling" in Mail::Reporter
285
286       $obj->errors
287           See "Error handling" in Mail::Reporter
288
289       $obj->log([LEVEL [,STRINGS]])
290           Mail::Box::Net->log([LEVEL [,STRINGS]])
291
292           See "Error handling" in Mail::Reporter
293
294       $obj->logPriority(LEVEL)
295           Mail::Box::Net->logPriority(LEVEL)
296
297           See "Error handling" in Mail::Reporter
298
299       $obj->logSettings
300           See "Error handling" in Mail::Reporter
301
302       $obj->notImplemented
303           See "Error handling" in Mail::Reporter
304
305       $obj->report([LEVEL])
306           See "Error handling" in Mail::Reporter
307
308       $obj->reportAll([LEVEL])
309           See "Error handling" in Mail::Reporter
310
311       $obj->trace([LEVEL])
312           See "Error handling" in Mail::Reporter
313
314       $obj->warnings
315           See "Error handling" in Mail::Reporter
316
317   Cleanup
318       $obj->DESTROY
319           See "Cleanup" in Mail::Box
320
321       $obj->inGlobalDestruction
322           See "Cleanup" in Mail::Reporter
323

DIAGNOSTICS

325       Warning: Changes not written to read-only folder $self.
326           You have opened the folder read-only --which is the default set by
327           new(access)--, made modifications, and now want to close it.  Set
328           close(force) if you want to overrule the access mode, or close the
329           folder with close(write) set to "NEVER".
330
331       Error: Copying failed for one message.
332           For some reason, for instance disc full, removed by external
333           process, or read-protection, it is impossible to copy one of the
334           messages.  Copying will proceed for the other messages.
335
336       Error: Destination folder $name is not writable.
337           The folder where the messages are copied to is not opened with
338           write access (see new(access)).  This has no relation with write
339           permission to the folder which is controled by your operating
340           system.
341
342       Warning: Different messages with id $msgid
343           The message id is discovered more than once within the same folder,
344           but the content of the message seems to be different.  This should
345           not be possible: each message must be unique.
346
347       Error: Folder $name is opened read-only
348           You can not write to this folder unless you have opened the folder
349           to write or append with new(access), or the "force" option is set
350           true.
351
352       Error: Folder $name not deleted: not writable.
353           The folder must be opened with write access via new(access),
354           otherwise removing it will be refused.  So, you may have write-
355           access according to the operating system, but that will not
356           automatically mean that this "delete" method permits you to.  The
357           reverse remark is valid as well.
358
359       Error: Invalid timespan '$timespan' specified.
360           The string does not follow the strict rules of the time span syntax
361           which is permitted as parameter.
362
363       Warning: Message-id '$msgid' does not contain a domain.
364           According to the RFCs, message-ids need to contain a unique random
365           part, then an "@", and then a domain name.  This is made to avoid
366           the creation of two messages with the same id.  The warning emerges
367           when the "@" is missing from the string.
368
369       Error: Package $package does not implement $method.
370           Fatal error: the specific package (or one of its superclasses) does
371           not implement this method where it should. This message means that
372           some other related classes do implement this method however the
373           class at hand does not.  Probably you should investigate this and
374           probably inform the author of the package.
375
376       Error: Unable to create subfolder $name of $folder.
377           The copy includes the subfolders, but for some reason it was not
378           possible to copy one of these.  Copying will proceed for all other
379           sub-folders.
380
381       Error: Writing folder $name failed
382           For some reason (you probably got more error messages about this
383           problem) it is impossible to write the folder, although you should
384           because there were changes made.
385

SEE ALSO

387       This module is part of Mail-Box distribution version 2.097, built on
388       January 26, 2011. Website: http://perl.overmeer.net/mailbox/
389

LICENSE

391       Copyrights 2001-2011 by Mark Overmeer. For other contributors see
392       ChangeLog.
393
394       This program is free software; you can redistribute it and/or modify it
395       under the same terms as Perl itself.  See
396       http://www.perl.com/perl/misc/Artistic.html
397
398
399
400perl v5.12.3                      2011-01-26                 Mail::Box::Net(3)
Impressum