× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: E-mail attachment
  • From: Eric Merritt <cyberlync@xxxxxxxxx>
  • Date: Tue, 17 Apr 2001 17:10:06 -0700 (PDT)

JavaMail supports the pop3 mail retrieval protocol
(getting email) this should allow you to retrieve the
mail - then use the MailMessage class to retrieve your
attachements.

--- "Leland, David" <dleland@Harter.com> wrote:
> Are you sure JavaMail is designed for this?  I only
> see references to it
> "sending" e-mail.  I don't see anything about it
> recieving.  There's a LOT
> to it.  Just finding out what it can do is gonna be
> a chore.  Does anyone
> know if it can extract an attachment from a received
> e-mail?
> 
> Dave
> 
> -----Original Message-----
> From: Eric Merritt [mailto:cyberlync@yahoo.com]
> Sent: Tuesday, April 17, 2001 11:04 AM
> To: JAVA400-L@midrange.com
> Subject: RE: E-mail attachment
> 
> 
> David,
> 
>   JavaMail is designed for exactly what you are
> describing. It is a free api available from the java
> site. There is documentation aplenty for it and you
> should have no problem getting it going. If you need
> some links let me know and i will see what I can
> come
> up with.
> 
> --- "Leland, David" <dleland@Harter.com> wrote:
> > I sent this out yesterday and got one response
> > (which didn't help,
> > unfortunately).  Isn't anyone doing this?  What
> > about a Java program to do
> > this?
> >  
> > Dave
> > 
> > -----Original Message-----
> > From: Leland, David 
> > Sent: Monday, April 16, 2001 11:18 AM
> > To: 'midrange-l@midrange.com'
> > Subject: E-mail attachment
> > 
> > 
> > 
> > Does anyone have a routine for retrieving the
> > attachment for an e-mail sent
> > to the AS/400?  We have setup an e-mail address to
> > receive a CSV file (as an
> > attachment) to our AS/400 - the e-mail gets
> recieved
> > into
> > /qtcptmm/mail/csv_user/.  I'd like a program to be
> > able to read thru the
> > e-mail (the e-mail is a file and is usually named
> > something like
> > "JW072019.NOT") and copy the attachment and create
> > an actual IFS file from
> > it.  When I look at the .NOT file, I can see all
> the
> > data in there but it
> > looks like it's formatted a special way because
> each
> > line only goes to 64
> > characters and then there is usually an equal sign
> > and then it's wrapped to
> > the next line.  So, I can't just read it straight
> in
> > and then write it out.
> > Also, I haven't figured out how to know where to
> > start and stop reading.
> > 
> > Just wondered if anyone had done anything like
> this
> > yet? 
> > 
> > Thanks, 
> > Dave 
> > 
> > 
> 
> 
> =====
> Eric Merritt
> Information Systems Consultant
> McCormack & Associates, Inc.
> Rock Hill, South Carolina
> (V) 803-327-3358 X 225
> eric@mccinc.com
> http://www.mccinc.com/
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/
> +---
> | This is the JAVA/400 Mailing List!
> | To submit a new message, send your mail to
> JAVA400-L@midrange.com.
> | To subscribe to this list send email to
> JAVA400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
> JAVA400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner:
> joe@zappie.net
> +---
> 


=====
Eric Merritt
Information Systems Consultant
McCormack & Associates, Inc.
Rock Hill, South Carolina
(V) 803-327-3358 X 225
eric@mccinc.com
http://www.mccinc.com/

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.