[little OT] message-id

2000-01-13 Thread Robert Chien
Hi, I have two general mail questions: 1. can it be guaranteed that _EVERY_ email has a message-id? 2. if not, can you generate a message-id? Background: I'd like to write a perl script whose input is a mail folder, and the script looks at each individual email's message-id and do something wit

Re: [little OT] message-id

2000-01-13 Thread Charles Cazabon
Robert Chien <[EMAIL PROTECTED]> wrote: > I have two general mail questions: > > 1. can it be guaranteed that _EVERY_ email has a message-id? Every message is _supposed_ to have a unique message id by the time it leaves its first SMTP relay -- incoming SMTP traffic is supposed to be scanned for

Re: [little OT] message-id

2000-01-13 Thread Randy Goldenberg
On Thu, Jan 13, 2000 at 06:31:37PM -0800, Robert Chien wrote: > 1. can it be guaranteed that _EVERY_ email has a message-id? No. > 2. if not, can you generate a message-id? > > Background: I'd like to write a perl script whose input is a > mail folder, and the script looks at each individual

Re: [little OT] message-id

2000-01-13 Thread Mikko Hänninen
Charles Cazabon <[EMAIL PROTECTED]> wrote on Thu, 13 Jan 2000: > You can generate an ID for them. But you shouldn't really use message ID to > detect duplicates, although its a common practice. Message IDs are supposed > to be unique, but sometimes aren't. If you want to do it properly, generat

Re: [little OT] message-id

2000-01-14 Thread Lars Hecking
> Background: I'd like to write a perl script whose input is a > mail folder, and the script looks at each individual email's > message-id and do something with it (if it sees a duplicate, > then ignore the duplicate, etc). If it doesn't find one, > what should be done? No need for the perl mon

Re: [little OT] message-id

2000-01-14 Thread Thomas Ribbrock
On Fri, Jan 14, 2000 at 12:19:08PM +, Lars Hecking wrote: > No need for the perl monster. procmail+formail can do it nicely, > and examples for what you want to do are more than likely in the > procmailex(5) man page. True enough - but if one is filtering duplicates based on message IDs,

Re: [little OT] message-id

2000-01-14 Thread Mikko Hänninen
Thomas Ribbrock <[EMAIL PROTECTED]> wrote on Sat, 15 Jan 2000: > True enough - but if one is filtering duplicates based on message IDs, it > won't work for sent mail (i.e. the local copies of mail you sent yourself), > as those don't have any message ID. Except of course if you sent the email wit