[nflug] Automated Email Processing - Retrieve Emails and save along with attachements on Samba share

Ronald Wechter niterav at sherman2k.com
Tue May 20 10:42:50 EDT 2008


Darin,

Thank you for the alternate approach.  I agree that the file
management would get out of hand and being able to archive the
messages via the web server may prove, down the road, invaluable.

I will look into the tools you mentioned and create my sandbox.

Ron

On Thu, May 15, 2008 at 10:17 AM, Darin Perusich
<Darin.Perusich at cognigencorp.com> wrote:
> Wouldn't a better approach be to format the message as html and make them
> available on a web server? By going about it this way you don't loose the
> threading of messages, they appear in chronological order, you can sort
> based on thread, author, date, etc, and you can easily scan the messages
> from the Subject. If you drop them into a samba directory for each message
> you're going to have at a minimum 1 file, for messages with attachments
> there will be 2+ files. Just think about how quickly that is going to get
> our of control and messy.
>
> I'd use 'fetchmail' to pull the mail from the pop3/imap source and run
> 'hypermail' or some other mail2html tool on the local mailbox to convert to
> html and dump the files to a web accessible folder. When you need to print
> out the messages you could script it with a2ps or from your browser.
>
> Ronald Wechter wrote:
>>
>> Tyler,
>>
>> The store as text/pdf is a requirement.  Were looking to store the
>> emails and attachments on a Samba share.  Eventually, once this first
>> task is accomplished, I will write a script to send the emails
>> occasionally to a printer.
>>
>> I found a project on SourceForge that can send emails to CUPS but I
>> cannot remember the name of the project.  Not sure if that would be
>> helpful.  I read through the initial procmail FAQ / Documentation and
>> will be doing some testing with it.  Not sure if this is the right
>> path to go down but it looks like procmail can call scripts (Perl,
>> Bash, etc).
>>
>> Ron
>>
>> On Wed, May 14, 2008 at 3:30 PM, Tyler Poland <tyler.poland at gmail.com>
>> wrote:
>>>
>>> Ron,
>>>
>>> Is the store as text/pdf a requirement or would you be able to work
>>> with "Offline" settings in a client like Thunderbird?
>>>
>>> Thanks
>>> Tyler
>>>
>>> On Wed, May 14, 2008 at 9:09 AM, Ronald Wechter <niterav at sherman2k.com>
>>> wrote:
>>>>
>>>> All,
>>>>
>>>> Yes - IMAP and POP3
>>>> The focus is not really on AOL specifically...just how to use an IMAP
>>>> or POP3 account, pick up the email, and process accordingly.
>>>>
>>>> Ron
>>>>
>>>> On Wed, May 14, 2008 at 7:56 AM, Tyler Poland <tyler.poland at gmail.com>
>>>> wrote:
>>>>>
>>>>> Ron,
>>>>>
>>>>>  What are the options available for connecting to AOL (POP3 IMAP)??
>>>>>
>>>>>  Tyler
>>>>>
>>>>>
>>>>>
>>>>>  On Tue, May 13, 2008 at 4:34 PM, Ronald Wechter
>>>>> <niterav at sherman2k.com> wrote:
>>>>>  > All,
>>>>>  >
>>>>>  > Looking for suggestions on what to use to retrieve emails (from an
>>>>> AOL
>>>>>  > account) and save the contents to a text/pdf file along with its
>>>>>  > attachment if exists.  There are so many avenues I could take and am
>>>>>  > welcoming any suggestions.
>>>>>  >
>>>>>  > So far fetchmail/procmail or getmail are the couple of daemons that
>>>>> I
>>>>>  > am currently looking into.
>>>>>  >
>>>>>  > Links to How To's / Procmail documentation would be helpful too!
>>>>>  >
>>>>>  > Ron
>>>>>  > _______________________________________________
>>>>>  > nflug mailing list
>>>>>  > nflug at nflug.org
>>>>>  > http://www.nflug.org/mailman/listinfo/nflug
>>>>>  >
>>>>>  _______________________________________________
>>>>>  nflug mailing list
>>>>>  nflug at nflug.org
>>>>>  http://www.nflug.org/mailman/listinfo/nflug
>>>>>
>>>> _______________________________________________
>>>> nflug mailing list
>>>> nflug at nflug.org
>>>> http://www.nflug.org/mailman/listinfo/nflug
>>>>
>>> _______________________________________________
>>> nflug mailing list
>>> nflug at nflug.org
>>> http://www.nflug.org/mailman/listinfo/nflug
>>>
>> _______________________________________________
>> nflug mailing list
>> nflug at nflug.org
>> http://www.nflug.org/mailman/listinfo/nflug
>
> --
> Darin Perusich
> Unix Systems Administrator
> Cognigen Corporation
> 395 Youngs Rd.
> Williamsville, NY 14221
> Phone: 716-633-3463
> Email: darinper at cognigencorp.com
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>


More information about the nflug mailing list