JavaMail中设置Header的方法:
public void setHeader(java.lang.String name, java.lang.String value)
throws MessagingException
究竟可以设置哪些信息呢?
从网上找来了一些信息:
Acknowledge-To
Action
Also-Control
Alternate-Recipient
Apparently-From
Apparently-To
Approved
Approved-By
Arrival-Date
Article-Names
Article-Updates
Auto-Forwarded
Autoforwarded
Auto-Submitted
BCC
CC
Cocodemagazine-id
Comments
Confirm-Delivery
Confirm-Reading
Content-Base
Content-Class Microsoft News Letter
Content-Conversion
Content-Description
Content-Disposition [inline|attachment]
Content-ID 文件识别
Content-Identifier
Content-Length 消息长度
Content-Location
Content-MD5
Content-Return
Content-SGML-Entity
Content-Transfer-Encoding 邮件编码
Content-Type 邮件类型
Control
Conversion
Conversion-With-Loss
Date 发送时间
Deferred-Delivery
Delivered-By-The-Graces-Of
Delivered-To
Delivery-Date
Delivery-Receipt-To
Diagnostic-Code 诊断code
Discarded-X400-IPMS-Extensions
Discarded-X400-MTS-Extensions
Disclose-Recipients
Disposition
Disposition-Notification-To 已读通知
Distribution
DL-Expansion-History
Encoding
Encrypted 压缩方法
Envelope-Recipient
Envelope-Sender
Errors-To 错误返回地址
Expires
Expiry-Date 有效期限
Fax
FCC
Final-Recipient 接受者
Followup-To
For-Comment
For-Handling
FormMailer
From 送信者
Full-Name 送信者姓名
Generate-Delivery-Report
Illegal-Object
Importance 重要度 Group Max中使用
[High|Normal|Low]
In-Reply-To
Incomplete-Copy
Keywords
Language
Last-Attempt-Date
Latest-Delivery-Time
Lines
List-Archive
List-Help
List-ID
List-Owner
List-Post
List-Subscribe
List-Unsubscribe
Mail-Followup-To
Mail-From
Mail-Reply-To
Mail-System-Version
Mailer
Mailing-List ML名
Message
Message-ID
Message-Type Group Max
MIME-Version MIME版本
MSG-ID WebPromote
Name
Newsgroups
Notice-Requested-
Upon-Delivery-To (qmail)
Obsoletes
Organization
Original-Encoded-
Information-Types StarOffice
Original-Envelope-ID
Original-Message-ID
Original-Recipient
Originating-Client
Originator-Info
Originator-Return-Address
Path
Phone
Posted
Posted-Date
Precedence 重要度 [bulk|first-class|list]
Prevent-Nondelivery-Report
Priority 重要度 [High|Normal|Low]
Re Subject中的Re:
Read-Receipt 收信通知
Received
Received-From-MTA
References
Remote-MTA
Reply-By
Reply-To 回信地址
Reporting-MTA
Reporting-UA
Requested-Delivery-Method
Resent-BCC
Resent-CC
Resent-Date
Resent-From
Resent-Message-ID
Resent-Reply-To
Resent-Sender
Resent-To
Return-Path
Return-Receipt-To
See-Also
Sender
Sensitivity [Personal|Private|
Company-Confidential]
Status
Subject
Summary
Supersedes
Telefax
Text
Thread-Index Microsoft News Letter
To
Type
User-Agent
Via
Will-Retry-Until
X400-Content-Return
X400-Content-Type
X400-MTS-Identifier
X400-Originator
X400-Received
X400-Recipients
X-Accept-Language
X-Actual-Recipient
X-Attachments
X-Authentication-Warning
X-Auto
X-BCast-Date
X-Biglobe-Date
X-Biglobe-Sender
X-BoostMail-ID
X-BottleMail-From
X-BottleMail-Version
X-Card-Info
X-ClickincomeID
X-Comment
X-Comment-To
X-Confirm-Reading-To
X-Cq-Job
X-Distribute
X-FC-Icon-ID
X-Dispatcher
X-Disp-Lines
X-Duplicate
X-eGroups-Approved-By eGroups
X-eGroups-Return
X-Envelope-To
X-Ezauth MilltoClub
X-Face
X-Forwarded 转送
X-Gateway
X-GOKINJO-ID
X-ICQ ICQのUIN
X-ID
X-info CoCode Mail
X-Internal-ID goo FreeMail
X-Jdate-Version
X-JsMail-Attribute
X-JsMail-Priority 重要度
X-JsMail-Type
X-Lotus-FromDomain
X-Loop
X-Loop-Detect
X-LSV-ListID L-Soft list server
X-Mag2CatCode
X-Mag2Id
X-MagClick-Relay
X-MagClick-Store
X-Mail-Agent
X-Mail-Class
X-MailEditor
X-Mailer
X-Mailing-List
X-Member
X-Message
X-Message-Flag Outlook 2000
X-MIME-Autoconverted
X-MimeOLE
X-ML-Address
X-ML-Command
X-ML-Count
X-ML-Info
X-ML-Name
X-ML-Owner
X-ML-Provider
X-ML-Server
X-MLServer
X-MLS-To
X-Moe
X-Mozilla-Draft-Info
X-Mozilla-News-Host
X-Mozilla-Status
X-Mozilla-Status2 Netscape Messenger
X-Mrsender
X-MS-Attachment Internet Mail
X-MS-Embedded-Report
X-MSMail-Priority 重要度
[High|Normal|Low]
X-My-Favorite-Girls-are
X-My-Real-Login-Name
X-Newsreader
X-No-Archive CoCode Mail
X-Openmail-Hops
X-OriginalArrivalTime Microsoft News Letter
X-Original-Deliver CoCode Mail
X-Originating-IP
X-PGP-Fingerprint
X-PGP-FP
X-PGP-Key
X-PMRQC
X-PostPet-Message
X-Prabbit
X-Priority 重要度 [1|2|3|4|5]、
X-Pub_mail Pubzine
X-PubID
X-PubzineID
X-Reg-Addr
X-Reg-ID
X-Remote
X-Remote-Host
X-Retrial-Count
X-RM-Builder
X-RM-Status
X-RM-GetFrom
X-Sample
X-Sender
X-Sender-Ip
X-Sent-Mail
X-Sequence
X-sesna-UID
X-Shiroyagi-ID
X-SLUIDL
X-SMTP-Result
X-Spanska
X-Status
X-Subject
X-Sun-Charset
X-TS-ATTACHMENT
X-UIDL
POP3
X-UPromote-Subscription-Address
X-URL
X-Vector-SoftNews-Template
X-Visit
X-WebSite
X-WebsiteAccess-GMT
X-WebsiteUser-IP
X-WebTV-Signature
X-X-Sender
X-XID Global Card Project