Home > Domino Tips > Administrator > E-mail > Viewing Mangled Mime Attachments
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

E-MAIL

Viewing Mangled Mime Attachments


Gareth Harris
07.04.2000
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


This is a quick hit solution for viewing attachments, typically images, mangled
by Mime.

We have R4 clients unable to detach some images from Mime emails incorrectly
converted by R5. A solution, though less tha ideal, is to use this agent which
launches the offending email in a web browser window which always works. In the
browser window the user simply does "save as" or downloads the image like any
other web page.

I pasted it into mail files as people complained, rather than do a big roll out.

Cautionary Notes:
1. R5 can do this anyway! Use Actions->preview in web browser - you may still
want to use this if your mail server does not have HTTP turned on and point it
to a cluster instead like us.
2. You must change the location document to use Internet Explorer or Netscape
as the "Internet Browser" or it won't work correctly.

Code

R4 Version:
Sub Initialize
Dim ws As New notesuiworkspace
Dim URL As String
Dim doccol As notesdocumentcollection
Dim db As notesdatabase
Dim s As New notessession
Dim doc As notes

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
E-mail
Secure Lotus Notes/Domino 8.x from mail to unknown recipients
Domino server setting and email policy tricks admins must know
Top 10 Lotus Notes/Domino administration tips of 2008
Can Lotus Notes/Domino and Microsoft SharePoint play nice together?
Using Formula language code to sort Lotus Notes messages by subject
LotusScript action button manages Lotus Notes mail files
Exploring Lotus Notes Domino 8.0.1 and beyond
LotusScript agent moves tagged spam email to junk mail folder
Send SMS text messages between Lotus Notes 7 and mobile devices
Update to Exchange Server 2003 Connector for Lotus Notes

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


document

Set db = s.currentdatabase
Set doccol = db.unprocesseddocuments

If doccol.count > 0 Then 'could be a category selected...
URL = "http://servername/" & db.filepath & "/Threads/" &
doccol.getfirstdocument.UniversalID & "?opendocument"
Call ws.URLOpen(URL)
Else
Messagebox "You must select a document to view in your default web
browser!",, "Error"
End If
End Sub

R5 Version: (uses funky new classes)
Sub Initialize
Dim ws As New notesuiworkspace
Dim URL As String
Dim doccol As notesdocumentcollection
Dim db As notesdatabase
Dim s As New notessession
Dim doc As notesdocument

Set db = s.currentdatabase
Set doccol = db.unprocesseddocuments

If doccol.count > 0 Then 'could be a category selected...
URL = "http://servername/" & db.filepath & "/" & ws.currentview.view.name &
"/" & doccol.getfirstdocument.UniversalID & "?opendocument"
Call ws.URLOpen(URL)
Else
Messagebox "You must select a document to view in your default web
browser!",, "Error"
End If
End Sub

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts