1. Christian Ebert
  2. muttils

Commits

Christian Ebert  committed 9840f1e

urlbatcher,urlpager: optionally disable message/mailbox autodetection

  • Participants
  • Parent commits f0dc84b
  • Branches default

Comments (0)

Files changed (3)

File muttils/urlbatchercommand.py

View file
  • Ignore whitespace
                            '(colon-separated list, excluding mail spool)')
     parser.add_option('-M', '--mask',
                       help='exclude mailboxes matching MASK from search')
+    parser.add_option('-t', '--text', action='store_true',
+                      help='treat input as text '
+                           '(do not autodetect message or mailbox)')
 
     options, args = parser.parse_args()
     del parser

File muttils/urlcollector.py

View file
  • Ignore whitespace
         s = fp.read()
         if '\0' in s:
             return ''
+        elif self.ui.text:
+            return s
         msg = _msgfactory(fp)
         if not msg:
             return s

File muttils/urlpagercommand.py

View file
  • Ignore whitespace
                            '(colon-separated list, excluding mail spool)')
     parser.add_option('-M', '--mask',
                       help='exclude mailboxes matching MASK from search')
+    parser.add_option('-t', '--text', action='store_true',
+                      help='treat input as text '
+                           '(do not autodetect message or mailbox)')
 
     options, args = parser.parse_args()
     del parser