# Process\_mails and determining forums

**URL:** <https://www.ruby-forum.com/t/process-mails-and-determining-forums/67635>\
**Category:** Ruby-Forum\
**Created:** [September 5, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/process-mails-and-determining-forums/67635 "2006-09-05T20:33:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@andrew](https://www.ruby-forum.com/u/andrew)\
**Post date:** [September 5, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/process-mails-and-determining-forums/67635/1 "2006-09-05T20:33:03Z")

</div>

Hello,

I am trying to input emails into my forums using script/process\_mails.  
The mailbox file that I am trying to read from was one that was  
re-created from external data sources. It lacks some header information  
but I would still like to use this data with rforum. My issue is that  
when I run process\_mails I get the error:

(unknown error): #\<RuntimeError: mail for unknown forum recieved (nil)\>

I have updated the forum table within my database to set the list  
address to the address of the from: field in the header. From looking  
around I see that

find\_by\_list\_address

is being called to determine the forum, but what field in the mail  
header is it looking for? The to? My main issue is that the mbox that I  
am trying to read from lacks a to address, and when I manually put one  
into the mail file, process\_mails errors out more.
