Changeset 10054


Ignore:
Timestamp:
09/28/05 15:04:10 (16 years ago)
Author:
piso
Message:

getAttribution()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/mail/SendMail.java

    r8209 r10054  
    22 * SendMail.java
    33 *
    4  * Copyright (C) 2000-2004 Peter Graves
    5  * $Id: SendMail.java,v 1.10 2004-12-03 12:49:45 piso Exp $
     4 * Copyright (C) 2000-2005 Peter Graves
     5 * $Id: SendMail.java,v 1.11 2005-09-28 15:04:10 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    15841584        new UncheckedRE("[A-Za-z]+, [0-9][0-9]? [A-Za-z]+ [0-9][0-9][0-9][0-9]");
    15851585    private static final RE timeRE =
    1586         new UncheckedRE("[0-9:]+ [+-][0-9][0-9][0-9][0-9]");
     1586        new UncheckedRE("[0-9:]+ ([+-][0-9][0-9][0-9][0-9]|[A-Z][A-Z][A-Z]+)");
    15871587
    15881588    private static String getAttribution(MessageBuffer messageBuffer)
     
    16071607                switch (c) {
    16081608                    case 'd': {
     1609                        RFC822Date date = entry.getDate();
    16091610                        // Date/time in sender's time zone.
    16101611                        Message message = messageBuffer.getMessage();
     
    16431644                    default:
    16441645                        Log.error("invalid format sequence \"%" + c + '"' +
    1645                             " in attribution");
     1646                                  " in attribution");
    16461647                        return null;
    16471648                }
Note: See TracChangeset for help on using the changeset viewer.