| 
									
										
										
										
											1997-06-02 21:04:41 +00:00
										 |  |  | \section{Standard Module \sectcode{mailbox}} | 
					
						
							| 
									
										
										
										
											1998-01-13 19:01:57 +00:00
										 |  |  | \label{module-mailbox} | 
					
						
							| 
									
										
										
										
											1997-06-02 21:04:41 +00:00
										 |  |  | \stmodindex{mailbox} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1998-02-13 06:58:54 +00:00
										 |  |  | \setindexsubitem{(in module mailbox)} | 
					
						
							| 
									
										
										
										
											1997-06-02 21:04:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | This module defines a number of classes that allow easy and uniform | 
					
						
							|  |  |  | access to mail messages in a (unix) mailbox. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \begin{funcdesc}{UnixMailbox}{fp} | 
					
						
							| 
									
										
										
										
											1998-01-13 19:01:57 +00:00
										 |  |  | Access a classic \UNIX{}-style mailbox, where all messages are contained | 
					
						
							| 
									
										
										
										
											1998-02-13 22:17:21 +00:00
										 |  |  | in a single file and separated by ``From name time'' lines. | 
					
						
							|  |  |  | The file object \var{fp} points to the mailbox file. | 
					
						
							| 
									
										
										
										
											1997-06-02 21:04:41 +00:00
										 |  |  | \end{funcdesc} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \begin{funcdesc}{MmdfMailbox}{fp} | 
					
						
							|  |  |  | Access an MMDF-style mailbox, where all messages are contained | 
					
						
							|  |  |  | in a single file and separated by lines consisting of 4 control-A | 
					
						
							| 
									
										
										
										
											1998-02-13 22:17:21 +00:00
										 |  |  | characters.  The file object \var{fp} points to the mailbox file. | 
					
						
							| 
									
										
										
										
											1997-06-02 21:04:41 +00:00
										 |  |  | \end{funcdesc} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \begin{funcdesc}{MHMailbox}{dirname} | 
					
						
							|  |  |  | Access an MH mailbox, a directory with each message in a separate | 
					
						
							| 
									
										
										
										
											1998-02-13 22:17:21 +00:00
										 |  |  | file with a numeric name. | 
					
						
							|  |  |  | The name of the mailbox directory is passed in \var{dirname}. | 
					
						
							| 
									
										
										
										
											1997-06-02 21:04:41 +00:00
										 |  |  | \end{funcdesc} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \subsection{Mailbox Objects} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | All implementations of Mailbox objects have one externally visible | 
					
						
							|  |  |  | method: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \begin{funcdesc}{next}{} | 
					
						
							| 
									
										
										
										
											1997-08-18 15:14:26 +00:00
										 |  |  | Return the next message in the mailbox, as a \code{rfc822.Message} object. | 
					
						
							| 
									
										
										
										
											1997-06-02 21:04:41 +00:00
										 |  |  | Depending on the mailbox implementation the \var{fp} attribute of this | 
					
						
							| 
									
										
										
										
											1997-08-18 15:14:26 +00:00
										 |  |  | object may be a true file object or a class instance simulating a file object, | 
					
						
							|  |  |  | taking care of things like message boundaries if multiple mail messages are | 
					
						
							| 
									
										
										
										
											1997-06-02 21:04:41 +00:00
										 |  |  | contained in a single file, etc. | 
					
						
							|  |  |  | \end{funcdesc} |